numpy 1.1.0 build can not find lahey (lf95) fortran compiler (short version)
Hi, When trying to build numpy 1.1.0 with python 2.5.2 on an RHEL3 32-bit system, using command: python setup.py config_fc --fcompiler=lahey install &> install_LEW.log I am seeing these warnings: warning: build_ext: f77_compiler=lahey is not available. and warning: build_ext: extension 'numpy.linalg.lapack_lite' has Fortran \ libraries but no Fortran linker found, using default linker Then lapack_lite.so is linked incorrectly with gcc instead of lf95. File distutils/fcompiler/lahey.py is being read but the information inside is not being used. --Lew ---------------------------------------------------------------------- Lewis E. Randerson DOE Princeton University Plasma Physics Laboratory, Princeton University, James Forrestal Campus 100 Stellarator Road, Princeton, NJ 08543 Work: 609/243-3134, Fax: 609/243-3086, PPPL Web: http://www.pppl.gov
Lewis E. Randerson wrote:
I am seeing these warnings: warning: build_ext: f77_compiler=lahey is not available.
Hi Lewis, What happens when you execute directly the file numpy/distutils/fcompiler/lahey.py ? cheers, David
Hi, When executing numpy/distutils/fcompiler/lahey.py, I get "none" Here is what I get from the following command. Note the Lahey entry under: Compilers available for this platform, but not found: ============================ available compilers ========== python setup.py config_fc --help-fcompiler Running from numpy source directory. GnuFCompiler instance properties: archiver = ['/usr/bin/g77', '-cr'] compile_switch = '-c' compiler_f77 = ['/usr/bin/g77', '-g', '-Wall', '-fno-second- underscore', '-fPIC', '-O2', '-funroll-loops', '-mmmx', '- m3dnow', '-msse2', '-msse'] compiler_f90 = None compiler_fix = None libraries = ['g2c'] library_dirs = [] linker_exe = ['/usr/bin/g77', '-g', '-Wall', '-g', '-Wall'] linker_so = ['/usr/bin/g77', '-g', '-Wall', '-g', '-Wall', '- shared'] object_switch = '-o ' ranlib = ['/usr/bin/g77'] version = LooseVersion ('3.2.3') version_cmd = ['/usr/bin/g77', '--version'] Fortran compilers found: --fcompiler=gnu GNU Fortran 77 compiler (3.2.3) Compilers available for this platform, but not found: --fcompiler=absoft Absoft Corp Fortran Compiler --fcompiler=compaq Compaq Fortran Compiler --fcompiler=g95 G95 Fortran Compiler --fcompiler=gnu95 GNU Fortran 95 compiler --fcompiler=intel Intel Fortran Compiler for 32-bit apps --fcompiler=intele Intel Fortran Compiler for Itanium apps --fcompiler=intelem Intel Fortran Compiler for EM64T-based apps --fcompiler=lahey Lahey/Fujitsu Fortran 95 Compiler --fcompiler=nag NAGWare Fortran 95 Compiler --fcompiler=pg Portland Group Fortran Compiler --fcompiler=vast Pacific-Sierra Research Fortran 90 Compiler Compilers not available on this platform: --fcompiler=hpux HP Fortran 90 Compiler --fcompiler=ibm IBM XL Fortran Compiler --fcompiler=intelev Intel Visual Fortran Compiler for Itanium apps --fcompiler=intelv Intel Visual Fortran Compiler for 32-bit apps --fcompiler=mips MIPSpro Fortran Compiler --fcompiler=none Fake Fortran compiler --fcompiler=sun Sun or Forte Fortran 95 Compiler For compiler details, run 'config_fc --verbose' setup command. --Lew -----Original Message----- From: numpy-discussion-bounces@scipy.org [mailto:numpy-discussion-bounces@scipy.org] On Behalf Of David Cournapeau Sent: Monday, June 02, 2008 8:23 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] numpy 1.1.0 build can not find lahey (lf95) fortran compiler (short version) Lewis E. Randerson wrote:
I am seeing these warnings: warning: build_ext: f77_compiler=lahey is not available.
Hi Lewis, What happens when you execute directly the file numpy/distutils/fcompiler/lahey.py ? cheers, David _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Here's fuller output from the lahey.py script. python /usr/pppl/python/2.5.2/lib/python2.5/site-packages/numpy/distutils/fcompiler/ lahey.py customize LaheyFCompiler find_executable('lf95') Found executable /usr/pppl/lff95/6.20c/bin/lf95 exec_command(['/usr/pppl/lff95/6.20c/bin/lf95', '--version'],) Retaining cwd: /local/randerso/2008-06-01/numpy-1.1.0/numpy/distutils/fcompiler _preserve_environment([]) _update_environment(...) _exec_command_posix(...) Running os.system('( /usr/pppl/lff95/6.20c/bin/lf95 --version ; echo $? > /tmp/tmp5WTGB6/Miygel ) > /tmp/tmp5WTGB6/yKqO37 2>&1') _update_environment(...) None removing /tmp/tmp5WTGB6 Hmmm. Maybe it doesn't like the version?. How can I find that out? --Lew -----Original Message----- From: Lewis E. Randerson Sent: Monday, June 02, 2008 9:39 AM To: 'Discussion of Numerical Python' Subject: RE: [Numpy-discussion] numpy 1.1.0 build can not find lahey (lf95) fortran compiler (short version) Hi, When executing numpy/distutils/fcompiler/lahey.py, I get "none" Here is what I get from the following command. Note the Lahey entry under: Compilers available for this platform, but not found: ============================ available compilers ========== python setup.py config_fc --help-fcompiler Running from numpy source directory. GnuFCompiler instance properties: archiver = ['/usr/bin/g77', '-cr'] compile_switch = '-c' compiler_f77 = ['/usr/bin/g77', '-g', '-Wall', '-fno-second- underscore', '-fPIC', '-O2', '-funroll-loops', '-mmmx', '- m3dnow', '-msse2', '-msse'] compiler_f90 = None compiler_fix = None libraries = ['g2c'] library_dirs = [] linker_exe = ['/usr/bin/g77', '-g', '-Wall', '-g', '-Wall'] linker_so = ['/usr/bin/g77', '-g', '-Wall', '-g', '-Wall', '- shared'] object_switch = '-o ' ranlib = ['/usr/bin/g77'] version = LooseVersion ('3.2.3') version_cmd = ['/usr/bin/g77', '--version'] Fortran compilers found: --fcompiler=gnu GNU Fortran 77 compiler (3.2.3) Compilers available for this platform, but not found: --fcompiler=absoft Absoft Corp Fortran Compiler --fcompiler=compaq Compaq Fortran Compiler --fcompiler=g95 G95 Fortran Compiler --fcompiler=gnu95 GNU Fortran 95 compiler --fcompiler=intel Intel Fortran Compiler for 32-bit apps --fcompiler=intele Intel Fortran Compiler for Itanium apps --fcompiler=intelem Intel Fortran Compiler for EM64T-based apps --fcompiler=lahey Lahey/Fujitsu Fortran 95 Compiler --fcompiler=nag NAGWare Fortran 95 Compiler --fcompiler=pg Portland Group Fortran Compiler --fcompiler=vast Pacific-Sierra Research Fortran 90 Compiler Compilers not available on this platform: --fcompiler=hpux HP Fortran 90 Compiler --fcompiler=ibm IBM XL Fortran Compiler --fcompiler=intelev Intel Visual Fortran Compiler for Itanium apps --fcompiler=intelv Intel Visual Fortran Compiler for 32-bit apps --fcompiler=mips MIPSpro Fortran Compiler --fcompiler=none Fake Fortran compiler --fcompiler=sun Sun or Forte Fortran 95 Compiler For compiler details, run 'config_fc --verbose' setup command. --Lew -----Original Message----- From: numpy-discussion-bounces@scipy.org [mailto:numpy-discussion-bounces@scipy.org] On Behalf Of David Cournapeau Sent: Monday, June 02, 2008 8:23 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] numpy 1.1.0 build can not find lahey (lf95) fortran compiler (short version) Lewis E. Randerson wrote:
I am seeing these warnings: warning: build_ext: f77_compiler=lahey is not available.
Hi Lewis, What happens when you execute directly the file numpy/distutils/fcompiler/lahey.py ? cheers, David _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Found the problem. The pattern in lahey.py differs from the version of Lahey Fujitsu compiler I have. Once corrected, the compiler is now found. P.S. One of the libraries defined in the file is also incorrect. Once I have gotten all the way through the SciPy build and the users have said all works, I'll send in the version of the successful lahey.py. Thanks for the help. Also thanks to the original contributor of lahey.py. It saved me a lot of time! --Lew -----Original Message----- From: numpy-discussion-bounces@scipy.org [mailto:numpy-discussion-bounces@scipy.org] On Behalf Of David Cournapeau Sent: Monday, June 02, 2008 8:23 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] numpy 1.1.0 build can not find lahey (lf95) fortran compiler (short version) Lewis E. Randerson wrote:
I am seeing these warnings: warning: build_ext: f77_compiler=lahey is not available.
Hi Lewis, What happens when you execute directly the file numpy/distutils/fcompiler/lahey.py ? cheers, David _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
On Mon, 2008-06-02 at 11:03 -0400, Lewis E. Randerson wrote:
Found the problem.
The pattern in lahey.py differs from the version of Lahey Fujitsu compiler I have. Once corrected, the compiler is now found.
Ok, thanks for going through this. Can I ask you one more thing ? Can you give us the output of the Lahey fortran compiler output ? Such as we can add one test to the version parsing and avoid getting bitten by this next time cheers, David
participants (3)
-
David Cournapeau
-
David Cournapeau
-
Lewis E. Randerson