public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pfl at iis dot fhg dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/23231] cross compiling fails for mips-sgi-irix6.5
Date: Sun, 07 Aug 2005 09:22:00 -0000	[thread overview]
Message-ID: <20050807092255.31694.qmail@sourceware.org> (raw)
In-Reply-To: <20050804154907.23231.pfl@iis.fhg.de>

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


------- Additional Comments From pfl at iis dot fhg dot de  2005-08-07 09:22 -------
I tried your suggestions with the following parameters:

I compilied with gcc-4.0.2 binutils 2.16.1 with:
CC="ccache i686-pc-linux-gnu-gcc-4.0" CXX="ccache i686-pc-linux-gnu-g++-4.0" 
CFLAGS="-O1" CXXFLAGS="-O1" configure --cache-file=../binutils_configure-i686.
cache --prefix=/home/pfl/gnu --bindir=/home/pfl/gnu/bin --sbindir=/home/pfl/gnu/
sbin --libdir=/home/pfl/gnu/lib32  --program-prefix=i686-pc-linux-gnu-

Then I compiled gcc-4.0.2 with:
CC="ccache i686-pc-linux-gnu-gcc-4.0" CXX="ccache i686-pc-linux-gnu-g++-4.0" 
CFLAGS="-O1" CXXFLAGS="-O1"  ../gcc-4.0-20050728/configure --cache-file=../
gcc40_configure-mips.cache --prefix=/home/pfl/gnu --bindir=/home/pfl/gnu/bin --
sbindir=/home/pfl/gnu/sbin --libdir=/home/pfl/gnu/lib32 --disable-nls --disable-
multilib --disable-intl --enable-languages=c,c++ --target=mips-sgi-irix6.5 --
program-prefix=mips-sgi-irix6.5- --without-headers --with-newlib --with-gnu-ld -
-with-ld=/home/pfl/gnu/bin/mips-sgi-irix6.5-ld --with-gnu-as --with-as=/home/
pfl/gnu/bin/mips-pc-linux-gnu-as

This leads to:
...
/home/pfl/gnu/mips-sgi-irix6.5/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
...

Then I tried:
CC="ccache i686-pc-linux-gnu-gcc-4.0" CXX="ccache i686-pc-linux-gnu-g++-4.0" 
CFLAGS="-O1" CXXFLAGS="-O1"  ../gcc-4.0-20050728/configure --cache-file=../
gcc40_configure-mips.cache --prefix=/home/pfl/gnu --bindir=/home/pfl/gnu/bin --
sbindir=/home/pfl/gnu/sbin --libdir=/home/pfl/gnu/lib32 --disable-nls --disable-
multilib --disable-intl --enable-languages=c,c++ --target=mips-sgi-irix6.5 --
program-prefix=mips-sgi-irix6.5- --without-headers --with-newlib --with-gnu-ld

Which broke at the same line with:
...
/home/pfl/gnu/mips-sgi-irix6.5/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis »/home/pfl/gnu/build/mips-gcc-
4.0/gcc«
make[1]: *** [stmp-multilib] Fehler 2
rm gfdl.pod gcov.pod cpp.pod gpl.pod gcc.pod fsf-funding.pod
make[1]: Verlassen des Verzeichnisses Verzeichnis »/home/pfl/gnu/build/mips-gcc-
4.0/gcc«
make: *** [all-gcc] Fehler 2

If I manualy executed the line without -lc the line compiles/links. But the make 
file tries to redo this step so I find myself in an endless loop of manual 
compiling/linking and starting make.

I think the -lc linker switch could perhaps be removed from the Makefile.
I have a coupel of very fast machines and I am willing to try some parameter 
constellations for you if you like.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23231


  parent reply	other threads:[~2005-08-07  9:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-04 15:49 [Bug bootstrap/23231] New: " pfl at iis dot fhg dot de
2005-08-06  6:36 ` [Bug target/23231] " pinskia at gcc dot gnu dot org
2005-08-06 23:57 ` wilson at gcc dot gnu dot org
2005-08-07  9:22 ` pfl at iis dot fhg dot de [this message]
2005-08-07 15:14 ` pinskia at gcc dot gnu dot org
     [not found] <bug-23231-11102@http.gcc.gnu.org/bugzilla/>
2005-11-09 18:35 ` pfl at iis dot fhg dot de
     [not found] <bug-23231-4@http.gcc.gnu.org/bugzilla/>
2012-01-11 14:18 ` rguenth at gcc dot gnu.org

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=20050807092255.31694.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).