[MacPorts] #43978: libgcc not building on Yosemite
#43978: libgcc not building on Yosemite -----------------------------+-------------------------------- Reporter: arthur@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: 2.3.0 Keywords: Libgcc yosemite | Port: -----------------------------+-------------------------------- Ateempt to build libgcc on Yosemite fails with the following error:[[BR]] {{{ configure: error: cannot compute suffix of object files: cannot compile }}} In the config.log (attached) the following message: {{{ conftest.c:1:0: error: unknown value '10.10' of -mmacosx-version-min }}} suggests that the Yosemite OS X version (10.10) may not be handled correctly -- Ticket URL: <https://trac.macports.org/ticket/43978> MacPorts <http://www.macports.org/> Ports system for OS X
#43978: libgcc: error: unknown value '10.10' of -mmacosx-version-min -----------------------+---------------------- Reporter: arthur@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: yosemite Port: libgcc | -----------------------+---------------------- Changes (by ryandesign@…): * keywords: Libgcc yosemite => yosemite * owner: macports-tickets@… => mww@… * priority: Low => Normal * port: => libgcc Comment: Jeremy had pointed this out by private mail on the 4th:
From: Jeremy Huddleston Sequoia [[br]] Subject: gcc support for larger deployment targets [[br]] Date: June 4, 2014 at 12:01:42 AM CDT [[br]] To: Markus Weissmann, David Evans, Ryan Schmidt
Could one of you please update the gcc ports to support deployment targets >= 10.10?
I suggest that you just make this change in gcc47, gcc48, and gcc49 and mark gcc46 and earlier as not supported on Yosemite, since upstream no longer supports gcc-4.6.
{{{ $ gcc-mp-4.8 -mmacosx-version-min=10.12.13 -dM -E -o - - < /dev/null | grep MAC_OS_X <built-in>:0:0: error: unknown value '10.12.13' of -mmacosx-version-min #define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 1000 }}}
{{{ $ clang-mp-3.4 -mmacosx-version-min=10.12.13 -dM -E -o - - < /dev/null | grep MAC_OS_X #define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 101213 }}}
See r120636, [browser:trunk/dports/lang/llvm-3.4/files/yosemite- deployment-target.patch@120636 dports/lang/llvm-3.4/files/yosemite- deployment-target.patch] as reference.
Thanks, [[br]] Jeremy
-- Ticket URL: <https://trac.macports.org/ticket/43978#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43978: libgcc: error: unknown value '10.10' of -mmacosx-version-min -----------------------+---------------------- Reporter: arthur@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: yosemite Port: libgcc | -----------------------+---------------------- Comment (by ab@…): Cc Me! -- Ticket URL: <https://trac.macports.org/ticket/43978#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#43978: libgcc: error: unknown value '10.10' of -mmacosx-version-min -----------------------+---------------------- Reporter: arthur@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: yosemite Port: libgcc | -----------------------+---------------------- Comment (by ab@…): As far as I can understand, this file (at least) has to be patched: gcc-4.8.2/gcc/config/darwin-c.c, arounf lines 573-597: {{{ /* Return the value of darwin_macosx_version_min suitable for the __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ macro, so '10.4.2' becomes 1040. The lowest digit is always zero. Print a warning if the version number can't be understood. */ static const char * version_as_macro (void) { static char result[] = "1000"; if (strncmp (darwin_macosx_version_min, "10.", 3) != 0) goto fail; if (! ISDIGIT (darwin_macosx_version_min[3])) goto fail; result[2] = darwin_macosx_version_min[3]; if (darwin_macosx_version_min[4] != '\0' // <--- This is the problem. The code does not expect minor version to be 2-chars, rather only one-char. && darwin_macosx_version_min[4] != '.') // <--- So for 10.X it works, bit for 10.XX it gives an error goto fail; return result; fail: error ("unknown value %qs of -mmacosx-version-min", darwin_macosx_version_min); return "1000"; } }}} -- Ticket URL: <https://trac.macports.org/ticket/43978#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#43978: libgcc: error: unknown value '10.10' of -mmacosx-version-min -----------------------+---------------------- Reporter: arthur@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: yosemite Port: libgcc | -----------------------+---------------------- Comment (by jeremyhu@…): I'll put together a patch for apple-gcc42, and you guys can take care of merging it into the GPL3 ports. -- Ticket URL: <https://trac.macports.org/ticket/43978#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#43978: libgcc: error: unknown value '10.10' of -mmacosx-version-min -----------------------+---------------------- Reporter: arthur@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: yosemite Port: libgcc | -----------------------+---------------------- Comment (by jeremyhu@…): See r122725 -- Ticket URL: <https://trac.macports.org/ticket/43978#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#43978: libgcc: error: unknown value '10.10' of -mmacosx-version-min -----------------------+---------------------- Reporter: arthur@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: yosemite Port: libgcc | -----------------------+---------------------- Changes (by ryandesign@…): * cc: ryandesign@…, dave@…, egall@… (added) Comment: Has duplicate #44510. I am working on this as part of updating the gcc ports (#43789, #43502, #43529). -- Ticket URL: <https://trac.macports.org/ticket/43978#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#43978: libgcc: error: unknown value '10.10' of -mmacosx-version-min -----------------------+---------------------- Reporter: arthur@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: yosemite Port: libgcc | -----------------------+---------------------- Comment (by ryandesign@…): gcc48, gcc49 and gcc410 have a fix for this as of r123168. I'll work on earlier gcc versions next. -- Ticket URL: <https://trac.macports.org/ticket/43978#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#43978: libgcc: error: unknown value '10.10' of -mmacosx-version-min -----------------------+---------------------- Reporter: arthur@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: yosemite Port: libgcc | -----------------------+---------------------- Comment (by ab@…): Replying to [comment:13 ryandesign@…]:
gcc48, gcc49 and gcc410 have a fix for this as of r123168. I'll work on earlier gcc versions next.
Tried to build it again Yosemite, after upgrading ports. Now it tries to build libgcc 4.9.1, but also fails with an error. I have attached a logfile in the previous comment. -- Ticket URL: <https://trac.macports.org/ticket/43978#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#43978: libgcc: error: unknown value '10.10' of -mmacosx-version-min -----------------------+---------------------- Reporter: arthur@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: yosemite Port: libgcc | -----------------------+---------------------- Comment (by ryandesign@…): All that in planning on dealing with in this ticket is the handling of the 10.10 version number. -- Ticket URL: <https://trac.macports.org/ticket/43978#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#43978: libgcc: error: unknown value '10.10' of -mmacosx-version-min -----------------------+---------------------- Reporter: arthur@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: yosemite Port: libgcc | -----------------------+---------------------- Comment (by ryandesign@…): Replying to [comment:14 ab@…]:
Tried to build it again Yosemite, after upgrading ports. Now it tries to build libgcc 4.9.1, but also fails with an error. I have attached a logfile in the previous comment.
This new problem is now filed at #44596. -- Ticket URL: <https://trac.macports.org/ticket/43978#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts