This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Can't compile gcc - libiberty (argv.c) error!


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
>
>
>



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