This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Installing gcc 3.0 for target arm-elf


I'm having trouble installing GCC 3.0 for an arm-elf target. I've managed to
do this in the past with version 2.96 and am following the same procedure.
I've successfully built binutils and am trying to build gcc with newlib.

I've untarred gcc into /root/arm-elf/gcc-3.0 and newlib into
/root/arm-elf/newlib-1.9.0. I'm running the configure and make commands from
/root/arm-elf/build-gcc, which was an empty directory. The configuration
phase appears to go correctly but when I try to build gcc, after a while it
complains about not being able to find 'string.h' or 'stdlib.h'. One thing I
have noticed is that the header files get copied into
'/usr/local/arm-elf/sys-include' during the configuration phase but that
directory is not listed on the compilation command line, as one of the
'isystem' directories.

Below is the configure command line that I used and following that is the
output from the compiler, on the module that if fails to build.

/root/arm-elf/gcc-3.0/configure --srcdir=/root/arm-elf/gcc-3.0
--target=arm-elf --without-fp --with-cpu=arm7tdmi --with-newlib
--with-headers=/root/arm-elf/newlib-1.9.0/newlib/libc/include


/root/arm-elf/build-gcc/gcc/xgcc -B/root/arm-elf/build-gcc/gcc/ -nostdinc
-B/root/arm-elf/build-gcc/arm-elf/newlib/ -isystem
/root/arm-elf/build-gcc/arm-elf/newlib/targ-include -isystem
/root/arm-elf/gcc-3.0/newlib/libc/include -B/usr/local/arm-elf/bin/
-B/usr/local/arm-elf/lib/ -isystem /usr/local/arm-elf/include -c
-DHAVE_CONFIG_H -g -O2 -I. -I/root/arm-elf/gcc-3.0/libiberty/../include  -W
-Wall -Wtraditional -pedantic /root/arm-elf/gcc-3.0/libiberty/argv.c
/root/arm-elf/gcc-3.0/libiberty/argv.c:35:20: string.h: No such file or
directory
/root/arm-elf/gcc-3.0/libiberty/argv.c:36:20: stdlib.h: No such file or
directory

[Warnings here, due to lack of prototypes, which would be in
string.h/stdlib.h]

make[1]: *** [argv.o] Error 1
make[1]: Leaving directory `/root/arm-elf/build-gcc/arm-elf/libiberty'
make: *** [all-target-libiberty] Error 2


Any help would be greatly appreciated.

Regards,
Simon.


This message contains information which may be confidential and privileged.  Unless you are the addressee (or authorised to receive for the addressee),  you should not use, copy or disclose to anyone the details or information contained in this message.  The content of the message and or attachments may not reflect the view and opinions of the originating company. If you have received this message in error, you should reply to the sender and copy email@red-m.com and delete the message from your system.  Thank you for your co-operation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]