[Numpy-discussion] Re: Fortran 95 compiler (from gcc 4.1.1) is not recognized by scipy (original) (raw)
Robert Kern robert.kern at gmail.com
Thu Jun 1 09:48:04 EDT 2006
- Previous message (by thread): [Numpy-discussion] Fortran 95 compiler (from gcc 4.1.1) is not recognized by scipy
- Next message (by thread): [Numpy-discussion] Fortran 95 compiler (from gcc 4.1.1) is not recognized by scipy
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nadav Horesh wrote:
I recently upgraded to gcc4.1.1. When I tried to compile scipy from today's svn repository it halts with the following message:
Traceback (most recent call last): File "setup.py", line 50, in ? setuppackage() File "setup.py", line 42, in setuppackage configuration=configuration ) File "/usr/lib/python2.4/site-packages/numpy/distutils/core.py", line 170, in setup return oldsetup(**newattr) File "/usr/lib/python2.4/distutils/core.py", line 149, in setup dist.runcommands() File "/usr/lib/python2.4/distutils/dist.py", line 946, in runcommands self.runcommand(cmd) File "/usr/lib/python2.4/distutils/dist.py", line 966, in runcommand cmdobj.run() File "/usr/lib/python2.4/distutils/command/build.py", line 112, in run self.runcommand(cmdname) File "/usr/lib/python2.4/distutils/cmd.py", line 333, in runcommand self.distribution.runcommand(command) File "/usr/lib/python2.4/distutils/dist.py", line 966, in runcommand cmdobj.run() File "/usr/lib/python2.4/site-packages/numpy/distutils/command/buildext.py", line 109, in run self.buildextensions() File "/usr/lib/python2.4/distutils/command/buildext.py", line 405, in builde xtensions self.buildextension(ext) File "/usr/lib/python2.4/site-packages/numpy/distutils/command/buildext.py", line 301, in buildextension link = self.fcompiler.linksharedobject AttributeError: 'NoneType' object has no attribute 'linksharedobject' ---- The output of gfortran --version: GNU Fortran 95 (GCC) 4.1.1 (Gentoo 4.1.1)
Hmm. The usual suspect (not finding the version) doesn't seem to be the problem here.
from numpy.distutils.ccompiler import simpleversionmatch m = simpleversionmatch(start='GNU Fortran 95') m(None, 'GNU Fortran 95 (GCC) 4.1.1 (Gentoo 4.1.1)') '4.1.1'
I have also the old g77 compiler installed (g77-3.4.6). Is there a way to force numpy/scipy to use it?
Sure.
python setup.py config_fc --fcompiler=gnu build_src build_clib build_ext build
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
- Previous message (by thread): [Numpy-discussion] Fortran 95 compiler (from gcc 4.1.1) is not recognized by scipy
- Next message (by thread): [Numpy-discussion] Fortran 95 compiler (from gcc 4.1.1) is not recognized by scipy
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]