public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "michael.haubenwallner at salomon dot at" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/52623] 4.7.0-RC-20120314: bootstrap failure on AIX due to multilib and using C++ in post-stage1
Date: Wed, 21 Mar 2012 09:44:00 -0000 [thread overview]
Message-ID: <bug-52623-4-9UuMDtrvnd@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52623-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52623
--- Comment #3 from Michael Haubenwallner <michael.haubenwallner at salomon dot at> 2012-03-21 09:38:00 UTC ---
(In reply to comment #2)
> We should disable libquadmath on AIX. It is not needed or useful there.
>
> Have you tried adding --disable-libquadmath when configuring GCC?
For --enable-languages=c,c++ only, I can bootstrap using --disable-libquadmath.
Haven't tried other languages needing their own target libraries.
But the problem isn't with libquadmath itself, but with config-ml.in setting
LD_LIBRARY_PATH to find the multilib-wise libstdc++.a, and (interesting enough)
the AIX 7.1 loader listening to LD_LIBRARY_PATH now.
Consider these simple commands to trigger the configure-error in
ppc64/libquadmath:
$ ./gcc/xgcc
xgcc: fatal error: no input files
compilation terminated.
$ LD_LIBRARY_PATH=`pwd`/powerpc-ibm-aix7.1.0.0/ppc64/libstdc++-v3/src/.libs
./gcc/xgcc
exec(): 0509-036 Cannot load program ./gcc/xgcc because of the following
errors:
0509-150 Dependent module
/big1/local/src/test/gcc/gcc-4.7.0-RC-20120314/build/powerpc-ibm-aix7.1.0.0/ppc64/libstdc++-v3/src/.libs/libstdc++.a(libstdc++.so.6)
could not be loaded.
0509-103 The module has an invalid magic number.
Unfortunately, the AIX loader stops searching at the first matching archive
filename found,
even if it doesn't contain a matching shared object.
However, ldd shipped with AIX 7.1 still ignores LD_LIBRARY_PATH:
$ ldd ./gcc/xgcc
./gcc/xgcc needs:
/usr/lib/libc.a(shr.o)
/usr/lib/libiconv.a(shr4.o)
/big1/local/src/test/gcc/gcc-4.7.0-RC-20120314/build/prev-powerpc-ibm-aix7.1.0.0/libstdc++-v3/src/.libs/libstdc++.a(libstdc++.so.6)
/unix
/usr/lib/libcrypt.a(shr.o)
/big1/local/src/test/gcc/gcc-4.7.0-RC-20120314/build/./prev-gcc/libgcc_s.a(shr.o)
$ LD_LIBRARY_PATH=`pwd`/powerpc-ibm-aix7.1.0.0/ppc64/libstdc++-v3/src/.libs ldd
./gcc/xgcc
./gcc/xgcc needs:
/usr/lib/libc.a(shr.o)
/usr/lib/libiconv.a(shr4.o)
/big1/local/src/test/gcc/gcc-4.7.0-RC-20120314/build/prev-powerpc-ibm-aix7.1.0.0/libstdc++-v3/src/.libs/libstdc++.a(libstdc++.so.6)
/unix
/usr/lib/libcrypt.a(shr.o)
/big1/local/src/test/gcc/gcc-4.7.0-RC-20120314/build/./prev-gcc/libgcc_s.a(shr.o)
next prev parent reply other threads:[~2012-03-21 9:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-19 17:20 [Bug bootstrap/52623] New: " michael.haubenwallner at salomon dot at
2012-03-19 17:25 ` [Bug bootstrap/52623] " michael.haubenwallner at salomon dot at
2012-03-20 14:16 ` dje at gcc dot gnu.org
2012-03-21 9:44 ` michael.haubenwallner at salomon dot at [this message]
2012-03-21 14:44 ` michael.haubenwallner at salomon dot at
2012-03-22 5:55 ` dje at gcc dot gnu.org
2012-03-22 9:43 ` michael.haubenwallner at salomon dot at
2012-03-22 19:26 ` dje at gcc dot gnu.org
2012-03-22 20:43 ` michael.haubenwallner at salomon dot at
2012-03-22 21:40 ` dje at gcc dot gnu.org
2012-03-23 0:03 ` dje at gcc dot gnu.org
2012-03-23 10:22 ` michael.haubenwallner at salomon dot at
2012-03-23 10:43 ` michael.haubenwallner at salomon dot at
2012-03-23 16:45 ` michael.haubenwallner at salomon dot at
2012-03-27 16:49 ` dje at gcc dot gnu.org
2012-03-28 8:32 ` michael.haubenwallner at salomon dot at
2012-03-28 13:00 ` dje at gcc dot gnu.org
2012-03-28 14:25 ` michael.haubenwallner at salomon dot at
2013-01-30 16:53 ` dje at gcc dot gnu.org
2015-02-06 16:01 ` dje 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=bug-52623-4-9UuMDtrvnd@http.gcc.gnu.org/bugzilla/ \
--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).