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: "Dmitry Ryzhkov" <rdim_outside at softhome dot net>
- To: "Kelley Cook" <kelley dot r dot cook at gm dot com>,<gcc at gcc dot gnu dot org>
- Date: Thu, 16 May 2002 00:05:11 +0200
- Subject: Re: Can't compile gcc - libiberty (argv.c) error!
- References: <courier.3CE2A6BB.0000672D@softhome.net> <3CE2AF01.1040201@gm.com>
Hi Kelley,
Thank you very much for your help!
Do you mean string.h and stdlib.h must be hardware-dependent for xscale??
The problem is that I have no any special header files for this target, only
made by regular binutils creation... But "--prefix=" directory tree does not
contain neither stdlib.h nor string.h :( Moreover, while in make I see lot
of "checking for stdlib.h...ok" informations during other previous building
steps. For argv.c it seems it wasn't checkd and, to regret, files were not
found.
Any idea about special headers location? May be I need to download them from
some other palce?
Thanks a lot,
Dmitry.
P.S. You say "to tell cross-compiler...", but for the moment of error I have
no cross-compiler installed! Problem occures just in time of building of
cross-compiler itself...
----- Original Message -----
From: "Kelley Cook" <kelley.r.cook@gm.com>
To: <gcc@gcc.gnu.org>; <rdim_outside@softhome.net>
Sent: Wednesday, May 15, 2002 8:54 PM
Subject: Re: Can't compile gcc - libiberty (argv.c) error!
> >[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 -pedanti
c
> >../../../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
>
>
>