Opened 15 years ago
Last modified 13 years ago
#21248 closed defect
python25 +universal ignores univeral_archs — at Initial Version
Reported by: | mamoll (Mark Moll) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | mmoll@… | |
Port: | python25 python24 |
Description
I'm trying to build python25 +universal on Snow Leopard. In my macports.conf I have set universal_archs to i386 and x86_64. The python configure script hardcodes i386 and ppc as the universal architectures. Even if I replace ppc with x86_64, the compilation fails with these errors:
/usr/bin/gcc-4.2 -c -arch x86_64 -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -mno-fused-madd -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/opt/local/include -D_DARWIN_C_SOURCE -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/architecture/i386/math.h:626,
from /Developer/SDKs/MacOSX10.6.sdk/usr/include/math.h:28, from Include/pyport.h:231, from Include/Python.h:57, from ./Modules/python.c:3:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid. In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/architecture/i386/math.h:626,
from /Developer/SDKs/MacOSX10.6.sdk/usr/include/math.h:28, from Include/pyport.h:231, from Include/Python.h:57, from ./Modules/python.c:3:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid. In file included from Include/Python.h:57,
from ./Modules/python.c:3:
Include/pyport.h:761:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." lipo: can't figure out the architecture type of: /var/tmpccD3CsnI.out make: * [Modules/python.o] Error 1