Hello all,

I followed the document "Building the GNU toolchain for ARM targets" by
Chris Rutter to build a cross compiler on my i586 machine.

I got the tools and utilities which were needed for the steps:

1. binutils-2.9.5.0.22
2. linux-2.3.33 with patch-2.3.33-rmk3
3. gcc-2.95.2
4. glibc-2.1.2

First  I built biutils using the following command:
# ./confure  --targeet=arm-linux --prefix=/usr
# make ; make install
I successed install binutil at the /usr/arm-linux

Second, I reconfig kernel's System and processor type
I select (RiscPC)ARM system type and enable the menus of  "Support ARM610"
and "Support ARM710"
then
# make dep
#cp -dR /linux/include/arm-arm /usr/arm-linux/asm
#cp -dR /linux/include/linux /usr/arm-linux/linux

Then I config gcc
#./configure --target=arm-linux --prefix=/usr
and fix a flag in gcc/config/arm/t-linux file:
TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC
to
TARGET_LIBGCC2_CFLAGS
= -fomit-frame-pointer -fPIC  -Dinhibit_libc -D__gthr_posix_h
Now I reconfig gcc
#./configure --target=arm-linux --prefix=/usr --disable-threads

The compiler error message is my problem:
.............
checking for sys/wait.h is POSIX.1 compatible... no
checking whether the C compiler
(/usr/src/gcc-2.95.2/gcc/xgcc -B/usr/src/gcc-2.9.5.2/gcc -B/usr/arm-linux/bi
n/ -g -O2) works... no
configure :error : installation or configuration problem: C compiler cannot
create executables.

>>>Q. How do I fix this problem ?
>Then gcc quit with following error : gcc compiling directory
/usr/src/gcc-2.95.2/arm-linux/libio

/usr/src/gcc-2.95.2/gcc/xgcc -B/usr/src/gcc-2.95.2/gcc -B/usr/arm-linux/bin 
-c -g -O2 -I. -I. -D_IO_MTSAFE_IO iogetline.c
In file included from iogetline.c:26:
libioP.h:30: errno.h :No such file or directory
In file include from iolibio.h:1
                       from libioP.h:47
                       from iogetline.c:26:
libio.h:30:_G_config_h: No such file or directory
iogetline.c :27: string.h: No such file or directory

>then quit...
The error message tell me that gcc can't find the header file ,and I find
/usr/include has _G_config_h
My question is why compile switch don't include "-I/usr/include" ? Can I
just use the file ?

Kevin,
Regards.






unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++        Please use [EMAIL PROTECTED] for           ++
++                        kernel-related discussions.                      ++

Reply via email to