[SciPy-user] building scipy from source on Mac Os X 10.4 ppc

Robert Kern robert.kern@gmail....
Thu Aug 16 13:15:00 CDT 2007


Samuel M. Smith wrote:
> When building from source on mac os x 10.4 ppc
> either from the tarball 0.5.2 or svn, I get the following error,
> 
> after installing gfortran and fftw as per the scipy web instructions
> 
> svn co http://svn.scipy.org/svn/scipy/trunk scipysvn
> cd scipysvn
> export MACOSX_DEPLOYMENT_TARGET=10.4
> sudo python setup.py build_src build_clib --fcompiler=gnu95 build_ext
> --fcompiler=gnu95 build
> 
> snip.....
> 
> /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.macosx-10.4-ppc-2.5/build/src.macosx-10.4-ppc-2.5/Lib/fftpack/_fftpackmodule.o
> build/temp.macosx-10.4-ppc-2.5/Lib/fftpack/src/zfft.o
> build/temp.macosx-10.4-ppc-2.5/Lib/fftpack/src/drfft.o
> build/temp.macosx-10.4-ppc-2.5/Lib/fftpack/src/zrfft.o
> build/temp.macosx-10.4-ppc-2.5/Lib/fftpack/src/zfftnd.o
> build/temp.macosx-10.4-ppc-2.5/build/src.macosx-10.4-ppc-2.5/fortranobject.o
> -L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin8.9.0/4.3.0
> -Lbuild/temp.macosx-10.4-ppc-2.5 -ldfftpack -lfftw3 -lgfortran -o
> build/lib.macosx-10.4-ppc-2.5/scipy/fftpack/_fftpack.so" failed with
> exit status 1
> 
> Looking in the archives on scipy.org I found a couple of other people
> who had this problem in June but there was
> not mentioned a fix. 
> 
> anyone have a fix for this?

I'd *highly* recommend not using sudo for building. It may be changing your
environment, and it just gets in the way for no benefit; all of your build files
won't be writable by the regular user.

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