[SciPy-user] Scipy on Python 2.5 / OS X 10.4.8

Nick Fotopoulos nvf@uwm....
Mon Feb 19 17:52:43 CST 2007


On 2/19/07, scipy-user-request@scipy.org <scipy-user-request@scipy.org> wrote:

> ------------------------------
>
> Message: 3
> Date: Sun, 18 Feb 2007 17:09:15 -0600
> From: Robert Kern <robert.kern@gmail.com>
> Subject: Re: [SciPy-user] Scipy on Python 2.5 / OS X 10.4.8
> To: SciPy Users List <scipy-user@scipy.org>
> Message-ID: <45D8DC9B.9070005@gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Niklas Saers wrote:
> > Hi guys,
> > has anyone successfully compiled Scipy for Python 2.5 under Mac OS X
> > 10.4.8? I notice that the binaries on the webpage only support up to
> > Python 2.4 so I would like to build them. However, running "python
> > setup.py build" I get:
> >
> > g95 -L/sw/lib build/temp.macosx-10.3-fat-2.5/build/src.macosx-10.3-
> > fat-2.5/Lib/fftpack/_fftpackmodule.o build/temp.macosx-10.3-fat-2.5/
> > Lib/fftpack/src/zfft.o build/temp.macosx-10.3-fat-2.5/Lib/fftpack/src/
> > drfft.o build/temp.macosx-10.3-fat-2.5/Lib/fftpack/src/zrfft.o build/
> > temp.macosx-10.3-fat-2.5/Lib/fftpack/src/zfftnd.o build/
> > temp.macosx-10.3-fat-2.5/build/src.macosx-10.3-fat-2.5/
> > fortranobject.o -Lbuild/temp.macosx-10.3-fat-2.5 -ldfftpack -o build/
> > lib.macosx-10.3-fat-2.5/scipy/fftpack/_fftpack.so
> > /sw/lib/odcctools590/bin/ld: Undefined symbols:
>
> It looks like you have the LDFLAGS environment variable defined. That
> *overrides* all of the link flags, including the ones that distutils provides to
> link against the Python libraries. Don't use LDFLAGS.

Robert,

At least for me, this is not the case.  LDFLAGS is not set, but I get
the same "ld: Undefined symbols" error, with both MacPython 2.4 and
MacPython 2.5.  The failing command is different than Nik's, though.
Here is my failing command with MacPython 2.4:

error: Command "/usr/local/bin/gfortran -Wall -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/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/fftpack/src/zfftnd.o
build/temp.macosx-10.3-fat-2.4/build/src.macosx-10.3-fat-2.4/fortranobject.o
-L/opt/lscsoft/non-lsc/lib
-L/usr/local/lib/gcc/i386-apple-darwin8.8.1/4.3.0
-Lbuild/temp.macosx-10.3-fat-2.4 -ldfftpack -lfftw3 -lgfortran -o
build/lib.macosx-10.3-fat-2.4/scipy/fftpack/_fftpack.so" failed with
exit status 1

Numpy and scipy are fresh from SVN.  gfortran is from
hpc.sourceforge.net, OS is OSX 10.4, and architecture is Intel  Any
other ideas?  Is there other useful information I could provide?  My
site.cfg and highlights of my python setup.py config are below.

Many thanks,
Nick

=====================
[DEFAULT]
search_static_first=true

[fftw3]
library_dirs = /opt/lscsoft/non-lsc/lib
fftw3_libs = fftw3
include_dirs = /opt/lscsoft/non-lsc/include
=====================

fftw3_info:
  FOUND:
    libraries = ['fftw3']
    library_dirs = ['/opt/lscsoft/non-lsc/lib']
    define_macros = [('SCIPY_FFTW3_H', None)]
    include_dirs = ['/opt/lscsoft/non-lsc/include']

blas_opt_info:
  FOUND:
    extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
    define_macros = [('NO_ATLAS_INFO', 3)]
    extra_compile_args = ['-faltivec',
'-I/System/Library/Frameworks/vecLib.framework/Headers']

lapack_opt_info:
  FOUND:
    extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
    define_macros = [('NO_ATLAS_INFO', 3)]
    extra_compile_args = ['-faltivec']

mkl_info, djbfft_info, and umfpack_info are all NOT AVAILABLE, which
seems fine by me.


More information about the SciPy-user mailing list