[MacPorts] #54327: Error: Failed to build libgcc: command execution failed

MacPorts noreply at macports.org
Tue Jun 20 15:33:02 UTC 2017


#54327: Error: Failed to build libgcc: command execution failed
--------------------------+-------------------
  Reporter:  pedrotildes  |      Owner:
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.4.1
Resolution:               |   Keywords:
      Port:  libgcc       |
--------------------------+-------------------

Comment (by kencu):

 Here's the basic issue you seem to be having, which is not easy to
 understand. Your `xar` port is looking for a libxml of version 12 or
 greater, which you certainly should have. So something is amiss.

 First of all, please make sure nothing has slipped in to `/usr/local/*` on
 you. There should be nothing in that subdirectory.

 check your version of xar.
 {{{
 port -v installed xar
 }}}
 you should see something similar to this (with a different darwin version
 in your case)
 {{{
 The following ports are currently installed:
   xar @1.5.2_2+universal (active) platform='darwin 10' archs='i386 x86_64'
 date='2016-12-22T12:34:01-0800'
 }}}
 then check your version of libxml2
 {{{
 port -v installed libxml2
 }}}
 you should see
 {{{
 $ port -v installed libxml2
 The following ports are currently installed:
   libxml2 @2.9.4_1+debug+universal (active) platform='darwin 10'
 archs='i386 x86_64' date='2017-05-21T13:13:52-0700'
 }}}
 if all those are in place, then check the linkages to see what is wrong
 {{{
 port -v contents xar
 }}}

 {{{
 $ port -v contents xar
 Port xar contains:
   /opt/local/bin/xar
   /opt/local/include/xar/xar.h
   /opt/local/lib/libxar.1.dylib
   /opt/local/lib/libxar.a
   /opt/local/lib/libxar.dylib
   /opt/local/share/man/man1/xar.1.gz
 }}}
 The library is libxar.1.dylib, so then check that
 {{{
 $ otool -L /opt/local/lib/libxar.1.dylib
 /opt/local/lib/libxar.1.dylib:
         /opt/local/lib/libxar.1.dylib (compatibility version 1.0.0,
 current version 1.0.0)
         /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0,
 current version 1.0.6)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.8)
         /opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0,
 current version 1.0.0)
         /opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0,
 current version 12.4.0)
         /opt/local/lib/liblzma.5.dylib (compatibility version 8.0.0,
 current version 8.2.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 125.2.11)
         /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0,
 current version 8.1.0)
 }}}
 notice my libxar.1.dylib is linking into libxml2.2.dylib which has
 compatability version 12.0.0, which is what is needed.

 Do you see anything different in your installation?

--
Ticket URL: <https://trac.macports.org/ticket/54327#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list