public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/10331: can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf
@ 2003-04-07 10:26 paras.rasmatazz
  0 siblings, 0 replies; only message in thread
From: paras.rasmatazz @ 2003-04-07 10:26 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2906 bytes --]


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-07 10:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-07 10:26 target/10331: can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf paras.rasmatazz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).