[SciPy-user] scipy 0.6 installation problem on os x 10.5.5

Robert Kern robert.kern@gmail....
Sun Oct 26 14:45:30 CDT 2008


On Sun, Oct 26, 2008 at 11:50, Ritchie <voodoochild2006@gmail.com> wrote:
> I'm trying to install scipy 0.6 on my leopard MBP, after a
> python setup.py build
> as root, I got the following error message :
>  compiler: gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
> -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall
> -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386
> -arch ppc -pipe
> creating build/temp.macosx-10.5-i386-2.5/scipy/optimize/Zeros
> compile options: '-c'
> gcc: scipy/optimize/Zeros/brenth.c
> cc1: error: unrecognized command line option "-Wno-long-double"
> cc1: error: unrecognized command line option "-Wno-long-double"
> lipo: can't open input file: /var/tmp//ccaG7ngI.out (No such file or
> directory)
> cc1: error: unrecognized command line option "-Wno-long-double"
> cc1: error: unrecognized command line option "-Wno-long-double"
> lipo: can't open input file: /var/tmp//ccaG7ngI.out (No such file or
> directory)
> error: Command "gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
> -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall
> -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386
> -arch ppc -pipe -c scipy/optimize/Zeros/brenth.c -o
> build/temp.macosx-10.5-i386-2.5/scipy/optimize/Zeros/brenth.o" failed with
> exit status 1
>
> I googled for a while, could not find any solution. Anybody has any idea?
> I'm using xcode 3.1.1, gcc-4.2.1, gfortran-4.2.3.

That's your problem. You should use the same version of gcc (4.0.1)
that compiled your Python executable. It looks like gcc dropped a flag
in the intervening period, but Python tries to use the same flags it
was built with to build extensions. I haven't had any problem mixing
gcc 4.0.1 with gfortran 4.2.x. At least for building scipy.

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