[MacPorts] #53726: libgcc / gcc fails to build against SDK (i.e. without system headers installed)

MacPorts noreply at macports.org
Tue Mar 7 10:35:02 UTC 2017


#53726: libgcc / gcc fails to build against SDK (i.e. without system headers
installed)
-----------------------+----------------------
  Reporter:  jeremyhu  |      Owner:  jeremyhu
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  libgcc    |
-----------------------+----------------------

Comment (by jeremyhu):

 In [changeset:"cf63124116c323a1c00be134e955bb9d9b67c788/macports-ports"
 cf631241/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="cf63124116c323a1c00be134e955bb9d9b67c788"
 gcc*: Fix building against an SDK

 With this change, gcc now builds when configure.sdkroot is an SDK.  The
 intention is that the installed gcc should be identical to a build in
 which
 configure.sdkroot is /, but GCC's build system is flawed and does not
 properly implement their --with-build-sdkroot= configure option.

 As a workaround, we are using --with-sdkroot= which causes the installed
 gcc
 to look in the SDKROOT by default instead of / by default.  Hopefully GCC
 will provide a fix for this bug, or someone who is able to look at GPLv3
 code
 can provide a fix for them.  In the mean time, this is better than failing
 to build.

 See https://trac.macports.org/ticket/53726
 See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885

 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at macports.org>
 }}}

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


More information about the macports-tickets mailing list