I just made tests on another computer where I have ExtUtils::F77
version 1.18 installed and I downloaded version 1.19.
$ perl -MExtUtils::F77 -e ''
ExtUtils::F77: Version 1.18
Loaded ExtUtils::F77 version 1.18
Found compiler f77
Found compiler gfortran
ExtUtils::F77: Using system=Linux compiler=GNU
Runtime: -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib -lgfortran -lm
ExtUtils::F77: Validating -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib
-lgfortran -lm [ok]
ExtUtils::F77: Compiler: gfortran
ExtUtils::F77: Cflags:
$ perl -Mblib -MExtUtils::F77 -e ''
ExtUtils::F77: Version 1.19
Loaded ExtUtils::F77 version 1.19
Found compiler f77
Found compiler gfortran
ExtUtils::F77: gfortran version 5.3.1
ExtUtils::F77: gfortran version 5.3.1
ExtUtils::F77: Using system=Linux compiler=GNU
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
ExtUtils::F77: Compiler: gfortran
ExtUtils::F77: Cflags:
Again, version 1.19 adds the non-existing libraries -lgcc_ext.10.5
-lgcc_s.10.5
I checked the diffs on the two sources of F77.pm (attached)
I guess the problem is in the lines:
if ($compiler eq 'GNU') { # Special gfortran case since it seems to
have lots of random libs
print "Found compiler=$compiler - skipping validation of $Runtime
\n";
}else {
$ok = validate_libs($Runtime) if $flibs ne "" ;
}
and
# Sigh special case random extra gfortran libs to avoid PERL_DL_NONLAZY
meltdowns. KG 25/10/2015
$append = "";
if ($compiler eq 'gfortran' && $version >= 4.9) { # Add extra libs for
gfortran versions >= 4.9
# if ($compiler eq 'gfortran' && $Config{osname} =~ /darwin/ &&
$Config{osvers} >=14) { # code variant for OS X only
$append = "-lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath";
}
return( "-L$dir $append -L/usr/lib -l$lib -lm" );
Regards,
Luis
---
/home/mochan/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/ExtUtils/F77.pm
2015-06-07 15:28:59.000000000 -0500
+++ F77.pm 2015-12-07 04:59:28.000000000 -0600
@@ -38,7 +38,7 @@
=cut
-$VERSION = "1.18";
+$VERSION = "1.19";
warn "\nExtUtils::F77: Version $VERSION\n";
@@ -423,7 +423,12 @@
$Runtime = ' ' if $^O eq 'VMS'; # <-- need this space!
print "Runtime: $Runtime\n";
$ok = 1;
- $ok = validate_libs($Runtime) if $flibs ne "";
+ if ($compiler eq 'GNU') { # Special gfortran case since it seems to
have lots of random libs
+ print "Found compiler=$compiler - skipping validation of
$Runtime \n";
+
+ }else {
+ $ok = validate_libs($Runtime) if $flibs ne "" ;
+ }
}
}else {
$Runtime = $ok = "";
@@ -733,6 +738,17 @@
}
}
}
+ # Get compiler version number
+ my @t =`$compiler --version`; $t[0] =~ /(\d+).(\d)+.(\d+)/;
+ my $version = "$1.$2"; # Major version number
+ print "ExtUtils::F77: $compiler version $version.$3\n";
+ # Sigh special case random extra gfortran libs to avoid PERL_DL_NONLAZY
meltdowns. KG 25/10/2015
+ $append = "";
+ if ($compiler eq 'gfortran' && $version >= 4.9) { # Add extra libs for
gfortran versions >= 4.9
+# if ($compiler eq 'gfortran' && $Config{osname} =~ /darwin/ &&
$Config{osvers} >=14) { # code variant for OS X only
+ $append = "-lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath";
+ }
+ return( "-L$dir $append -L/usr/lib -l$lib -lm" );
return( "-L$dir -L/usr/lib -l$lib -lm" );
}
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general