Hi,

Perl-5.22.0 will be released soon, and version 5.22 of Strawberry Perl will 
be built using the latest mingw runtime (version 4).
kmx drew my attention to the fact that PDL::Slatec (PDL-2.007_17) fails to 
build with this runtime.

Unlike runtime version 3, the new libgfortran.a contains some libquadmath.a 
symbols - and therefore a link to libquadmath.a is needed.

The simplest (and correct, imo) way to achieve this is to have ExtUtils::F77 
provide the necessary link to libquadmath.a.
And this is the subject of the newly created ExtUtils::F77 bug report:

https://rt.cpan.org/Ticket/Display.html?id=104495

It's a small patch to F77.pm that's needed:

###############################
--- F77.pm_orig 2015-05-18 20:00:56 +1000
+++ F77.pm      2015-05-18 20:03:29 +1000
@@ -122,7 +122,7 @@
     } else {
         $dir = "/usr/local/lib";
     }
-    return( "-L$dir -L/usr/lib -lgfortran -lm" );
+    return( "-L$dir -L/usr/lib -lgfortran -lquadmath -lm" );
};

$F77config{MinGW}{G77}{Trail_} = 1;

###############################

Without that patch, PDL::Slatec will fail to build on Strawberry's upcoming 
5.22 releases - and on any other mingw64-built perl (both 32-bit and 64-bit) 
where version 4 of the mingw runtime is being used.

Can you (Chris or Karl) fast-forward a new release of EU::F77 that includes 
this patch ?

PDL should then update its PREREQ_PM to 1.18 - but I don't think there's any 
need to hold back the release of PDL-2.008 because of this. (Existing perls 
won't need the patch, and future perls would automatically install the new 
1.18 anyway.)

Cheers,
Rob 


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to