This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Link issues with gcc 4.4.0 on AIX 5.3
- From: "Eric Fernandez" <efernandez at physiomics-plc dot com>
- To: "GCC-help" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 28 May 2009 14:31:14 +0100
- Subject: Link issues with gcc 4.4.0 on AIX 5.3
Hi,
I have compiled gcc-4.4.0 on AIX 5.3 (using my current gcc-4.3.3 and GNU
toolchain) with no problem (I also compiled PPL and CLoog). I use the
AIX linker and used --disabled shared. However, when trying to compile a
simple c++ program, I get this error:
collect2: library libstdc++ -lsupc++ not found
That's very strange, because 4.3.3 had no problem finding these
libraries. My GNU toolchain and libs are in a local directory and are
very parallel:
$PREFIXGNU/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.3 contains:
finclude/ include-fixed/ libgcc.a libgomp.a
libgomp.spec libstdc++.la* libsupc++.la* pthread/ include/
install-tools/ libgcov.a libgomp.la* libstdc++.a
libsupc++.a ppc64/
and $PREFIXGNU/lib/gcc/powerpc-ibm-aix5.3.0.0/4.4.0 contains the same
file names.
gcc-4.4.0 was configured with:
bash-2.05a$ gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: /hpc/work/fernandz/gnusrc/gcc-4.4.0/configure
--enable-threads --enable-languages=c,c++ --prefix=$PREFIXGNU
--enable-threads --disable-shared --enable-version-specific-runtime-libs
--disable-nls --with-gmp=$PREFIXGNU --with-mpfr=$PREFIXGNU
--with-ppl=$PREFIXGNU --with-cloog=$PREFIXGNU
Thread model: aix
gcc version 4.4.0 (GCC)
gcc-4.3.0 was configured with:
bash-2.05a$ gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: /hpc/work/fernandz/gnusrc/gcc-4.3.3/configure
--enable-threads --enable-languages=c,c++ --prefix=$PREFIXGNU
--enable-threads --disable-shared --enable-version-specific-runtime-libs
--disable-nls --with-gmp=$PREFIXGNU --with-mpfr=$PREFIXGNU
Thread model: aix
gcc version 4.3.3 (GCC)
LIBPATH is set to:
LIBPATH=$PREFIXGNU/lib/gcc/powerpc-ibm-aix5.3.0.0/$GCC_VERSION:$PREFIX/l
ib:$PREFIXGNU/lib:/usr/lib:/lib
where $GCC_VERSION = 4.3.3 or 4.4.0 depending.
I don't understand the problem with 4.4.0.
Thanks for your help,
Eric