[Numpy-discussion] Trouble building numpy on different version of OSX.

Steve Spicklemire steve@spvi....
Thu Feb 14 08:55:52 CST 2013


I got Xcode 4,6 from the App Store. I don't think it's the SDK since the python 2.7 version builds fine. It's just the 3.2 version that doesn't have the -I/Library/Frameworks/Python.Framework/Versions/3.2/include/python3.2m in the compile options line. When I run setup for 2.7 I see the right include. I'm just not sure where setup is building those options, and why they're not working on 10.7 and 10.8 and python3.2. Strange!


thanks,
-steve

On Feb 14, 2013, at 7:27 AM, David Cournapeau <cournape@gmail.com> wrote:

> On Thu, Feb 14, 2013 at 1:09 PM, Steve Spicklemire <steve@spvi.com> wrote:
>> Hi Numpy Folks!
>> 
>> When I try to build numpy on MacOSX 10.6 with Xcode 3.2.5 installed (python3.2 setup.py build) things go great! At some point I get this:
>> 
>> --------------------
>> 
>> Generating build/src.macosx-10.6-intel-3.2/numpy/core/include/numpy/config.h
>> C compiler: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk
>> 
>> compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c'
>> gcc-4.2: _configtest.c
>> success!
>> removing: _configtest.c _configtest.o
>> C compiler: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk
>> 
>> --------------------
>> 
>> Keeping everything as nearly as possible the same on MacOSX 10.7 with Xcode 4.6 installed I get this:
> 
> IIRC, xcode 4.6 does not include Mac OS X 10.6 sdk. Where did you get it ?
> 
> Unfortunately, I don't think it is actually possible to build many
> combinations on mac os x without tweaking flags and adapting the
> -isysroot accordingly.
> 
>> 
>> --------------------
>> 
>> Generating build/src.macosx-10.6-intel-3.2/numpy/core/include/numpy/config.h
>> C compiler: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk
>> 
>> compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -c'
>> gcc-4.2: _configtest.c
>> _configtest.c:1:20: error: Python.h: No such file or directory
>> _configtest.c:1:20: error: Python.h: No such file or directory
>> lipo: can't figure out the architecture type of: /var/folders/4h/7kcqgdb55yjdtfs6dpwjytjh0000gn/T//ccIEwAT5.out
>> _configtest.c:1:20: error: Python.h: No such file or directory
>> _configtest.c:1:20: error: Python.h: No such file or directory
>> lipo: can't figure out the architecture type of: /var/folders/4h/7kcqgdb55yjdtfs6dpwjytjh0000gn/T//ccIEwAT5.out
>> failure.
>> removing: _configtest.c _configtest.o
> 
> I suspect that you're having a message about invalid SDK paths before that.
> 
> David
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion


More information about the NumPy-Discussion mailing list