From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16162 invoked by alias); 7 Apr 2003 10:26:08 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 16122 invoked by uid 71); 7 Apr 2003 10:26:05 -0000 Resent-Date: 7 Apr 2003 10:26:05 -0000 Resent-Message-ID: <20030407102605.16120.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, paras.rasmatazz@t-online.de Received: (qmail 8795 invoked by uid 48); 7 Apr 2003 10:17:02 -0000 Message-Id: <20030407101702.8794.qmail@sources.redhat.com> Date: Mon, 07 Apr 2003 10:26:00 -0000 From: paras.rasmatazz@t-online.de Reply-To: paras.rasmatazz@t-online.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/10331: can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf X-SW-Source: 2003-04/txt/msg00237.txt.bz2 List-Id: >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: