[MacPorts] #48491: gobject-introspection: libxml2.2.dylib, file was built for x86_64 which is not the architecture being linked (i386) (was: Issue while installing gr-osmosdr)

MacPorts noreply at macports.org
Sun Aug 2 16:51:07 PDT 2015


#48491: gobject-introspection: libxml2.2.dylib, file was built for x86_64 which is
not the architecture being linked (i386)
------------------------------------+--------------------------------
  Reporter:  vamsi765@…             |      Owner:  macports-tickets@…
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.3.3
Resolution:                         |   Keywords:
      Port:  gobject-introspection  |
------------------------------------+--------------------------------
Changes (by ryandesign@…):

 * keywords:  upgrade graphviz failed =>
 * port:  gr-osmosdr => gobject-introspection


Old description:

> --->  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.

New description:

 {{{
 --->  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.

--

Comment:

 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
 [https://guide.macports.org/chunked/project.html#project.tickets 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/48491#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list