[SciPy-user] ld unknown flag macosx_version_min

Dan Schult dschult@colgate....
Sat Mar 17 12:00:44 CDT 2007


I've got a Mac OSx 10.4.8 machine and am compiling
scipy according to the instructions on the webpage.  I've
got gcc 4.0.0 gfortran 4.3.0 fftw3.0 and svn versions of numpy
and scipy.   My python is version 2.5.
Building numpy goes smoothly, but when I try scipy I have an ld error.

It seems to be using a linker option I am not familiar with and I can't
find it in the package anywhere.  Could it be coming from the
python 2.5 binary I downloaded?  Anyway, how do I turn it off or get
an ld that accepts this option?
The option is  macosx_version_min
Thanks for your help!
Dan Schult

python setup.py build_src build_clib --fcompiler=gnu95 build_ext -- 
fcompiler=gnu95 build
...
Lots of stuff as usual, ending with
...
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
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 -O3 -Wall

compile options: '-DSCIPY_FFTW3_H -I/usr/local/include -Ibuild/ 
src.macosx-10.3-ppc-2.5 -I/Library/Frameworks/Python.framework/ 
Versions/2.5/lib/python2.5/site-packages/numpy/core/include -I/ 
Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c'
/usr/local/bin/gfortran -Wall -undefined dynamic_lookup -bundle build/ 
temp.macosx-10.3-ppc-2.5/build/src.macosx-10.3-ppc-2.5/Lib/fftpack/ 
_fftpackmodule.o build/temp.macosx-10.3-ppc-2.5/Lib/fftpack/src/ 
zfft.o build/temp.macosx-10.3-ppc-2.5/Lib/fftpack/src/drfft.o build/ 
temp.macosx-10.3-ppc-2.5/Lib/fftpack/src/zrfft.o build/ 
temp.macosx-10.3-ppc-2.5/Lib/fftpack/src/zfftnd.o build/ 
temp.macosx-10.3-ppc-2.5/build/src.macosx-10.3-ppc-2.5/ 
fortranobject.o -L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple- 
darwin8.8.0/4.3.0 -Lbuild/temp.macosx-10.3-ppc-2.5 -ldfftpack -lfftw3  
-lgfortran -o build/lib.macosx-10.3-ppc-2.5/scipy/fftpack/_fftpack.so
/usr/bin/ld: unknown flag: -macosx_version_min
collect2: ld returned 1 exit status
/usr/bin/ld: unknown flag: -macosx_version_min
collect2: ld returned 1 exit status
error: Command "/usr/local/bin/gfortran -Wall -undefined  
dynamic_lookup -bundle build/temp.macosx-10.3-ppc-2.5/build/ 
src.macosx-10.3-ppc-2.5/Lib/fftpack/_fftpackmodule.o build/ 
temp.macosx-10.3-ppc-2.5/Lib/fftpack/src/zfft.o build/ 
temp.macosx-10.3-ppc-2.5/Lib/fftpack/src/drfft.o build/ 
temp.macosx-10.3-ppc-2.5/Lib/fftpack/src/zrfft.o build/ 
temp.macosx-10.3-ppc-2.5/Lib/fftpack/src/zfftnd.o build/ 
temp.macosx-10.3-ppc-2.5/build/src.macosx-10.3-ppc-2.5/ 
fortranobject.o -L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple- 
darwin8.8.0/4.3.0 -Lbuild/temp.macosx-10.3-ppc-2.5 -ldfftpack -lfftw3  
-lgfortran -o build/lib.macosx-10.3-ppc-2.5/scipy/fftpack/ 
_fftpack.so" failed with exit status 1
  
  


More information about the SciPy-user mailing list