This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Can't compile gcc - libiberty (argv.c) error!
- From: Kelley Cook <kelley dot r dot cook at gm dot com>
- To: gcc at gcc dot gnu dot org, rdim_outside at softhome dot net
- Date: Wed, 15 May 2002 14:54:57 -0400
- Subject: Re: Can't compile gcc - libiberty (argv.c) error!
- References: <courier.3CE2A6BB.0000672D@softhome.net>
>[build#]../gcc-3.0.4/configure --target=xscale-elf --prefix=/xtls
> --exec-prefix=/xtls/H-i686-pc-linux-gnu --with-newlib --with-gnu-as
> --with-gnu-ld
>
>Build fails with error:
>
>...
>
>/root/gcc/build/gcc/xgcc -B/root/gcc/build/gcc/ -nostdinc
> -B/root/gcc/build/xscale-elf/newlib/ -isystem
>/root/gcc/build/xscale-elf/newlib/targ-include -isystem
>/root/gcc/gcc-3.0.4/newlib/libc/include
> -B/xtls/H-i686-pc-linux-gnu/xscale-elf/bin/
> -B/xtls/H-i686-pc-linux-gnu/xscale-elf/lib/ -isystem
>/xtls/H-i686-pc-linux-gnu/xscale-elf/include -c -DHAVE_CONFIG_H -g -O2 -I.
> -I../../../gcc-3.0.4/libiberty/../include -W -Wall -Wtraditional -pedantic
>../../../gcc-3.0.4/libiberty/argv.c
>../../../gcc-3.0.4/libiberty/argv.c:35:20: string.h: No such file or directory
>../../../gcc-3.0.4/libiberty/argv.c:36:20: stdlib.h: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You need to tell the cross-compiler where a copy of the xscale-elf system
headers are. See --with-headers and --with-libs options of configure.
http://gcc.gnu.org/install/configure.html
Kelley Cook