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]

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


Hi all, 

Could you please help me with compilation of latest gcc release... 

gcc version is 3.0.4, binutils - 2.12 

Binutils are made and installed without any problem, configure and make
commands are:
[build#]../binutils-2.12/configure --target=xscale-elf --prefix=/xtls
 --exec-prefix=/xtls/H-i686-pc-linux-gnu 

[build#]make -w all install 

After that path with extended with /xtls/H-i686-pc-linux-gnu/bin 

Then gcc itself was configured with: 

[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
../../../gcc-3.0.4/libiberty/argv.c: In function `dupargv':
../../../gcc-3.0.4/libiberty/argv.c:101: warning: implicit declaration of
function `malloc'
../../../gcc-3.0.4/libiberty/argv.c:108: warning: implicit declaration of
function `strlen'
../../../gcc-3.0.4/libiberty/argv.c:109: warning: assignment makes pointer
from integer without a cast
../../../gcc-3.0.4/libiberty/argv.c:115: warning: implicit declaration of
function `strcpy'
../../../gcc-3.0.4/libiberty/argv.c: In function `freeargv':
../../../gcc-3.0.4/libiberty/argv.c:153: warning: implicit declaration of
function `free'
../../../gcc-3.0.4/libiberty/argv.c:155: warning: function `free' was
previously declared within a block
../../../gcc-3.0.4/libiberty/argv.c: In function `buildargv':
../../../gcc-3.0.4/libiberty/argv.c:237: warning: function `malloc' was
previously declared within a block
../../../gcc-3.0.4/libiberty/argv.c:242: warning: implicit declaration of
function `realloc'
../../../gcc-3.0.4/libiberty/argv.c:316: warning: implicit declaration of
function `strdup'
../../../gcc-3.0.4/libiberty/argv.c:316: warning: assignment makes pointer
from integer without a cast
make[1]: *** [argv.o] Error 1
make[1]: Leaving directory `/root/gcc/build/xscale-elf/libiberty'
make: *** [all-target-libiberty] Error 2
make: Leaving directory `/root/gcc/build' 

 --- 

What can you recommend? What I'm doing wrong? I need configure it using
"--with-newlib"... 

Many many thanks in advance! 

RDim 


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