Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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)

main.log (42.5 KB) - added by watsodw 12 years ago.
main.2.log (150.6 KB) - added by watsodw 12 years ago.
main.3.log (2.3 MB) - added by watsodw 12 years ago.
gtk3-add-cc-with-arch-to-buildenv.patch (405 bytes) - added by neverpanic (Clemens Lang) 12 years ago.
Patch against the gtk3 Portfile

Change History (14)

Changed 12 years ago by watsodw

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: cal@… removed
Owner: changed from macports-tickets@… to cal@…

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.

Changed 12 years ago by watsodw

Attachment: main.2.log added

comment:2 Changed 12 years ago by watsodw

New log attached.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

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:5 Changed 12 years ago by watsodw

New log, again.

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)

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 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: newclosed

comment:10 in reply to:  8 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.

Note: See TracTickets for help on using tickets.