[Pythonmac-SIG] C Extension build troubles in 10.6

david skloot at gmail.com
Thu Sep 10 21:11:48 CEST 2009


I'm having trouble building extensions for python packages in Snow
Leopard. I'm running into this issue with mxBase and psycopg2
currently. I haven't tried any others.

Here's the output, this example being from mxBase:

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 -DUSE_FAST_GETCURRENTTIME
-DBAD_STATIC_FORWARD=1 -UHAVE_STRPTIME -Imx/DateTime/mxDateTime
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-I/usr/local/include -I/opt/local/include
-I/Library/Frameworks/Python.framework/Versions/2.5/include -c
mx/DateTime/mxDateTime/mxDateTime.c -o
build/temp.macosx-10.3-i386-2.5_ucs2/mx-DateTime-mxDateTime-mxDateTime/mx/DateTime/mxDateTime/mxDateTime.o
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of:
/var/folders/fO/fO43i+NPFDKpf9wCgPlln++++TI/-Tmp-//ccTzrZYF.out
error: command 'gcc' failed with exit status 1

This is a new machine with a build environment that should be pretty
clean. Any ideas? I'm having little luck figuring this out. There
doesn't seem to be much information / discussion about the lipo error.

Thanks,
David


More information about the Pythonmac-SIG mailing list