[MacPorts] #35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch
#35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch -------------------------------------+-------------------------------------- Reporter: david.w.watson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: gtk3 -------------------------------------+-------------------------------------- libgdk-3.dylib -file was built for i386 which is not the architecture being linked (x86_64) -- Ticket URL: <https://trac.macports.org/ticket/35147> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch -------------------------------------+-------------------------------------- Reporter: david.w.watson@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: gtk3 -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => cal@… * cc: cal@… (removed) Comment: The log you attached was not from a clean attempt. Please "sudo port clean gtk3", then try again, then attach the new main.log if it fails again. -- Ticket URL: <https://trac.macports.org/ticket/35147#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch -------------------------------------+-------------------------------------- Reporter: david.w.watson@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: gtk3 -------------------------------------+-------------------------------------- Comment(by david.w.watson@…): New log attached. -- Ticket URL: <https://trac.macports.org/ticket/35147#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch -------------------------------------+-------------------------------------- Reporter: david.w.watson@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: gtk3 -------------------------------------+-------------------------------------- Comment(by cal@…): Please run selfupdate, clean and try again and attach the (hopefully then more verbose) log. -- Ticket URL: <https://trac.macports.org/ticket/35147#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch -------------------------------------+-------------------------------------- Reporter: david.w.watson@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: gtk3 -------------------------------------+-------------------------------------- Comment(by david.w.watson@…): New log, again. -- Ticket URL: <https://trac.macports.org/ticket/35147#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch -------------------------------------+-------------------------------------- Reporter: david.w.watson@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: gtk3 -------------------------------------+-------------------------------------- Comment(by cal@…): This problem is `g-ir-scanner` calling libtool without the necessary archflags, i.e. without `-arch i386`. I have yet to find a way to solve this, though. -- Ticket URL: <https://trac.macports.org/ticket/35147#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch -------------------------------------+-------------------------------------- Reporter: david.w.watson@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: gtk3 -------------------------------------+-------------------------------------- Comment(by cal@…): Can you give the attached patch a shot and see if it helps? -- Ticket URL: <https://trac.macports.org/ticket/35147#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch -------------------------------------+-------------------------------------- Reporter: david.w.watson@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: gtk3 -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Clemens, a simpler version of your patch would be to just add "merger_arch_compiler yes" to the port. And that does fix the universal build for me. But if we need to add -arch flags to the compiler when building universal, then we surely also need to do it when not building universal, for the case of building for a non-default build_arch. In fact all of the ports that were updated to use gobject-introspection need this fix too. I'm fixing them now. -- Ticket URL: <https://trac.macports.org/ticket/35147#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch --------------------------------------+------------------------------------- Reporter: david.w.watson@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: fixed | Keywords: haspatch Port: gtk3 | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: new => closed * keywords: => haspatch * resolution: => fixed Comment: r95698 -- Ticket URL: <https://trac.macports.org/ticket/35147#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35147: gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch --------------------------------------+------------------------------------- Reporter: david.w.watson@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: fixed | Keywords: haspatch Port: gtk3 | --------------------------------------+------------------------------------- Comment(by cal@…): Replying to [comment:8 ryandesign@…]:
Clemens, a simpler version of your patch would be to just add "merger_arch_compiler yes" to the port. And that does fix the universal build for me.
Thanks for testing. I yet have to setup a universal build environment to test in. It's quite the hassle to test with and without universal on my box, especially for long builds.
But if we need to add -arch flags to the compiler when building universal, then we surely also need to do it when not building universal, for the case of building for a non-default build_arch. In fact all of the ports that were updated to use gobject-introspection need this fix too. I'm fixing them now.
Yes, I expected this to be the case. Thanks for taking care of it. -- Ticket URL: <https://trac.macports.org/ticket/35147#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts