[MacPorts] #36116: libstdcxx build error
#36116: libstdcxx build error -------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: libstdcxx -------------------------------+------------------------ Mac OS X 10.8.1[BR] Xcode 4.4.1 libstdcxx is not building for me. main.log attached. -- Ticket URL: <https://trac.macports.org/ticket/36116> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx | --------------------------------+------------------------ Description changed by macsforever2000@…: Old description:
Mac OS X 10.8.1[BR] Xcode 4.4.1
libstdcxx is not building for me. main.log attached.
New description: Mac OS X 10.8.1[[BR]] Xcode 4.4.1 libstdcxx is not building for me. main.log attached. -- -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by jeremyhu@…): {{{ :info:build fatal error: error in backend: ran out of registers during register allocation }}} <rdar://problem/12282296> Can you please try this as a workaround: {{{ Index: Portfile =================================================================== --- Portfile (revision 97700) +++ Portfile (working copy) @@ -127,9 +127,6 @@ configure.args-delete --enable- languages=c,c++,objc,obj-c++,lto,fortran,java configure.args-append --enable-languages=c++ - configure.args-append --disable-bootstrap - - build.target all destroot.target install-target-libstdc++-v3 post-destroot { }}} -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by macsforever2000@…): It took a while but it worked. FYI, this was on a Mac Pro 2008 with 6 GB RAM. -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by macsforever2000@…): I spoke too soon. Macports keeps finding linking errors and rebuilding it. {{{ $ sudo port install libstdcxx ---> Computing dependencies for libstdcxx ---> Fetching distfiles for libstdcxx ---> Verifying checksum(s) for libstdcxx ---> Extracting libstdcxx ---> Applying patches to libstdcxx ---> Configuring libstdcxx ---> Building libstdcxx ---> Staging libstdcxx into destroot ---> Installing libstdcxx @4.7.1_6 ---> Activating libstdcxx @4.7.1_6 ---> Cleaning libstdcxx ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> Found 1 broken file(s), matching files to ports ---> Found 1 broken port(s), determining rebuild order ---> Rebuilding in order libstdcxx @4.7.1 ---> Computing dependencies for libstdcxx ---> Cleaning libstdcxx ---> Scanning binaries for linking errors: 100.0% ---> Found 1 broken file(s), matching files to ports ---> Found 1 broken port(s), determining rebuild order ---> Rebuilding in order libstdcxx @4.7.1 ---> Computing dependencies for libstdcxx ---> Cleaning libstdcxx ---> Deactivating libstdcxx @4.7.1_6 ---> Cleaning libstdcxx ---> Uninstalling libstdcxx @4.7.1_6 ---> Cleaning libstdcxx ---> Computing dependencies for libstdcxx ---> Fetching distfiles for libstdcxx ---> Verifying checksum(s) for libstdcxx ---> Extracting libstdcxx ---> Applying patches to libstdcxx ---> Configuring libstdcxx ---> Building libstdcxx ---> Staging libstdcxx into destroot ---> Installing libstdcxx @4.7.1_6 ---> Activating libstdcxx @4.7.1_6 ---> Cleaning libstdcxx ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> Found 1 broken file(s), matching files to ports ---> Found 1 broken port(s), determining rebuild order ---> Rebuilding in order libstdcxx @4.7.1 ---> Computing dependencies for libstdcxx ---> Cleaning libstdcxx ---> Deactivating libstdcxx @4.7.1_6 ---> Cleaning libstdcxx ---> Uninstalling libstdcxx @4.7.1_6 ---> Cleaning libstdcxx ---> Computing dependencies for libstdcxx ---> Fetching distfiles for libstdcxx ---> Verifying checksum(s) for libstdcxx ---> Extracting libstdcxx ... }}} -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx | --------------------------------+------------------------ Changes (by cal@…): * cc: cal@… (added) Comment: Please install libstdcxx using `port install --no-rev-upgrade libstdcxx`, run `port -d -y rev-upgrade` and attach the output. -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by jeremyhu@…): r97713 -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by jeremyhu@…): This is fixed in llvm's r163761, so we'll just have to try future XCode releases to see when the fix makes it to us. -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by egall@…): Replying to [comment:8 jeremyhu@…]:
This is fixed in llvm's [http://lists.cs.uiuc.edu/pipermail/llvm-commits /Week-of-Mon-20120910/150440.html r163761], so we'll just have to try future XCode releases to see when the fix makes it to us.
So... there have been a few XCode releases since then... has the fix made it to us yet? -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by jeremyhu@…): Yeah, it's fixed in clang-3.2 and clang-3.3 -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by egall@…): Replying to [comment:11 jeremyhu@…]:
Yeah, it's fixed in clang-3.2 and clang-3.3
So does this mean that libstdcxx can have `--disable-bootstrap` added back to it? Bootstrapping it takes so long... -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by jeremyhu@…): Right now, we can either bootstrap libstdcxx or add clang-3.2 as a dependency. XCode 4.6 contains clang-425.0.24 which is based on llvm-3.2, but I'm not sure if it was before or after r163761 was merged in ... you can always just give it a try ;) I'll take a look at this when I get some free cycles, but cpu cycles are MUCH cheaper than human cycles ;) -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by egall@…): Replying to [comment:13 jeremyhu@…]:
Right now, we can either bootstrap libstdcxx or add clang-3.2 as a dependency.
Would it be possible to add a variant to let the user choose? Or would that be too difficult considering that libstdcxx is already a sub-port? -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by jeremyhu@…): I'm not a fan of compiler variants, so I'm going to say no for now. Please just be patient (or report back if clang-425 works). -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by larryv@…): clang-425.0.24 works fine, without bootstrapping. -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by jeremyhu@…): great, thanks. -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36116: libstdcxx build error --------------------------------+------------------------ Reporter: macsforever2000@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx | --------------------------------+------------------------ Comment (by jeremyhu@…): r103047 -- Ticket URL: <https://trac.macports.org/ticket/36116#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts