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