[SciPy-user] Plea: Installing SciPy on Mac 10.4.9: _fftpack.so problems?

Robert Kern robert.kern@gmail....
Wed Apr 11 21:45:26 CDT 2007


Ariel Rokem wrote:

> Along the way, several kinds of error messages appeared:
> 
> This:
> 
> non-existing path in 'Lib/maxentropy': 'doc'

Harmless warning. Ignore.

> and this:
> 
> Couldn't match compiler version for 'GNU Fortran (GCC) 4.3.0 20070316  
> (experimen
> tal)\nCopyright (C) 2007 Free Software Foundation, Inc.\n\nGNU  
> Fortran comes wit
> h NO WARRANTY, to the extent permitted by law.\nYou may redistribute  
> copies of G
> NU Fortran\nunder the terms of the GNU General Public License.\nFor  
> more informa
> tion about these matters, see the file named COPYING\n'
> customize Gnu95FCompiler using build_clib
> building 'superlu_src' library
> compiling C sources
> C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
> MacOSX10.4u.sdk -
> fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - 
> fno-common
> -dynamic -DNDEBUG -g -O3
> 
> This looks like it may have something to do with the compiler  
> versions and yet, it goes on compiling,

This was fixed in numpy r3598, so it should be in numpy 1.0.2. Please update
your numpy installation.

> More error messages appear - things that look like this:
> 
> Lib/linsolve/SuperLU/SRC/scomplex.c: In function 'c_div':
> Lib/linsolve/SuperLU/SRC/scomplex.c:30: warning: incompatible  
> implicit declaration of built-in function 'exit'
> 
> and things that look like this:
> 
> fortran:f77: Lib/special/cdflib/dzror.f
> Lib/special/cdflib/dzror.f:92.72:
> 
>        ASSIGN 10 TO i99999
>                                                                          
> 1
> Warning: Obsolete: ASSIGN statement at (1)
> Lib/special/cdflib/dzror.f:100.72:

These are warnings, not errors.

> Finally, this is the last things that appear on the screen:
> 
> 
> creating build/temp.macosx-10.3-fat-2.4/build
> creating build/temp.macosx-10.3-fat-2.4/build/src.macosx-10.3-fat-2.4
> creating build/temp.macosx-10.3-fat-2.4/build/src.macosx-10.3-fat-2.4/ 
> Lib
> creating build/temp.macosx-10.3-fat-2.4/build/src.macosx-10.3-fat-2.4/ 
> Lib/fftp
> creating build/temp.macosx-10.3-fat-2.4/Lib/fftpack/src
> compile options: '-DSCIPY_FFTW3_H -I/usr/local/include -Ibuild/ 
> src.macosx-10.3
> ameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/ 
> numpy/core/
> meworks/Python.framework/Versions/2.4/include/python2.4 -c'
> gcc: build/src.macosx-10.3-fat-2.4/fortranobject.c
> gcc: Lib/fftpack/src/zrfft.c
> gcc: Lib/fftpack/src/drfft.c
> gcc: build/src.macosx-10.3-fat-2.4/Lib/fftpack/_fftpackmodule.c
> gcc: Lib/fftpack/src/zfft.c
> gcc: Lib/fftpack/src/zfftnd.c
> Traceback (most recent call last):
>    File "setup.py", line 55, in ?
>      setup_package()
>    File "setup.py", line 47, in setup_package
>      configuration=configuration )
>    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-p
> s/core.py", line 174, in setup
>      return old_setup(**new_attr)
>    File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ 
> python2.4/distu
> 9, in setup
>      dist.run_commands()
>    File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ 
> python2.4/distu
> 6, in run_commands
>      self.run_command(cmd)
>    File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ 
> python2.4/distu
> 6, in run_command
>      cmd_obj.run()
>    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-p
> s/command/build_ext.py", line 121, in run
>      self.build_extensions()
>    File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ 
> python2.4/distu
> .py", line 405, in build_extensions
>      self.build_extension(ext)
>    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-p
> s/command/build_ext.py", line 312, in build_extension
>      link = self.fcompiler.link_shared_object
> AttributeError: 'NoneType' object has no attribute 'link_shared_object'
> 
> 
> 
> Looks pretty bad, no?
> 
> I ran the installation command too, just to be sure. Unsurprisingly,  
> it didn't work, giving this message in the end:
> 
> 
> compile options: '-DSCIPY_FFTW3_H -I/usr/local/include -Ibuild/ 
> src.macosx-10.3-fat-2.4 -I/Library/Frameworks/Python.framewo
> rk/Versions/2.4/lib/python2.4/site-packages/numpy/core/include -I/ 
> Library/Frameworks/Python.framework/Versions/2.4/include/
> python2.4 -c'
> /usr/local/bin/g77 -g -Wall -undefined dynamic_lookup -bundle build/ 
> temp.macosx-10.3-fat-2.4/build/src.macosx-10.3-fat-2.4/
> Lib/fftpack/_fftpackmodule.o build/temp.macosx-10.3-fat-2.4/Lib/ 
> fftpack/src/zfft.o build/temp.macosx-10.3-fat-2.4/Lib/fftpa
> ck/src/drfft.o build/temp.macosx-10.3-fat-2.4/Lib/fftpack/src/zrfft.o  
> build/temp.macosx-10.3-fat-2.4/Lib/fftpack/src/zfftnd
> .o build/temp.macosx-10.3-fat-2.4/build/src.macosx-10.3-fat-2.4/ 
> fortranobject.o -L/usr/local/lib -L/usr/local/lib/gcc/power
> pc-apple-darwin7.9.0/3.4.4 -Lbuild/temp.macosx-10.3-fat-2.4 - 
> ldfftpack -lfftw3 -lg2c -lcc_dynamic -o build/lib.macosx-10.3-
> fat-2.4/scipy/fftpack/_fftpack.so
> /usr/bin/ld: can't locate file for: -lcc_dynamic
> collect2: ld returned 1 exit status
> /usr/bin/ld: can't locate file for: -lcc_dynamic
> collect2: ld returned 1 exit status
> error: Command "/usr/local/bin/g77 -g -Wall -undefined dynamic_lookup  
> -bundle build/temp.macosx-10.3-fat-2.4/build/src.maco
> sx-10.3-fat-2.4/Lib/fftpack/_fftpackmodule.o build/temp.macosx-10.3- 
> fat-2.4/Lib/fftpack/src/zfft.o build/temp.macosx-10.3-f
> at-2.4/Lib/fftpack/src/drfft.o build/temp.macosx-10.3-fat-2.4/Lib/ 
> fftpack/src/zrfft.o build/temp.macosx-10.3-fat-2.4/Lib/ff
> tpack/src/zfftnd.o build/temp.macosx-10.3-fat-2.4/build/ 
> src.macosx-10.3-fat-2.4/fortranobject.o -L/usr/local/lib -L/usr/loc
> al/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -Lbuild/temp.macosx-10.3- 
> fat-2.4 -ldfftpack -lfftw3 -lg2c -lcc_dynamic -o build/
> lib.macosx-10.3-fat-2.4/scipy/fftpack/_fftpack.so" failed with exit  
> status 1
> 
> 
> I hope this gives enough information this time (in fact, I hope  
> that's not too much this time). Does anyone have any ideas?

This is caused by the build process picking up g77 (which won't work with gcc 4)
since it couldn't verify your gfortran.

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


More information about the SciPy-user mailing list