[MacPorts] #21248: python25 +universal ignores univeral_archs
#21248: python25 +universal ignores univeral_archs ---------------------------------------------+------------------------------ Reporter: mmoll@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.1 Component: ports | Version: 1.8.0 Keywords: universal, snow leopard, x86_64 | Port: python25 ---------------------------------------------+------------------------------ 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/tmp//ccD3CsnI.out make: *** [Modules/python.o] Error 1 -- Ticket URL: <http://trac.macports.org/ticket/21248> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores univeral_archs ---------------------------------------------+------------------------------ Reporter: mmoll@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.1 Component: ports | Version: 1.8.0 Keywords: universal, snow leopard, x86_64 | Port: python25 ---------------------------------------------+------------------------------ Comment(by vince@…): This sounds like python26 behavior, for which I have proposed some patches previously (see #21222). The current install process of python seems to be targeted either to 32-bit, 64-bit or all platforms, but you cannot pick up individual architectures (so you cannot either compile for i386 and x86_64 or ppc and ppc64). What seems strange to me, is that when I first compiled universal version of python25 and 26, on Leopard, let's say a year ago, I did not stumble on these oddities. Regression? -- Ticket URL: <http://trac.macports.org/ticket/21248#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Changes (by jmr@…): * cc: mmoll@… (removed) * owner: macports-tickets@… => mww@… * milestone: MacPorts 1.8.1 => * keywords: universal, snow leopard, x86_64 => Old 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/tmp//ccD3CsnI.out make: *** [Modules/python.o] Error 1
New 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/tmp//ccD3CsnI.out make: *** [Modules/python.o] Error 1 }}} -- -- Ticket URL: <http://trac.macports.org/ticket/21248#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Comment(by jmr@…): This is very much an upstream limitation, they don't intend to fix it, and I don't believe the port ever built for anything other than i386/ppc. -- Ticket URL: <http://trac.macports.org/ticket/21248#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Comment(by ryandesign@…): See also #17306. -- Ticket URL: <http://trac.macports.org/ticket/21248#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Changes (by jmr@…): * owner: mww@… => jwa@… -- Ticket URL: <http://trac.macports.org/ticket/21248#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * cc: artisticforge@… (added) Comment: Cc reporter of duplicate #24753. -- Ticket URL: <http://trac.macports.org/ticket/21248#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Comment(by artisticforge@…): okay, you claim my bug report was a duplicate so be it. this ticket is over 8 month old and there is no solution. why is python25 still being used at all? why goes gnome-desktop still depend on python25? python25 is not ignoring the arch it is attempting to build ppc and i386 on an installation that will not allow that. there are not cross-compile abilities installed. logically it would appear to me that either python25 is fixed or all the apps that depend on python25 are switched over to python26. then declare python25 deprecated. -- Ticket URL: <http://trac.macports.org/ticket/21248#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Comment(by jmr@…): Set configure.universal_archs to match what is actually built in r69440. This should cause more informative error messages at least. -- Ticket URL: <http://trac.macports.org/ticket/21248#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Comment(by x.pechoultres@…): It seems not to take care of x86_64 universal option. I was able to build it by manually patch the Makefile, I replace all ppc by x86_64 and it build, but the directory was deleted !! So it was possible but I lost my patch ! -- Ticket URL: <http://trac.macports.org/ticket/21248#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Comment(by domiman@…): now I get: Error: Cannot install python25 for the arch(s) 'i386 ppc' because Error: its dependency openssl is only installed for the archs 'i386 x86_64'. Error: Unable to execute port: architecture mismatch This is on 10.6.4 with arches set to universal. Why this error than? It shouldn't try to build 'i386 ppc' but 'i386 x86_64' just like OpenSSL is... -- Ticket URL: <http://trac.macports.org/ticket/21248#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Comment(by markus@…):
Error: Cannot install python25 for the arch(s) 'i386 ppc' because Just remove ppc from the line configure.universal_archs i386 ppc from /opt/local/var/macports//sources/rsync.macports.org/release/ports/lang/python25/Portfile
-- Ticket URL: <https://trac.macports.org/ticket/21248#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Comment(by ryandesign@…): Replying to [comment:12 domiman@…]:
It shouldn't try to build 'i386 ppc' but 'i386 x86_64' just like OpenSSL is... As is explained previously in this ticket, it does not appear to be possible to get python25 to build universal for i386 x86_64. Just don't try to build python25 universal, please.
-- Ticket URL: <https://trac.macports.org/ticket/21248#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 --------------------------------+------------------------------------------- Comment(by ryandesign@…): Replying to [comment:13 markus@…]:
Just remove ppc from the line configure.universal_archs i386 ppc from /opt/local/var/macports//sources/rsync.macports.org/release/ports/lang/python25/Portfile
That would make it a non-universal (i386-only) build. So just don't request the universal variant in the first place. -- Ticket URL: <https://trac.macports.org/ticket/21248#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 and python24: +universal ignores universal_archs --------------------------------+------------------------------------------- Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python25 python24 --------------------------------+------------------------------------------- Changes (by jmr@…): * cc: roel@…, ryandesign@…, bgrupe@… (added) * port: python25 => python25 python24 -- Ticket URL: <https://trac.macports.org/ticket/21248#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21248: python25 and python24: +universal ignores universal_archs ---------------------------------+------------------------------------------ Reporter: mmoll@… | Owner: jwa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: Port: python25 python24 | ---------------------------------+------------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r78502 -- Ticket URL: <https://trac.macports.org/ticket/21248#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts