[MacPorts] #54228: octave @4.2.1 build failure on SnowLeopard with clang-3.9 due to malformed object error, but succeeds with clang-3.8

MacPorts noreply at macports.org
Fri May 26 16:36:21 UTC 2017


#54228: octave @4.2.1 build failure on SnowLeopard with clang-3.9 due to malformed
object error, but succeeds with clang-3.8
---------------------+---------------------------------
  Reporter:  kencu   |      Owner:  MarcusCalhoun-Lopez
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:  snowleopard
      Port:  octave  |
---------------------+---------------------------------

Comment (by gnw3):

 On A Snow Leopard system that uses libstdc++ as the default C++ runtime,
 building with {{{configure.compiler=macports-clang-3.9}}} gives the same
 "malformed object" error.  I also have:

 {{{
 $ port log octave | grep RANLIB
 DEBUG: RANLIB='/usr/bin/ranlib'
 configure: defining MKOCTFILE_RANLIB to be /usr/bin/ranlib
 }}}

 In the Portfile there is:

 {{{
 # avoid depends_build-append port:cctools
 configure.env-append RANLIB=/usr/bin/ranlib
 }}}

 After editing the portfile to use {{{RANLIB=${port}/bin/ranlib}}}, the
 build proceeds further, but fails on:

 {{{
 clang: error: invalid library name in argument '-stdlib=macports-
 libstdc++'
 }}}

 The log shows that this comes from {{{CXXFLAGS}}}:

 {{{
 DEBUG: CXXFLAGS='-pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -stdlib=macports-
 libstdc++ -arch x86_64'
 }}}

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


More information about the macports-tickets mailing list