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]
Other format: [Raw text]

error building libstdc++v-3 from gcc-3.0.4 package on rh 7.2 for ppc



Hi - I am trying to build libstdc++-v3 for ppc that came with the
gcc-3.0.4 package.  I did the following steps

$TOOLSRC/configure --target=powerpc-eabi --prefix=$TOOLBIN
--exec-prefix=$TOOLBIN/H-i686-pc-linux-gnu --with-gnu-as --with-gnu-ld
--with-newlib --enable-threads --enable-cheaders=c_shadow -v 2>&1 | tee
configure.out

this part works fine
make -w all-gcc LANGUAGES="c c++" 2>&1 | tee make.out
make -w install-gcc

this is the one that fails

make all-target-libstdc++-v3

/swdev/home/tracy/gnu/build/gcc/gcc/xgcc
-B/swdev/home/tracy/gnu/build/gcc/gcc/ -nostdinc
-B/swdev/home/tracy/gnu/build/gcc/powerpc-eabi/newlib/ -isystem
/swdev/home/tracy/gnu/build/gcc/powerpc-eabi/newlib/targ-include
-isystem /swdev/home/tracy/gnu/gcc-3.0.4/newlib/libc/include
-B/swdev/home/tracy/gnu/install/H-i686-pc-linux-gnu/powerpc-eabi/bin/
-B/swdev/home/tracy/gnu/install/H-i686-pc-linux-gnu/powerpc-eabi/lib/
-isystem
/swdev/home/tracy/gnu/install/H-i686-pc-linux-gnu/powerpc-eabi/include
-c -DHAVE_CONFIG_H -g -O2 -I.
-I/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/../include  -W -Wall
-Wtraditional -pedantic /swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:35:20: string.h: No
such file or directory
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:36:20: stdlib.h: No
such file or directory
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c: In function `dupargv':
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:101: warning: implicit
declaration of function `malloc'
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:108: warning: implicit
declaration of function `strlen'
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:109: warning:
assignment makes pointer from integer without a cast
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:115: warning: implicit
declaration of function `strcpy'
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c: In function
`freeargv':
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:153: warning: implicit
declaration of function `free'
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:155: warning: function
`free' was previously declared within a block
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c: In function
`buildargv':
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:237: warning: function
`malloc' was previously declared within a block
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:242: warning: implicit
declaration of function `realloc'
/swdev/home/tracy/gnu/gcc-3.0.4/libiberty/argv.c:316: warning: implicit
declaration of function `strdup'
/swdev/home/tracy/gnu/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
`/swdev/home/tracy/gnu/build/gcc/powerpc-eabi/libiberty'
make: *** [all-target-libiberty] Error 2

I can see these header files in the c_shadow directory - which is why I
configured with --enable-cheaders=c_shadow.  But no luck.  I can do the
same thing with i686-pc-linux-gnu and it works fine.  Can anyone help?


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