[SciPy-dev] Error building from svn on Intel Macs.

Viral Shah vshah at interactivesupercomputing.com
Fri May 30 16:53:46 EDT 2008


I am using an Intel Mac, and trying to build scipy following the  
instructions at: http://www.scipy.org/Installing_SciPy/Mac_OS_X

I was able to successfully build numpy (from svn) without any extra  
configuration. For scipy, even though I have installed the gfortran  
compiler, setup doesn't seem to like the fact that I have 4.2.3. I am  
using gcc 4.0.1 that is supplied by Apple. I get the following:

customize G95FCompiler
customize GnuFCompiler
customize Gnu95FCompiler
Couldn't match compiler version for 'GNU Fortran (GCC)  
4.2.3\nCopyright (C) 2007 Free Software Foundation, Inc.\n\nGNU  
Fortran comes with NO WARRANTY, to the extent permitted by law.\nYou  
may redistribute copies of GNU Fortran\nunder the terms of the GNU  
General Public License.\nFor more information about these matters, see  
the file named COPYING\n'

After searching around on scipy-dev, I resorted to doing this:

$ python setup.py config_fc --fcompiler=gnu95 build

That allowed me to get further, but left me with the following error  
that I don't understand. I can help update the instructions page with  
info about compilers, if I can get this process working. Thanks in  
advance.

<snip>
building 'scipy.fftpack._fftpack' extension
compiling C sources
C compiler: gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp - 
mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -DMACOSX -I/ 
usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe

compile options: '-Ibuild/src.macosx-10.5-i386-2.5 -I/System/Library/ 
Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/ 
include -I/System/Library/Frameworks/Python.framework/Versions/2.5/ 
include/python2.5 -c'
Traceback (most recent call last):
   File "setup.py", line 92, in <module>
     setup_package()
   File "setup.py", line 84, in setup_package
     configuration=configuration )
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/core.py", line 174, in setup
     return old_setup(**new_attr)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/core.py", line 151, in setup
     dist.run_commands()
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/dist.py", line 974, in run_commands
     self.run_command(cmd)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/dist.py", line 994, in run_command
     cmd_obj.run()
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/command/build.py", line 112, in run
     self.run_command(cmd_name)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/cmd.py", line 333, in run_command
     self.distribution.run_command(command)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/dist.py", line 994, in run_command
     cmd_obj.run()
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/command/build_ext.py", line 121, in  
run
     self.build_extensions()
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/command/build_ext.py", line 416, in build_extensions
     self.build_extension(ext)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/ 
Extras/lib/python/numpy/distutils/command/build_ext.py", line 312, in  
build_extension
     link = self.fcompiler.link_shared_object
AttributeError: 'NoneType' object has no attribute 'link_shared_object'



-viral






More information about the SciPy-Dev mailing list