Problem buliding rc2 on OS X

Robert Kern robert.kern at gmail.com
Sat Oct 14 14:12:48 EDT 2006


Jay Parlar wrote:
>> Jay Parlar wrote:
>>> In the process of finally switching over to Python 2.5, and am trying
>>> to build numpy. Unfortunately, it dies during the build:
>>> C compiler: gcc -arch ppc -arch i386 -isysroot
>>> /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double
>>> -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3
>>>
>>> compile options:
>>> '-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>> -Inumpy/core/src -Inumpy/core/include
>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>> -c'
>>> gcc: _configtest.c
>>> gcc: cannot specify -o with -c or -S and multiple compilations
>>> gcc: cannot specify -o with -c or -S and multiple compilations
>>> failure.
>> This is the problem. Are you sure that you are using the correct version of gcc
>> for making Universal binaries on 10.3.9? If so, then we are not passing the
>> correct flags to it. Unfortunately, I think that the Universal stuff is going to
>> make our lives quite complicated.
> 
> Well, my system is up-to-date, with only one gcc on it, so I don't
> know what else I can do. I originally missed the line saying "C
> compiler: gcc ...". It's odd, because I certainly don't have a
> /Developer/SDKs/MacOSX10.4u.sdk on my system. I wonder if that's there
> implicitly because the universal Python 2.5 I downloaded from
> python.org was built on a 10.4 system.

It probably was. I'm not sure what the deal is with building extensions with 
Universal Python on 10.3.9. It's possible that Universal binaries are only 
executable on 10.3.9, but not buildable.

Are there any updates to the Developer Tools that you can install for 10.3.9? 
Particularly, is there one which provides gcc 4.0, which I think is the sine qua 
non for building Universal binaries.

Can you build any other extension modules using distutils?

If neither of the above is true, then you may need to upgrade to 10.4 to build 
Universal binaries. You might want to check the available Mac Python 
documentation and pythonmac-sig archives for more information. I have not been 
following the Universal discussion as closely as I could have (and as I'm 
currently on vacation, I'm not about to rectify that now).

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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the NumPy-Discussion mailing list