public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: paras.rasmatazz@t-online.de
To: gcc-gnats@gcc.gnu.org
Subject: target/10331: can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf
Date: Mon, 07 Apr 2003 10:26:00 -0000	[thread overview]
Message-ID: <20030407101702.8794.qmail@sources.redhat.com> (raw)

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


                 reply	other threads:[~2003-04-07 10:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030407101702.8794.qmail@sources.redhat.com \
    --to=paras.rasmatazz@t-online.de \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).