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

Zachary Pincus zpincus at stanford.edu
Thu Jun 14 20:42:44 EDT 2007


For what it's worth, a different linker error seems to happen in the  
same place with g77 / gcc3.3:

% python setup.py config_fc --fcompiler=gnu build

/usr/bin/ld: can't locate file for: -lgcc_s
collect2: ld returned 1 exit status
/usr/bin/ld: can't locate file for: -lgcc_s
collect2: ld returned 1 exit status
error: Command "/usr/local/bin/g77 -g -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-darwin7.9.0/3.4.4 -Lbuild/temp.darwin-8.9.0-Power_Macintosh-2.4  
-ldfftpack -lg2c -lcc_dynamic -o build/lib.darwin-8.9.0- 
Power_Macintosh-2.4/scipy/fftpack/_fftpack.so" failed with exit status 1

Also, the "library 'mach' defined more than once" error (or "error"?)  
is still present with g77.

Zach


On Jun 14, 2007, at 5:34 PM, Robert Kern wrote:

> Zachary Pincus wrote:
>> 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).
>
> Gah. Looks like more fallout from the merge. The get_flags_linker_so 
> () methods
> which have all of this information don't seem to be called any more.
>
> -- 
> 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
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user




More information about the SciPy-User mailing list