[SciPy-user] can't build on OS X from SVN

Zachary Pincus zpincus@stanford....
Thu Jun 14 19:23:34 CDT 2007


Hi all,

I tried to build scipy from today's svn (r3105) on OS X (PPC), using  
GCC 4.0.1 and gfortran, (as 'python setup.py config_fc -- 
fcompiler=gnu95 build') and I got the following error:

/usr/bin/ld: flag: -undefined dynamic_lookup can't be used with  
MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1

Which is strange since MACOSX_DEPLOYMENT_TARGET is set to 10.4. I  
nuked the build tree and the current install, made sure that the  
MACOSX_DEPLOYMENT_TARGET value was correct, tried again, and again  
got the same error.

Any thoughts? (The context within which this error was raised is  
below). The only other irregularity during the build was this error  
text that was printed earlier:

library 'mach' defined more than once, overwriting build_info  
{'sources': ['Lib/integrate/mach/d1mach.f', 'Lib/integrate/mach/ 
i1mach.f', 'Lib/integrate/mach/r1mach.f', 'Lib/integrate/mach/ 
xerror.f'], 'config_fc': {'noopt': ('Lib/integrate/setup.pyc', 1)},  
'source_languages': ['f77']} with {'sources': ['Lib/special/mach/ 
d1mach.f', 'Lib/special/mach/i1mach.f', 'Lib/special/mach/r1mach.f',  
'Lib/special/mach/xerror.f'], 'config_fc': {'noopt': ('Lib/special/ 
setup.pyc', 1)}, 'source_languages': ['f77']}.


Zach Pincus

Program in Biomedical Informatics and Department of Biochemistry
Stanford University School of Medicine



/usr/bin/ld: flag: -undefined dynamic_lookup can't be used with  
MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
collect2: ld returned 1 exit status
/usr/bin/ld: flag: -undefined dynamic_lookup can't be used with  
MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
collect2: ld returned 1 exit status
error: Command "/usr/local/bin/gfortran -Wall -undefined  
dynamic_lookup -bundle build/temp.darwin-8.9.0-Power_Macintosh-2.4/ 
build/src.darwin-8.9.0-Power_Macintosh-2.4/Lib/fftpack/ 
_fftpackmodule.o build/temp.darwin-8.9.0-Power_Macintosh-2.4/Lib/ 
fftpack/src/zfft.o build/temp.darwin-8.9.0-Power_Macintosh-2.4/Lib/ 
fftpack/src/drfft.o build/temp.darwin-8.9.0-Power_Macintosh-2.4/Lib/ 
fftpack/src/zrfft.o build/temp.darwin-8.9.0-Power_Macintosh-2.4/Lib/ 
fftpack/src/zfftnd.o build/temp.darwin-8.9.0-Power_Macintosh-2.4/ 
build/src.darwin-8.9.0-Power_Macintosh-2.4/fortranobject.o -L/usr/ 
local/lib/gcc/powerpc-apple-darwin8.9.0/4.3.0 -Lbuild/ 
temp.darwin-8.9.0-Power_Macintosh-2.4 -ldfftpack -lgfortran -o build/ 
lib.darwin-8.9.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so"  
failed with exit status 1



More information about the SciPy-user mailing list