[MacPorts] #25230: xorg-libXext-1.1.2 error while building
#25230: xorg-libXext-1.1.2 error while building --------------------------------+------------------------------------------- Reporter: kasper@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: --------------------------------+------------------------------------------- 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 -- Ticket URL: <http://trac.macports.org/ticket/25230> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25230: xorg-libXext: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386) --------------------------------+------------------------------------------- Reporter: kasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: xorg-libXext --------------------------------+------------------------------------------- Changes (by ryandesign@…): * cc: kasper@… (removed) * owner: macports-tickets@… => jeremyhu@… * port: => xorg-libXext Comment: 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 }}} -- Ticket URL: <http://trac.macports.org/ticket/25230#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25230: xorg-libXext: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386) --------------------------------+------------------------------------------- Reporter: kasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: xorg-libXext --------------------------------+------------------------------------------- Comment(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) -- Ticket URL: <http://trac.macports.org/ticket/25230#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25230: xorg-libXext: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386) --------------------------------+------------------------------------------- Reporter: kasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: xorg-libXext --------------------------------+------------------------------------------- Comment(by kasper@…): After upgrading all wine-devel's dependencies with --enforce-variants +universal, the wine-devel build succeeded. Thanks! -- Ticket URL: <http://trac.macports.org/ticket/25230#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25230: xorg-libXext: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386) --------------------------------+------------------------------------------- Reporter: kasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: xorg-libXext --------------------------------+------------------------------------------- Comment(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.. -- Ticket URL: <http://trac.macports.org/ticket/25230#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25230: xorg-libXext: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386) ---------------------------------+------------------------------------------ Reporter: kasper@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Resolution: invalid | Keywords: Port: xorg-libXext | ---------------------------------+------------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => invalid Comment: Wine is intrinsically unable to build for anything but x86. -- Ticket URL: <http://trac.macports.org/ticket/25230#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts