Opened 9 years ago

Last modified 9 years ago

#48491 closed defect

gobject-introspection: libxml2.2.dylib, file was built for x86_64 which is not the architecture being linked (i386) — at Version 1

Reported by: vamsi765 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: gobject-introspection

Description (last modified by ryandesign (Ryan Carsten Schmidt))

--->  Computing dependencies for gobject-introspection
--->  Fetching archive for gobject-introspection
--->  Attempting to fetch gobject-introspection-1.44.0_0+universal.darwin_14.i386-x86_64.tbz2 from http://packages.macports.org/gobject-introspection
--->  Attempting to fetch gobject-introspection-1.44.0_0+universal.darwin_14.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/gobject-introspection
--->  Attempting to fetch gobject-introspection-1.44.0_0+universal.darwin_14.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gobject-introspection
--->  Fetching distfiles for gobject-introspection
--->  Verifying checksums for gobject-introspection
--->  Extracting gobject-introspection
--->  Configuring gobject-introspection
--->  Building gobject-introspection
Error: org.macports.build for port gobject-introspection returned: command execution failed
Please see the log file for port gobject-introspection for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gobject-introspection/gobject-introspection/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade graphviz failed

I have tried the cleaning of all the three (graphviz, mango, gobject-introspection) and individual ports. I did self update my port and upgrade all the outdated ports.

Change History (2)

Changed 9 years ago by vamsi765

Attachment: main.log added

Log file for the error

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

Description: modified (diff)
Keywords: upgrade graphviz failed removed
Port: gobject-introspection added; gr-osmosdr removed
Summary: Issue while installing gr-osmosdrgobject-introspection: libxml2.2.dylib, file was built for x86_64 which is not the architecture being linked (i386)

The log says the error is:

:info:build ld: in '/opt/local/lib/libxml2.2.dylib', file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libxml2.2.dylib for architecture i386
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)

You're building gobject-introspection universal, but for some reason your libxml2 library is not universal. MacPorts thinks your installed libxml2 port is already universal; you can verify this by running "port -v installed libxml2"—the output should include the string "+universal". If it were not so, MacPorts would have automatically rebuilt your libxml2 port universal for you. But the error message says it isn't universal, so it seems that something has overwritten your universal libxml2 library with a non-universal one, behind MacPorts' back. How did that happen? Did you run a third-party installer that overwrote some of your MacPorts files? (Third-party installers should not do that, but some do; if you can remember which installer it was, then you can report the problem to the distributors of that installer.)

If your libxml2 library was overwritten, who knows how many other files were overwritten as well. To fix the problem, the cleanest solution, least likely to result in further problems down the road, is to uninstall all ports, and MacPorts itself (including deleting the /opt/local directory, after first saving anything important therein), then reinstalling MacPorts and the ports you want.

Note: See TracTickets for help on using tickets.