Re: [Pdl-general] extutils-f77

2019-02-20 Thread Luis Mochan
On Wed, Feb 20, 2019 at 09:23:50PM +1100, Karl Glazebrook wrote:
> This seems like a reasonable change. I am not sure though where the original 
> bug was introduced and why/
> 
> Can you file it as an issue on github and we can discuss it there?

Done.

> Also is the debug output a seperate issue? I know a recent patch tried to 
> clean up outputs

I haven't looked yet at the different debug outputs.

Best regards,
Luis

-- 

  o
W. Luis Mochán,  | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
Apdo. Postal 48-3, 62251 |   (*)/\/  \
Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB




___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] extutils-f77

2019-02-20 Thread Karl Glazebrook via pdl-general
This seems like a reasonable change. I am not sure though where the original 
bug was introduced and why/

Can you file it as an issue on github and we can discuss it there?

Also is the debug output a seperate issue? I know a recent patch tried to clean 
up outputs

Karl


> On 19 Feb 2019, at 7:41 am, Luis Mochan  wrote:
> 
> On Mon, Feb 18, 2019 at 11:08:09AM -0500, Chris Marshall wrote:
>> I was going to suggest enabling the debug option
>> by setting $ExtUtils::F77::DEBUG = 1 before the
>> use ExtUtils::F77 but while that worked for my
>> installed version 1.20 it generated no useful
>> output from the version 1.23.
>> 
>> My 1.20 version did not show any extra quotations.
>> If you regress to version 1.20 do things work again?
> 
> I unpacked version 1.20 and it seem to work.
> 
> ...ExtUtils-F77-1.20$ perl -Mlib=blib/lib -MExtUtils::F77 -E 'say 
> ExtUtils::F77->runtime'
> .
> .
> .
> -L/usr/lib/gcc/x86_64-linux-gnu/8 -L/usr/lib -lgfortran -lm
> 
> ...ExtUtils-F77-1.20$ perl -MExtUtils::F77 -E 'say ExtUtils::F77->runtime'
> .
> "-L/usr/lib/gcc/x86_64-linux-gnu/8"  -L/usr/lib -lgfortran -lm
> 
>> If you set $DB::single = 1 before the use ExtUtils::F77
>> line and run your script under the debugger, you should be
>> able to step through the code to see where the values are
>> being generated.
> 
> Thanks for the advice. I believe I found the problem. Line 96 of 
> ExtUtils::F77.pm has
> 
>   return( qq{"-L$dir" $append -L/usr/lib -l$lib -lm} );
> 
> so it quotes with qq *and* with "". I guess it can be fixed removing the 
> double quotes "".
> 
> 
> Best regards,
> Luis
> 
> --patch
> 
> 96c96
> <   return( qq{"-L$dir" $append -L/usr/lib -l$lib -lm} );
> ---
>>  return( qq{-L$dir $append -L/usr/lib -l$lib -lm} );
> 
> --end patch
> 
> 
> 
> 
> -- 
> 
>  o
> W. Luis Mochán,  | tel:(52)(777)329-1734 /<(*)
> Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
> Apdo. Postal 48-3, 62251 |   (*)/\/  \
> Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/
> GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB
> 
> 
> 
> 
> ___
> pdl-general mailing list
> pdl-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pdl-general



___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] extutils-f77

2019-02-18 Thread Luis Mochan
On Mon, Feb 18, 2019 at 11:08:09AM -0500, Chris Marshall wrote:
> I was going to suggest enabling the debug option
> by setting $ExtUtils::F77::DEBUG = 1 before the
> use ExtUtils::F77 but while that worked for my
> installed version 1.20 it generated no useful
> output from the version 1.23.
> 
> My 1.20 version did not show any extra quotations.
> If you regress to version 1.20 do things work again?

I unpacked version 1.20 and it seem to work.

 ...ExtUtils-F77-1.20$ perl -Mlib=blib/lib -MExtUtils::F77 -E 'say 
ExtUtils::F77->runtime'
 .
 .
 .
 -L/usr/lib/gcc/x86_64-linux-gnu/8 -L/usr/lib -lgfortran -lm

 ...ExtUtils-F77-1.20$ perl -MExtUtils::F77 -E 'say ExtUtils::F77->runtime'
 .
 "-L/usr/lib/gcc/x86_64-linux-gnu/8"  -L/usr/lib -lgfortran -lm

> If you set $DB::single = 1 before the use ExtUtils::F77
> line and run your script under the debugger, you should be
> able to step through the code to see where the values are
> being generated.

Thanks for the advice. I believe I found the problem. Line 96 of 
ExtUtils::F77.pm has

   return( qq{"-L$dir" $append -L/usr/lib -l$lib -lm} );

so it quotes with qq *and* with "". I guess it can be fixed removing the double 
quotes "".


Best regards,
Luis

--patch

96c96
<   return( qq{"-L$dir" $append -L/usr/lib -l$lib -lm} );
---
>   return( qq{-L$dir $append -L/usr/lib -l$lib -lm} );

--end patch




-- 

  o
W. Luis Mochán,  | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
Apdo. Postal 48-3, 62251 |   (*)/\/  \
Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB




___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] extutils-f77

2019-02-18 Thread Chris Marshall

I was going to suggest enabling the debug option
by setting $ExtUtils::F77::DEBUG = 1 before the
use ExtUtils::F77 but while that worked for my
installed version 1.20 it generated no useful
output from the version 1.23.

My 1.20 version did not show any extra quotations.
If you regress to version 1.20 do things work again?

If you set $DB::single = 1 before the use ExtUtils::F77
line and run your script under the debugger, you should be
able to step through the code to see where the values are
being generated.

--Chris

On 2/17/2019 20:11, Luis Mochan wrote:

I just upgraded my perl to 5.28.1, reinstalled all my modules
(including PDL and ExtUtils::F77), and when I try to Build one of my
packages I get and error as the following:
 $./Build
 # process_pd_files
 # provideslib/Photonic/ExtraUtils.pd
 Loaded ExtUtils::F77 version 1.23
 Building Photonic
 cc -shared -O2 -L/usr/local/lib -fstack-protector-strong -o 
blib/arch/auto/Photonic/ExtraUtils/ExtraUtils.so lib/Photonic/ExtraUtils.o 
"-L/usr/lib/gcc/x86_64-linux-gnu/8"  -L/usr/lib -lgfortran -lm fortran/cgtsl.o 
fortran/dgtsl.o
 cc: error: "-L/usr/lib/gcc/x86_64-linux-gnu/8": No such file or directory
 cc: error: : No such file or directory
 error building blib/arch/auto/Photonic/ExtraUtils/ExtraUtils.so from 
lib/Photonic/ExtraUtils.o at 
/home/mochan/perl5/perlbrew/perls/perl-5.28.0/lib/5.28.1/ExtUtils/CBuilder/Base.pm
 line 332.

If I compile manually

 cc ... "-L/usr/lib/gcc/x86_64-linux-gnu/8"  -L/usr/lib -lgfortran -lm 
fortran/c gtsl.o fortran/dgtsl.o

I don't get the error. Thus, I believe that the error has to do with
the quotation marks around  "-L/usr/lib/gcc/x86_64-linux-gnu/8". I
tried debugging the Build script  to find where do these quotations
come from, and found they seem to come from ExtUtils::F77:

 $ perl -MExtUtils::F77 -E 'say ExtUtils::F77->runtime'
 Loaded ExtUtils::F77 version 1.23
 "-L/usr/lib/gcc/x86_64-linux-gnu/8"  -L/usr/lib -lgfortran -lm

Is this a bug in ExtUtils::F77? How can I get rid of the quotes "" so
my package can be compiled automatically? I'll aprecciate any advice.

Best regards,
Luis






___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


[Pdl-general] extutils-f77

2019-02-17 Thread Luis Mochan
I just upgraded my perl to 5.28.1, reinstalled all my modules
(including PDL and ExtUtils::F77), and when I try to Build one of my
packages I get and error as the following:
$./Build
# process_pd_files
# provideslib/Photonic/ExtraUtils.pd
Loaded ExtUtils::F77 version 1.23
Building Photonic
cc -shared -O2 -L/usr/local/lib -fstack-protector-strong -o 
blib/arch/auto/Photonic/ExtraUtils/ExtraUtils.so lib/Photonic/ExtraUtils.o 
"-L/usr/lib/gcc/x86_64-linux-gnu/8"  -L/usr/lib -lgfortran -lm fortran/cgtsl.o 
fortran/dgtsl.o
cc: error: "-L/usr/lib/gcc/x86_64-linux-gnu/8": No such file or directory
cc: error: : No such file or directory
error building blib/arch/auto/Photonic/ExtraUtils/ExtraUtils.so from 
lib/Photonic/ExtraUtils.o at 
/home/mochan/perl5/perlbrew/perls/perl-5.28.0/lib/5.28.1/ExtUtils/CBuilder/Base.pm
 line 332.

If I compile manually

cc ... "-L/usr/lib/gcc/x86_64-linux-gnu/8"  -L/usr/lib -lgfortran -lm 
fortran/c gtsl.o fortran/dgtsl.o

I don't get the error. Thus, I believe that the error has to do with
the quotation marks around  "-L/usr/lib/gcc/x86_64-linux-gnu/8". I
tried debugging the Build script  to find where do these quotations
come from, and found they seem to come from ExtUtils::F77:

$ perl -MExtUtils::F77 -E 'say ExtUtils::F77->runtime'
Loaded ExtUtils::F77 version 1.23
"-L/usr/lib/gcc/x86_64-linux-gnu/8"  -L/usr/lib -lgfortran -lm

Is this a bug in ExtUtils::F77? How can I get rid of the quotes "" so
my package can be compiled automatically? I'll aprecciate any advice.

Best regards,
Luis


-- 

  o
W. Luis Mochán,  | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
Apdo. Postal 48-3, 62251 |   (*)/\/  \
Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB




___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


[Pdl-general] ExtUtils::F77 1.20 released to CPAN

2016-05-28 Thread Chris Marshall
This release features fixes for Mac OS X, gnu fortran support, and FreeBSD.
Thanks to contributions by srezic and sisyphus.

Enjoy,
Chris


v1.20 released May 28th 2016
--

* Apply upstream FreeBSD patch thanks to srezic for submitting

* Fix fallback compiler logic to support gcc-5.x and higher

* Limited Improved gfortran linking on OS X Yosemite+ to OS X



--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] ExtUtils::F77 and gfortran

2016-03-08 Thread Luis Mochan
Hi Chris,

> I don't know if you got the message from the CPAN bug report
It seems not.
> but I believe the problem is fixed with the 1.19_1 release of
> ExtUtils::F77.  Please test and confirm and I will push an
> official 1.20 release which should address your difficulty.
I just installed 1.19_1. Now I get
  ...
  Runtime: -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib -lgfortran -lm
  Found compiler=GNU - skipping validation of -L/usr/lib/gcc/x86_64-linux-gnu/5 
-L/usr/lib -lgfortran -lm
  ExtUtils::F77: Compiler: gfortran
  ...
so the validation is being skipped, but I guess that is on
purpose. My package was built with no apparent problem, so I guess
the problem has been solved.
Thanks!
Best regards,
Luis

-- 

  o
W. Luis Mochán,  | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
Apdo. Postal 48-3, 62251 |   (*)/\/  \
Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB



--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] ExtUtils::F77 and gfortran

2016-03-07 Thread Chris Marshall
Hi Luis-

I don't know if you got the message from the CPAN bug report
but I believe the problem is fixed with the 1.19_1 release of
ExtUtils::F77.  Please test and confirm and I will push an
official 1.20 release which should address your difficulty.

--Chris

On Sat, Feb 27, 2016 at 8:02 PM, Luis Mochan  wrote:

>
>
> > If so, please submit a bug report to the CPAN bug for ExtUtils::F77
> > and include the failure that the current extra-but-no-op libraries
> > causes.
>
> Is this a bug I should report?
>
> Meanwhile, is there something which I can do to avoid my problem in
> systems that have 1.19 installed?
>
> Thanks for your time/advice,
> Luis
>
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] ExtUtils::F77 and gfortran

2016-02-27 Thread Luis Mochan
Hi Chris,

> If I recall correctly:  The ExtUtils::F77 is used to check for
> fortran and the libraries needed to compile a Perl XS module.
> As such, the output of the libraries is washed through the
> ExtUtil::MakeMaker libs() routine which will drop libraries
> that do not exist.
> 
> Are you using the libraries for another purpose (i.e. non-perl XS)?

I'm making a package that contains a couple of fortran routines that
are called from corresponding pdl pp_def subroutines in a .pd file. I'm
using Module::Build, Module::Build::Pluggable::PDL and
Module::Build::Pluggable::Fortran in  the process of automatically
building the .xs file and the fortran libraries. Thus, I'm using
Build.PL instead of Makefile.PL to build the package. I'm not
using ExtUtils::MakeMaker explicitly and I'm not sure if it is called
implicitly or if it's functionality is somehow taken up by the
alternative Build modules.

I made a simplified package (attached) that does nothing but print a
line from fortran when called from perl/pdl to illustrate my problem.
If I install ExtUtils::F77 v.1.17 I get the following output:

$ # unpack the package and build it
$ tar xfz Rem-0-TRIAL.tar.gz; cd Rem-0-TRIAL
$ perl Build.PL

ExtUtils::F77: Version 1.17
Loaded ExtUtils::F77 version 1.17
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:
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:
Compiling the test Fortran program...
Executing the test program...
Congratulations you seem to have a working f77!
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Rem' version '0'

$ ./Build

ExtUtils::F77: Version 1.17
Loaded ExtUtils::F77 version 1.17
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:
Compiling the test Fortran program...
Executing the test program...
Congratulations you seem to have a working f77!
gfortran -c -o fortran/subrutina.o -O3 -fPIC fortran/subrutina.f
# process_pd_files

ExtUtils::F77: Version 1.17
Loaded ExtUtils::F77 version 1.17
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:
# provideslib/Rem/RemPd.pd
Building Rem
cc 
-I/home/mochan/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/x86_64-linux/PDL/Core
 -I/home/mochan/perl5/perlbrew/perls/perl-5.22.0/lib/5.22.1/x86_64-linux/CORE 
-DXS_VERSION="0" -DVERSION="0" -fPIC -c -fwrapv -fno-strict-aliasing -pipe 
-fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -o lib/Rem/RemPd.o lib/Rem/RemPd.c
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Rem/RemPd/RemPd.bs')
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 -L/usr/lib -lgfortran -lm fortran/subrutina.o

 $ # Run a simple script to test the package.
 $ perl -Mblib -MRem::RemPd -E 'PDL::subrutina()'
 hello from fortran




When I compile and run the same package using ExtUtils::F77 v.1.19 I
obtain instead (I added '' to emphasize the error messagges):

$ tar xfz Rem-0-TRIAL.tar.gz; cd Rem-0-TRIAL
$ perl Build.PL

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:
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 compil

Re: [Pdl-general] ExtUtils::F77 and gfortran

2016-02-27 Thread Chris Marshall

Hi Luis-

If I recall correctly:  The ExtUtils::F77 is used to check for
fortran and the libraries needed to compile a Perl XS module.
As such, the output of the libraries is washed through the
ExtUtil::MakeMaker libs() routine which will drop libraries
that do not exist.

Are you using the libraries for another purpose (i.e. non-perl XS)?
If so, please submit a bug report to the CPAN bug for ExtUtils::F77
and include the failure that the current extra-but-no-op libraries
causes.

--Chris

On 2/24/2016 21:56, Luis Mochan wrote:

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




--
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
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


--
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
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] ExtUtils::F77 and gfortran

2016-02-24 Thread Luis Mochan
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.0 -0500
+++ F77.pm  2015-12-07 04:59:28.0 -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
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] ExtUtils::F77 and gfortran

2016-02-23 Thread Luis Mochan
(Sorry. I just realized I forgot to reply to the list)


On Tue, Feb 16, 2016 at 03:24:00PM -0600, Luis Mochan wrote:
> Hi Craig,
> 
> On Tue, Feb 16, 2016 at 11:36:27AM -0700, Craig DeForest wrote:
> > Hmmm.   What version of gcc are you using?
> 
>   $ gcc -v
>   Using built-in specs.
>   COLLECT_GCC=gcc
>   COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
>   Target: x86_64-linux-gnu
>   Configured with: ../src/configure -v --with-pkgversion='Debian 5.3.1-8' 
> --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs 
> --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr 
> --program-suffix=-5 --enable-shared --enable-linker-build-id 
> --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
> --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes 
> --with-default-libstdcxx-abi=new --enable-gnu-unique-object 
> --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib 
> --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo 
> --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home 
> --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 
> --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 
> --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
> --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 
> --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic 
> --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu 
> --target=x86_64-linux-gnu
>   Thread model: posix
>   gcc version 5.3.1 20160205 (Debian 5.3.1-8)
> 
> Today I tried ExtUtils::F77 version 1.17 under perl 5.22.1 and it
> seemed to work. So it seems the problem is related to the changes from
> ExtUtils::F77 1.17 to 1.19 and not in the change from perl 5.20.3 to
> 5.22.1.
> 
> Regards,
> Luis
> 
> 
> > 
> > > On Feb 15, 2016, at 5:27 PM, Luis Mochan  wrote:
> > > 
> > > I had a problem today with ExtUtils::F77.
> > > In one machine I have installed perl 5.20.3 and 5.22.1 with perlbrew,
> > > and I installed ExtUtils::F77 version 1.17 with the former and 1.19
> > > with the latter. Consider the following:
> > >  $ perlbrew use perlbrew use perl-5.20.3
> > >  $ perl -MExtUtils::F77 -E ''
> > >  ExtUtils::F77: Version 1.17
> > >  Loaded ExtUtils::F77 version 1.17
> > >  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
> > >  ...
> > >  $ perlbrew use perl-5.22.1
> > >  $ perl -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
> > > 
> > > The problem is that in the second case the Runtime includes the
> > > libraries -lgcc_ext.10.5 -lgcc_s.10.5 which are not in my system! This
> > > makes some of my programs to fail.
> > > I guess the problem is related to the newer version
> > > of ExtUtils::F77 and not to the newer version of perl.
> > > 
> > > Any suggestions?
> > > 
> > > Regards,
> > > Luis
> > > 
> > > 
> > > 
> > > 
> > > -- 
> > > 
> > >  o
> > > W. Luis Mochán,  | tel:(52)(777)329-1734 /<(*)
> > > Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
> > > Apdo. Postal 48-3, 62251 |   (*)/\/  \
> > > Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/
> > > GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB
> > > 
> > > 
> > > 
> > > --
> > > 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
> > > pdl-general@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/pdl-general
> > > 
> > 
> > 
> 
> -- 
> 
>   o
> W. Luis Mochán,  | tel:(52)(777)329-1734 /<(*)
> Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
> Apdo. Postal 48-3, 62251 |   (*)/\/  \
> Cuernavaca,

Re: [Pdl-general] ExtUtils::F77 and gfortran

2016-02-16 Thread Craig DeForest
Hmmm.   What version of gcc are you using?

> On Feb 15, 2016, at 5:27 PM, Luis Mochan  wrote:
> 
> I had a problem today with ExtUtils::F77.
> In one machine I have installed perl 5.20.3 and 5.22.1 with perlbrew,
> and I installed ExtUtils::F77 version 1.17 with the former and 1.19
> with the latter. Consider the following:
>  $ perlbrew use perlbrew use perl-5.20.3
>  $ perl -MExtUtils::F77 -E ''
>  ExtUtils::F77: Version 1.17
>  Loaded ExtUtils::F77 version 1.17
>  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
>  ...
>  $ perlbrew use perl-5.22.1
>  $ perl -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
> 
> The problem is that in the second case the Runtime includes the
> libraries -lgcc_ext.10.5 -lgcc_s.10.5 which are not in my system! This
> makes some of my programs to fail.
> I guess the problem is related to the newer version
> of ExtUtils::F77 and not to the newer version of perl.
> 
> Any suggestions?
> 
> Regards,
> Luis
> 
> 
> 
> 
> -- 
> 
>  o
> W. Luis Mochán,  | tel:(52)(777)329-1734 /<(*)
> Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
> Apdo. Postal 48-3, 62251 |   (*)/\/  \
> Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/
> GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB
> 
> 
> 
> --
> 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
> pdl-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pdl-general
> 


--
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
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


[Pdl-general] ExtUtils::F77 and gfortran

2016-02-15 Thread Luis Mochan
I had a problem today with ExtUtils::F77.
In one machine I have installed perl 5.20.3 and 5.22.1 with perlbrew,
and I installed ExtUtils::F77 version 1.17 with the former and 1.19
with the latter. Consider the following:
  $ perlbrew use perlbrew use perl-5.20.3
  $ perl -MExtUtils::F77 -E ''
  ExtUtils::F77: Version 1.17
  Loaded ExtUtils::F77 version 1.17
  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
  ...
  $ perlbrew use perl-5.22.1
  $ perl -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

The problem is that in the second case the Runtime includes the
libraries -lgcc_ext.10.5 -lgcc_s.10.5 which are not in my system! This
makes some of my programs to fail.
I guess the problem is related to the newer version
of ExtUtils::F77 and not to the newer version of perl.

Any suggestions?

Regards,
Luis




-- 

  o
W. Luis Mochán,  | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
Apdo. Postal 48-3, 62251 |   (*)/\/  \
Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB



--
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
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


[Pdl-general] ExtUtils::F77 1.18 released to CPAN

2015-06-08 Thread Chris Marshall
...and should be appearing at a mirror near you soon.
This release finally rolls out fixes from as far back as
last year.  Please let me know of any issues.

Thanks,
Chris

ExtUtils::F77 Changes list
--

v1.18 released Jul 7th 2015
---
* resolve rt.cpan.org bug #104495: MinGW now needs to link to libquadmath.a
  Thanks for the patch, kmx.

v1.17_01 released Jul 6th 2014
--

* Graham Bell's fix to "Add check for GNU fortran .so files as well as .a."
* Typo fix by dsteinbrunner
* Fix Cygwin table to use Generic GNU settings
--
___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general