[MacPorts] #55135: gcc5 @5.5.0 fails to build on Snow Leopard, Mac OS X 10.6.8, because linker command failed with undefined symbols for architecture x86_64

MacPorts noreply at macports.org
Sun Oct 22 19:54:35 UTC 2017


#55135: gcc5 @5.5.0 fails to build on Snow Leopard, Mac OS X 10.6.8, because linker
command failed with undefined symbols for architecture x86_64
------------------------+-------------------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.2
Resolution:             |   Keywords:  snowleopard
      Port:  gcc5       |
------------------------+-------------------------

Comment (by ballapete):

 Replying to [comment:5 kencu]:

 > {{{
 > configure.cxxflags-append  -stdlib=libc++
 > configure.ldflags-append   -stdlib=libc++
 > }}}
 >
 This change failed. Could be I put it onto the wrong lines…
 >
 > If that fails, then remove those two lines from the portfile again, and
 try building gcc5 with the older default compiler that is installed:
 >
 > `sudo port -v install gcc5 configure.compiler=gcc-4.2`
 >
 > I know that goes against what we usually do with macports, but it should
 work in this specific case.

 Yes, this did the job!

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


More information about the macports-tickets mailing list