[SciPy-user] Build error on PPC Mac OS X 10.4

Adam Mercer ramercer@gmail....
Wed Apr 15 00:03:45 CDT 2009


Hi

I maintain scipy for MacPorts and a user has reported a build problem
with PowerPC Mac OS X 10.4 and scipy-0.7.0 (against numpy-1.3.0). The
build is failing with the following error:

 building 'dfftpack' library
 compiling Fortran sources
 Fortran f77 compiler: /opt/local/bin/gfortran-mp-4.3 -Wall
-ffixed-form -fno-second-underscore -arch ppc -fPIC -O3 -funroll-loops
 Fortran f90 compiler: /opt/local/bin/gfortran-mp-4.3 -Wall
-fno-second-underscore -arch ppc -fPIC -O3 -funroll-loops
 Fortran fix compiler: /opt/local/bin/gfortran-mp-4.3 -Wall
-ffixed-form-fno-second-underscore -Wall -fno-second-underscore -arch
ppc -fPIC -O3 -funroll-loops
 creating build/temp.macosx-10.4-ppc-2.5
 creating build/temp.macosx-10.4-ppc-2.5/scipy
 creating build/temp.macosx-10.4-ppc-2.5/scipy/fftpack
 creating build/temp.macosx-10.4-ppc-2.5/scipy/fftpack/src
 creating build/temp.macosx-10.4-ppc-2.5/scipy/fftpack/src/dfftpack
 compile options:
'-I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
-c'
 gfortran-mp-4.3:f77: scipy/fftpack/src/dfftpack/dcosqb.f
 f951: error: unrecognized command line option "-arch"
 f951: error: unrecognized command line option "-arch"
 error: Command "/opt/local/bin/gfortran-mp-4.3 -Wall -ffixed-form
-fno-second-underscore -arch ppc -fPIC -O3 -funroll-loops
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
-c -c scipy/fftpack/src/dfftpack/dcosqb.f -o
 build/temp.macosx-10.4-ppc-2.5/scipy/fftpack/src/dfftpack/dcosqb.o"
failed with exit status 1

>From what I can gather this is due to the flags "-arch ppc" being
specified on the command line to the compiler. On my Intel 10.5
system, no architecture specific flags are passed to the compiler.
Does anyone why these options are being passed? Or how to try and
solve this?

This seems to be a similar problem to
<http://projects.scipy.org/scipy/ticket/915>

Cheers

Adam


More information about the SciPy-user mailing list