#35147 closed defect (fixed)
gtk3 upgrade from 3.4.3_1 to 3.4.3_2 fails - architecture mismatch
Reported by: | watsodw | Owned by: | neverpanic (Clemens Lang) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.1 |
Keywords: | haspatch | Cc: | ryandesign (Ryan Carsten Schmidt) |
Port: | gtk3 |
Description
libgdk-3.dylib -file was built for i386 which is not the architecture being linked (x86_64)
Attachments (4)
Change History (14)
Changed 12 years ago by watsodw
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | cal@… removed |
---|---|
Owner: | changed from macports-tickets@… to cal@… |
Changed 12 years ago by watsodw
Attachment: | main.2.log added |
---|
comment:4 Changed 12 years ago by neverpanic (Clemens Lang)
Please run selfupdate, clean and try again and attach the (hopefully then more verbose) log.
Changed 12 years ago by watsodw
Attachment: | main.3.log added |
---|
comment:6 Changed 12 years ago by neverpanic (Clemens Lang)
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.
Changed 12 years ago by neverpanic (Clemens Lang)
Attachment: | gtk3-add-cc-with-arch-to-buildenv.patch added |
---|
Patch against the gtk3 Portfile
comment:7 Changed 12 years ago by neverpanic (Clemens Lang)
Can you give the attached patch a shot and see if it helps?
comment:8 follow-up: 10 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
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.
comment:9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:10 Changed 12 years ago by neverpanic (Clemens Lang)
Replying to 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.
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.