GCC 4.5.0 - libgfortran issue

Dr. David Kirkby david.kirkby@onetel.net
Tue Aug 10 10:49:00 GMT 2010


On 08/10/10 09:38 AM, Philipp Edelmann wrote:
> Dear Vardhan,
>
> On Tue, May 18, 2010 at 08:21:21AM -0400, Vardhan, Sundara (GE Infra, Energy) wrote:
>> I downloaded the GCC 4.5.0 source and am compiling on AIX 6.1. The
>> following is the configure command used to build the make files etc
>>
>> /cots/gnu/gcc-4.5.0/configure --with-as=/usr/bin/as
>> --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran
>> --prefix=/cots/gnu/gcc450 --enable-threads --disable-nls
>> --enable-decimal-float=dpd --with-mpfr=/cots/gnu/mpfr242
>> --with-gmp=/cots/gnu/gmp501 --with-mpc=/cots/gnu/mpc081
>>
>> Set the CONFIG_SHELL to bash and when compiled I get the following error
>> :
>>
>> ld: 0711-317 ERROR: Undefined symbol: .__copysignl128
>> ld: 0711-317 ERROR: Undefined symbol: .__nextafterl128
>> ld: 0711-317 ERROR: Undefined symbol: .__scalbnl128
>> ld: 0711-317 ERROR: Undefined symbol: .__cabsl128
>> ld: 0711-317 ERROR: Undefined symbol: .__cargl128
>> ld: 0711-317 ERROR: Undefined symbol: .__truncl128
>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
>> information.
>> collect2: ld returned 8 exit status
>> make[3]: *** [libgfortran.la] Error 1
>> make[3]: Leaving directory
>> `/cots/gnu/build450/powerpc-ibm-aix6.1.4.0/libgfortran'
>
> I encountered the same problem while compiling gcc-4.5.1 on AIX. The
> problem is that GCC tries to use the 128 bit long double functions.
> These are not the default on AIX (see [1]).

I've got no idea if this is right or not, but I have access to an AIX system 
where gcc seems pretty broken (including <unistd.h> stops a hello world program 
compiling.)

BUT, I note gcc was configured like this

bash-4.0$ gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../stage/gcc-4.2.4/configure --disable-shared 
--enable-threads=posix --prefix=/opt/pware --with-long-double-128 
--with-mpfr=/opt/pware --with-gmp=/opt/pware
Thread model: aix
gcc version 4.2.4
bash-4.0$


I've no idea what --with-long-double-128 does, but it might be relevant.

Dave



More information about the Gcc-help mailing list