public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/19995] New: libstdc++ fails to build correctly on AIX 5.2
@ 2005-02-16 12:32 quanah at stanford dot edu
2005-02-16 12:36 ` [Bug libstdc++/19995] " pinskia at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2005-02-16 12:32 UTC (permalink / raw)
To: gcc-bugs
I had no problem building gcc-3.3.1 on this system. However, when I went to
build gcc-3.4.3, it failes in the ppc64 portion of libstdc++. The error given
is the same as seen in this very old thread:
<http://gcc.gnu.org/ml/gcc/2001-06/msg01217.html>
Configure is run as:
cd ../gcc-build/rs_aix52 && CONFIG_SHELL=/usr/pubsw/bin/bash CFLAGS=-O CC=gcc sh
../../gcc-3.4.3/configure \
--datadir='${prefix}/lib' --libexecdir='${prefix}/lib' \
--sharedstatedir='${prefix}/lib' --prefix=/usr/pubsw \
--with-as=/usr/bin/as \
--with-ld=/usr/bin/ld \
--with-ar=/usr/bin/ar \
--with-included-gettext \
--with-libintl-prefix=/usr/pubsw \
--with-libiconv-prefix=/usr/pubsw \
--enable-languages=c,c++,f77,java,objc
The failure error is:
checking for powerpc-ibm-aix5.2.0.0-gcc...
/afs/ir/src/pubsw/languages/gcc-build/@sys/gcc/xgcc
-B/afs/ir/src/pubsw/languages/gcc-build/@sys/gcc/ -B/usr/pubsw/bin/
-B/usr/pubsw/lib/ -isystem /usr/pubsw/include -isystem /usr/pubsw/sys-include
-maix64
checking for C compiler default output... a.out
checking whether the C compiler works... configure: error: cannot run C compiled
programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory
`/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/rs_aix52'
make: *** [bootstrap] Error 2
config.log shows:
configure:2397: /afs/ir/src/pubsw/languages/gcc-build/@sys/gcc/xgcc
-B/afs/ir/src/pubsw/languages/gcc-build/@sys/gcc/ -B/usr/pubsw/bin/
-B/usr/pubsw/lib/ -isystem /usr/pubsw/include -isystem /usr/pubsw/sys-include
-maix64 -O2 -O -O2 -O conftest.c >&5
configure:2400: $? = 0
configure:2446: result: a.out
configure:2451: checking whether the C compiler works
configure:2457: ./a.out
Could not load program ./a.out:
Cannot run a 64-bit program on a 32-bit machine.
configure:2460: $? = 255
configure:2469: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
--
Summary: libstdc++ fails to build correctly on AIX 5.2
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: quanah at stanford dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-ibm-aix5.2.0.0
GCC host triplet: powerpc-ibm-aix5.2.0.0
GCC target triplet: powerpc-ibm-aix5.2.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19995
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/19995] libstdc++ fails to build correctly on AIX 5.2
2005-02-16 12:32 [Bug libstdc++/19995] New: libstdc++ fails to build correctly on AIX 5.2 quanah at stanford dot edu
@ 2005-02-16 12:36 ` pinskia at gcc dot gnu dot org
2005-02-16 19:47 ` quanah at stanford dot edu
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-16 12:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-16 05:14 -------
Cannot run a 64-bit program on a 32-bit machine.
You want --disable-aix64 but that does not work for 3.4.x where x < 4 (maybe even when build
normal it should have dected it I don't know).
Anyways this is a dup of bug 18033 which is already fixed for 3.4.4.
*** This bug has been marked as a duplicate of 18033 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Status|UNCONFIRMED |RESOLVED
Keywords| |build
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19995
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/19995] libstdc++ fails to build correctly on AIX 5.2
2005-02-16 12:32 [Bug libstdc++/19995] New: libstdc++ fails to build correctly on AIX 5.2 quanah at stanford dot edu
2005-02-16 12:36 ` [Bug libstdc++/19995] " pinskia at gcc dot gnu dot org
@ 2005-02-16 19:47 ` quanah at stanford dot edu
2005-02-16 20:13 ` quanah at stanford dot edu
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2005-02-16 19:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From quanah at stanford dot edu 2005-02-16 16:28 -------
I disagree that this is a duplicate of 18033.
I applied the following patch to gcc-3.4.3:
--- gcc-3.4.3/config-ml.in.orig 2005-02-15 21:37:41.000000000 -0800
+++ gcc-3.4.3/config-ml.in 2005-02-15 21:38:08.000000000 -0800
@@ -108,6 +108,11 @@
ml_verbose=--verbose
for option in ${ac_configure_args}
do
+ # strip single quotes surrounding individual options
+ case $option in
+ \'*\') eval option=$option ;;
+ esac
+
case $option in
--*) ;;
-*) option=-$option ;;
Then completely reconfigured and started a rebuild of gcc, and I get the same
exact error.
configure:2446: result: a.out
configure:2451: checking whether the C compiler works
configure:2457: ./a.out
Could not load program ./a.out:
Cannot run a 64-bit program on a 32-bit machine.
configure:2460: $? = 255
configure:2469: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
--Quanah
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19995
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/19995] libstdc++ fails to build correctly on AIX 5.2
2005-02-16 12:32 [Bug libstdc++/19995] New: libstdc++ fails to build correctly on AIX 5.2 quanah at stanford dot edu
2005-02-16 12:36 ` [Bug libstdc++/19995] " pinskia at gcc dot gnu dot org
2005-02-16 19:47 ` quanah at stanford dot edu
@ 2005-02-16 20:13 ` quanah at stanford dot edu
2005-02-17 5:24 ` quanah at stanford dot edu
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2005-02-16 20:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From quanah at stanford dot edu 2005-02-16 17:02 -------
never mind, i forgot to run autoconf to regenerate configure after applying the
patch.
*** This bug has been marked as a duplicate of 18033 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19995
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/19995] libstdc++ fails to build correctly on AIX 5.2
2005-02-16 12:32 [Bug libstdc++/19995] New: libstdc++ fails to build correctly on AIX 5.2 quanah at stanford dot edu
` (2 preceding siblings ...)
2005-02-16 20:13 ` quanah at stanford dot edu
@ 2005-02-17 5:24 ` quanah at stanford dot edu
2005-02-17 12:21 ` quanah at stanford dot edu
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2005-02-17 5:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From quanah at stanford dot edu 2005-02-16 21:34 -------
The patch listed in bug 18033 does *not* fix the problem.
After applying the patch, and regenerating the top level configure via autoconf
(just to be safe), I still have the exact same bootstrapping problem listed here.
checking for C compiler default output... a.out
checking whether the C compiler works... configure: error: cannot run C compiled
programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory
`/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/rs_aix52'
make: *** [bootstrap] Error 2
configure:2446: result: a.out
configure:2451: checking whether the C compiler works
configure:2457: ./a.out
Could not load program ./a.out:
Cannot run a 64-bit program on a 32-bit machine.
configure:2460: $? = 255
configure:2469: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
--Quanah
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19995
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/19995] libstdc++ fails to build correctly on AIX 5.2
2005-02-16 12:32 [Bug libstdc++/19995] New: libstdc++ fails to build correctly on AIX 5.2 quanah at stanford dot edu
` (3 preceding siblings ...)
2005-02-17 5:24 ` quanah at stanford dot edu
@ 2005-02-17 12:21 ` quanah at stanford dot edu
2005-02-17 15:05 ` quanah at stanford dot edu
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2005-02-17 12:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From quanah at stanford dot edu 2005-02-17 00:51 -------
Also note that my case differs from 18033 because I'm *not* setting:
--disable-aix64 (--enable-aix64=no)
My configure options worked fine with gcc-3.3.1.
I'm currently testing using the config-ml.in file from gcc-3.3.1 instead of the
one supplied with gcc-3.4.3 to see if I hit the same issue, as the
gcc/config/rs6000/t-aix2 file hasn't changed since 2003, so it would seem the
error happened at some point inside config-ml.in changes.
--Quanah
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19995
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/19995] libstdc++ fails to build correctly on AIX 5.2
2005-02-16 12:32 [Bug libstdc++/19995] New: libstdc++ fails to build correctly on AIX 5.2 quanah at stanford dot edu
` (4 preceding siblings ...)
2005-02-17 12:21 ` quanah at stanford dot edu
@ 2005-02-17 15:05 ` quanah at stanford dot edu
2005-03-02 23:23 ` dje at gcc dot gnu dot org
2005-04-01 14:34 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2005-02-17 15:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From quanah at stanford dot edu 2005-02-17 05:24 -------
using config-ml.in from gcc-3.3.1 also didn't resolve the problem. I can only
assume the problem lies elsewhere.
Any ideas?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19995
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/19995] libstdc++ fails to build correctly on AIX 5.2
2005-02-16 12:32 [Bug libstdc++/19995] New: libstdc++ fails to build correctly on AIX 5.2 quanah at stanford dot edu
` (5 preceding siblings ...)
2005-02-17 15:05 ` quanah at stanford dot edu
@ 2005-03-02 23:23 ` dje at gcc dot gnu dot org
2005-04-01 14:34 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-03-02 23:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2005-03-02 23:23 -------
GCC 3.4 requires that it can build and run an application in every multilib
variant for which it tries to build a target library. This technically is not
necessary, but that is the way it currently works. You either need to build on
a 64-bit system or disable 64-bit libraries. If you do neither, GCC 3.4 is
working as designed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19995
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/19995] libstdc++ fails to build correctly on AIX 5.2
2005-02-16 12:32 [Bug libstdc++/19995] New: libstdc++ fails to build correctly on AIX 5.2 quanah at stanford dot edu
` (6 preceding siblings ...)
2005-03-02 23:23 ` dje at gcc dot gnu dot org
@ 2005-04-01 14:34 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2005-04-01 14:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2005-04-01 14:34 -------
I think we can safely close this one.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19995
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-04-01 14:34 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-16 12:32 [Bug libstdc++/19995] New: libstdc++ fails to build correctly on AIX 5.2 quanah at stanford dot edu
2005-02-16 12:36 ` [Bug libstdc++/19995] " pinskia at gcc dot gnu dot org
2005-02-16 19:47 ` quanah at stanford dot edu
2005-02-16 20:13 ` quanah at stanford dot edu
2005-02-17 5:24 ` quanah at stanford dot edu
2005-02-17 12:21 ` quanah at stanford dot edu
2005-02-17 15:05 ` quanah at stanford dot edu
2005-03-02 23:23 ` dje at gcc dot gnu dot org
2005-04-01 14:34 ` pcarlini at suse dot de
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).