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

David Cournapeau cournape at gmail.com
Thu Feb 14 09:27:41 EST 2013


On Thu, Feb 14, 2013 at 1:09 PM, Steve Spicklemire <steve at 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



More information about the NumPy-Discussion mailing list