target/10331: can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf

paras.rasmatazz@t-online.de paras.rasmatazz@t-online.de
Mon Apr 7 10:26:00 GMT 2003


>Number:         10331
>Category:       target
>Synopsis:       can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 07 10:26:03 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     paras.rasmatazz@t-online.de
>Release:        gcc-Version 3.3 20030331 (prerelease)
>Organization:
>Environment:
linux-2.4.20, ia32, gcc configured with --target=$sh-elf --prefix=/usr/local/dc --with-newlib --enable-languages=c
>Description:
I want to crosscompile gcc for the sh-elf target.
First i compile binutils-2.12
Then i configure and compile gcc (for compiling newlib) with --target=sh-elf --prefix=/usr/local/dc --with-newlib --enable-languages=c
then i compile newlib with that gcc.
then i reconfigure gcc with --target=sh-elf --prefix=/usr/local/dc --with-newlib --enable-languages=c,c++
when typing 'make all install' after awhile, compiling fails with the following error:

/gcc/build-gcc/gcc/xgcc -B/gcc/build-gcc/gcc/ -B/usr/local/dc/sh-elf/sh-elf/bin/ -B/usr/local/dc/sh-elf/sh-elf/lib/ -isystem /usr/local/dc/sh-elf/sh-elf/include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I../../../gcc-20030331/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../../gcc-20030331/libiberty/hashtab.c -o hashtab.o
../../../gcc-20030331/libiberty/hashtab.c: In function `higher_prime_number':
../../../gcc-20030331/libiberty/hashtab.c:133: Warnung: implicit declaration of function `abort'
../../../gcc-20030331/libiberty/hashtab.c: In function `htab_create':
../../../gcc-20030331/libiberty/hashtab.c:204: error: `free' undeclared (first use in this function)
../../../gcc-20030331/libiberty/hashtab.c:204: error: (Each undeclared identifier is reported only once
../../../gcc-20030331/libiberty/hashtab.c:204: error: for each function it appears in.)
../../../gcc-20030331/libiberty/hashtab.c: In function `htab_try_create':
../../../gcc-20030331/libiberty/hashtab.c:214: error: `calloc' undeclared (first use in this function)
../../../gcc-20030331/libiberty/hashtab.c:214: error: `free' undeclared (first use in this function)
make[1]: *** [hashtab.o] Fehler 1
make[1]: Verlassen des Verzeichnisses »/gcc/build-gcc/sh-elf/libiberty«
make: *** [all-target-libiberty] Fehler 2


>How-To-Repeat:
binutils-2.12: configure --target=sh-elf --prefix=/usr/local/dc/sh-elf
make install
export PATH=$PATH:/usr/local/dc/sh-elf/bin
gcc-20030331: configure --target=sh-elf --prefix=/usr/local/dc/sh-elf --with-newlib --enable-languages=c
make all install
newlib-1.10.0: configure --target=sh-elf --prefix=/usr/local/dc/sh-elf
make all install
gcc-20030331: configure --target=sh-elf --prefix=/usr/local/dc/sh-elf --with-newlib --enable-languages=c,c++
make all install
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list