Opened 10 years ago

Closed 10 years ago

#25230 closed defect (invalid)

xorg-libXext: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Reported by: kasper@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.9.0
Keywords: Cc:
Port: xorg-libXext

Description

I'm using macports 1.9.0 on OSX Snow Leopard 10.6.3

When I try to install wine-devel, the build of xorg-libXext fails:

MacBook-Kasper:~ Kasper$ sudo port install wine-devel
--->  Computing dependencies for wine-devel
--->  Dependencies to be installed: xorg-libXcomposite xorg-libXext xorg-libXfixes
--->  Fetching xorg-libXext
--->  Attempting to fetch libXext-1.1.2.tar.bz2 from http://lil.fr.distfiles.macports.org/xorg-libXext
--->  Verifying checksum(s) for xorg-libXext
--->  Extracting xorg-libXext
--->  Configuring xorg-libXext
--->  Building xorg-libXext
Error: Target org.macports.build returned: shell command failed
Log for xorg-libXext is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libXext/main.log
Error: The following dependencies failed to build: xorg-libXcomposite xorg-libXext xorg-libXfixes
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Build log included as attachment

Attachments (1)

main.log (36.1 KB) - added by kasper@… 10 years ago.
build log

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by kasper@…

Attachment: main.log added

build log

comment:1 Changed 10 years ago by kasper@…

Cc: kasper@… added

Cc Me!

comment:2 Changed 10 years ago by ryandesign (Ryan Schmidt)

Cc: kasper@… removed
Owner: changed from macports-tickets@… to jeremyhu@…
Port: xorg-libXext added
Summary: xorg-libXext-1.1.2 error while buildingxorg-libXext: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Please fill in the port field, Cc the port maintainer, and note you do not need to Cc yourself.

... CFLAGS='-O2 -arch x86_64 -arch i386' ... MACOSX_DEPLOYMENT_TARGET='10.6' ...

Ok, I see you are on Snow Leopard, and are trying to build xorg-libXext universal for x86_64 and i386.

:info:build ld: warning: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
:info:build ld: warning: in /opt/local/lib/libXau.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
:info:build ld: warning: in /opt/local/lib/libXdmcp.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

For what architecture are each of those libraries built? ("lipo -info" can tell you) The ports that provide those libraries ("port provides" can tell you) need to be rebuilt with the universal variant, e.g.:

$ port provides /opt/local/lib/libX11.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib
/opt/local/lib/libX11.dylib is provided by: xorg-libX11
/opt/local/lib/libXau.dylib is provided by: xorg-libXau
/opt/local/lib/libXdmcp.dylib is provided by: xorg-libXdmcp
$ sudo port upgrade --enforce-variants xorg-libX11 +universal
$ sudo port upgrade --enforce-variants xorg-libXau +universal
$ sudo port upgrade --enforce-variants xorg-libXdmcp +universal

comment:3 Changed 10 years ago by kasper@…

I have rebuilt those 3 library's., But when I try to build wine-devel now, I get the following error for each dependency:

MacBook-Kasper:~ Kasper$ sudo port install wine-devel--->  Computing dependencies for wine-devel
--->  Configuring wine-devel
Error: You cannot install wine-devel for the architecture(s) i386 because
Error: its dependency libxslt only contains the architecture(s) x86_64.
Error: 
Error: Try rebuilding libxslt (and all its dependencies) with
Error: the +universal variant by running
Error: 
Error:     sudo port upgrade --enforce-variants libxslt +universal
Error: 
Error: Target org.macports.configure returned: incompatible architectures in dependencies
Log for wine-devel is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wine-devel/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Is it possible to do the upgrade --enforce-variants <portname> +universal for each dependency of wine-devel with one command, instead of running this command for each dependency manually? (it are a lot of dependencies: expat, fontconfig, freetype, jpeg, lcms, libiconv, libpng, libxml2, libxslt, ncurses, openssl, tiff, zlib, xorg-libsm, xorg-libXcomposite, xorg-libXcursor, xorg-libXi, xorg-libXinerama, xorg-libXrandr, xorg-libXxf86vm, mesa)

comment:4 Changed 10 years ago by kasper@…

After upgrading all wine-devel's dependencies with --enforce-variants +universal, the wine-devel build succeeded. Thanks!

comment:5 Changed 10 years ago by kasper@…

A question: couldn't I just install a x86_64 version of wine-devel? Now all the dependencies had to be installed in 32bit because wine-devel doesn't want 64bit..

comment:6 Changed 10 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed

Wine is intrinsically unable to build for anything but x86.

Note: See TracTickets for help on using tickets.