[SciPy-user] Scipy on MacOS X, troubles

Erin Sheldon erin.sheldon at gmail.com
Sun Nov 5 20:13:59 CST 2006


I'm not sure, but I find it odd that it is using /usr/bin/gcc after
compiling gcc4.    But because it worked for me I never bothered
to look at the compilation. I'm not sure how this
differs from my install.

Erin

On 11/5/06, Marco <gaedol at gmail.com> wrote:
> On 11/3/06, Erin Sheldon <erin.sheldon at gmail.com> wrote:
>
> > I also had success with MacPorts (formerly darwinports).
> > It seems to be a very stable solution.  For me it required
> > compiling gcc 4.1, however, so it may require patience.
>
> Hi,
> i have tried to follow the way of macports.
>
> After a few hours of compiling (gcc takes some), i installed py-numpy
> and then py-scipy.
> This is the result of the latter (sudo port install py-scipy):
>
> --->  Building py-scipy with target build
> Error: Target com.apple.build returned: shell command "cd
> "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-scipy/work/scipy-0.5.1"
> && CCFLAGS="-I/opt/local/include -L/opt/local/lib"
> /opt/local/bin/python2.4 setup.py build" returned error 1
> Command output: Lib/cluster/src/vq_wrap.cpp:315: warning: 'int
> SWIG_ConvertPtr(PyObject*, void**, swig_type_info*, int)' defined but
> not used
> Lib/cluster/src/vq_wrap.cpp:516: warning: 'PyObject*
> l_output_helper(PyObject*, PyObject*)' defined but not used
> /usr/bin/g++-4.0 -bundle -undefined dynamic_lookup
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/cluster/src/vq_wrap.o
> -Lbuild/temp.darwin-8.8.0-Power_Macintosh-2.4 -o
> build/lib.darwin-8.8.0-Power_Macintosh-2.4/scipy/cluster/_vq.so
> /usr/bin/ld: warning -prebind has no effect with -bundle
> building 'scipy.fftpack._fftpack' extension
> compiling C sources
> C compiler: /usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double
> -no-cpp-precomp -mno-fused-madd -fno-common -fno-common -dynamic
> -DNDEBUG -g -O3 -Wall
>
> creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build
> creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4
> creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib
> creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack
> creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src
> compile options: '-DSCIPY_FFTW3_H -I/opt/local/include
> -Ibuild/src.darwin-8.8.0-Power_Macintosh-2.4
> -I/opt/local/lib/python2.4/site-packages/numpy/core/include
> -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
> -I/opt/local/include/python2.4 -c'
> gcc-4.0: build/src.darwin-8.8.0-Power_Macintosh-2.4/fortranobject.c
> gcc-4.0: Lib/fftpack/src/zfft.c
> Lib/fftpack/src/zfft.c: In function 'zfft':
> Lib/fftpack/src/zfft.c:89: warning: unused variable 'ptrm'
> gcc-4.0: Lib/fftpack/src/drfft.c
> gcc-4.0: build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/_fftpackmodule.c
> gcc-4.0: Lib/fftpack/src/zfftnd.c
> gcc-4.0: Lib/fftpack/src/zrfft.c
> /usr/bin/g77 -g -Wall -undefined dynamic_lookup -bundle
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/_fftpackmodule.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfft.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/drfft.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/fortranobject.o
> -L/opt/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4
> -Lbuild/temp.darwin-8.8.0-Power_Macintosh-2.4 -ldfftpack -lfftw3 -lg2c
> -lcc_dynamic -o
> build/lib.darwin-8.8.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so
> /usr/bin/ld: warning -prebind has no effect with -bundle
> /usr/bin/ld: can't locate file for: -lcc_dynamic
> collect2: ld returned 1 exit status
> /usr/bin/ld: warning -prebind has no effect with -bundle
> /usr/bin/ld: can't locate file for: -lcc_dynamic
> collect2: ld returned 1 exit status
> error: Command "/usr/bin/g77 -g -Wall -undefined dynamic_lookup
> -bundle build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/_fftpackmodule.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfft.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/drfft.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o
> build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/fortranobject.o
> -L/opt/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4
> -Lbuild/temp.darwin-8.8.0-Power_Macintosh-2.4 -ldfftpack -lfftw3 -lg2c
> -lcc_dynamic -o
> build/lib.darwin-8.8.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so"
> failed with exit status 1
>
> Error: Status 1 encountered during processing.
>
>
> Dunno if that's a problem of macports (formerly darwinports), or
> scipy, but that's it.
> I think the problem is somwhere in fftw, but not really sure...
>
> Any ideas?
>
> Thanks,
>
> marco
> _______________________________________________
> 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