Skip Menu |

This queue is for tickets about the ExtUtils-F77 CPAN distribution.

Report information
The Basics
Id: 111195
Status: resolved
Priority: 0/
Queue: ExtUtils-F77

People
Owner: chm [...] cpan.org
Requestors: GSB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.19
Fixed in: 1.19_1



Subject: -lgcc_ext.10.5 and -lgcc_s.10.5 not found
With version 1.19, I get an error with two libraries not being found: /usr/bin/ld: cannot find -lgcc_ext.10.5 /usr/bin/ld: cannot find -lgcc_s.10.5 This is with gfortran 5.3.0 on Linux: $ gfortran --version GNU Fortran (GCC) 5.3.0 Copyright (C) 2015 Free Software Foundation, Inc. ... It looks like I have libgcc_s (but not .10.5) and no libgcc_ext: $ ls /usr/lib/libgcc* /usr/lib/libgccpp.so /usr/lib/libgccpp.so.1 /usr/lib/libgccpp.so.1.0.3 /usr/lib/libgcc_s.so /usr/lib/libgcc_s.so.1
RT-Send-CC: devel.chm.01 [...] gmail.com
I have similar problem illustrated by the package attached which contains a simple fortran routine callable from pdl that writes a message to the terminal. If I issue the following commands using ExtUtils::F77 version 1.17 the everything works and I get the expected output: $ # unpack the package and build it $ tar xfz Rem-0-TRIAL.tar.gz; cd Rem-0-TRIAL $ perl Build.PL ... Runtime: -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib -lgfortran -lm ... $ ./Build $ # Run a simple script to test the package. $ perl -Mblib -MRem::RemPd -E 'PDL::subrutina()' hello from fortran But when I attempt the same using version 1.19, the build process fails: $ tar xfz Rem-0-TRIAL.tar.gz; cd Rem-0-TRIAL $ perl Build.PL $ ./Build ... Runtime: -L/usr/lib/gcc/x86_64-linux-gnu/5 -lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath -L/usr/lib -lgfortran -lm Found compiler=GNU - skipping validation of -L/usr/lib/gcc/x86_64-linux-gnu/5 -lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath -L/usr/lib -lgfortran -lm ... $ ./Build ... cc -shared -O2 -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/Rem/RemPd/RemPd.so lib/Rem/RemPd.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath -L/usr/lib -lgfortran -lm fortran/subrutina.o /usr/bin/ld: cannot find -lgcc_ext.10.5 /usr/bin/ld: cannot find -lgcc_s.10.5 collect2: error: ld returned 1 exit status error building blib/arch/auto/Rem/RemPd/RemPd.so from lib/Rem/RemPd.o at ... Thus, the libraries that version 1.19 adds to the runtime are inexistent in my system, they are not being removed and they cause the build process to fail. I don't know how to circumvent this problem which I guess is a bug. My system is debian/testing and I'm using the gfortran compiler. I'm using Module::Build, Module::Build::Pluggable::PDL and Module::Build::Pluggable::Fortran to build the package. On Thu Jan 14 10:28:19 2016, GSB wrote: Show quoted text
> With version 1.19, I get an error with two libraries not being found: > > /usr/bin/ld: cannot find -lgcc_ext.10.5 > /usr/bin/ld: cannot find -lgcc_s.10.5 > > This is with gfortran 5.3.0 on Linux: > > $ gfortran --version > GNU Fortran (GCC) 5.3.0 > Copyright (C) 2015 Free Software Foundation, Inc. > ... > > It looks like I have libgcc_s (but not .10.5) and no libgcc_ext: > > $ ls /usr/lib/libgcc* > /usr/lib/libgccpp.so /usr/lib/libgccpp.so.1 > /usr/lib/libgccpp.so.1.0.3 /usr/lib/libgcc_s.so > /usr/lib/libgcc_s.so.1
Subject: Rem-0-TRIAL.tar.gz
Download Rem-0-TRIAL.tar.gz
application/gzip 2.1k

Message body not shown because it is not plain text.

It appears the problem is a fix for some OS X troubles that shouldn't be applied in the general case.

On Thu Jan 14 10:28:19 2016, GSB wrote:
Show quoted text
> With version 1.19, I get an error with two libraries not being found:
>
> /usr/bin/ld: cannot find -lgcc_ext.10.5
> /usr/bin/ld: cannot find -lgcc_s.10.5
>
> This is with gfortran 5.3.0 on Linux:
>
> $ gfortran --version
> GNU Fortran (GCC) 5.3.0
> Copyright (C) 2015 Free Software Foundation, Inc.
> ...
>
> It looks like I have libgcc_s (but not .10.5) and no libgcc_ext:
>
> $ ls /usr/lib/libgcc*
> /usr/lib/libgccpp.so /usr/lib/libgccpp.so.1
> /usr/lib/libgccpp.so.1.0.3 /usr/lib/libgcc_s.so
> /usr/lib/libgcc_s.so.1


I've just pushed a CPAN Developers release ExtUtils::F77 1.19_1 to PAUSE.  Please confirm that it resolves your issue.  I would like to push an official release once this ticket is closed.  Thanks.
Please confirm that this version addresses your problem.  It does resolve a large number of FAIL reports that appeared with the 1.19 version.
On Mon Mar 07 16:08:54 2016, CHM wrote: Show quoted text
> Please confirm that this version addresses your problem. It does resolve a > large number of FAIL reports that appeared with the 1.19 version.
That seems to work for me at the moment with my system. It looks like it is linking against libgcc_s and libquadmath despite not requesting them explicitly: $ ldd [...]/site_perl/5.18.2/x86_64-linux/auto/NDF/NDF.so [...] libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f092b758000) libquadmath.so.0 => /usr/lib/libquadmath.so.0 (0x00007f092b519000) [...]
RT-Send-CC: devel.chm.01 [...] gmail.com
On Mon Mar 07 16:08:54 2016, CHM wrote: Show quoted text
> Please confirm that this version addresses your problem. It does resolve a > large number of FAIL reports that appeared with the 1.19 version.
It solved the problem in my system (debian/testing with gfortran)