[MacPorts] #50635: boost @1.59 does not build on Snow Leopard
#50635: boost @1.59 does not build on Snow Leopard -------------------------------+-------------------------------- Reporter: steven.dwyer@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 2.3.4 Keywords: 1.59 snow leopard | Port: boost -------------------------------+-------------------------------- Trying to install boost 1.59.0 using MacPorts 2.3.4 on Snow Leopard (10.6.8) fails with the following output: {{{ $ sudo port install boost ---> Computing dependencies for boost ---> Fetching archive for boost ---> Attempting to fetch boost-1.59.0_2+no_single+no_static+python27.darwin_10.i386.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/boost ---> Attempting to fetch boost-1.59.0_2+no_single+no_static+python27.darwin_10.i386.tbz2 from http://lil.fr.packages.macports.org/boost ---> Attempting to fetch boost-1.59.0_2+no_single+no_static+python27.darwin_10.i386.tbz2 from http://packages.macports.org/boost ---> Fetching distfiles for boost ---> Attempting to fetch boost_1_59_0.tar.bz2 from http://kent.dl.sourceforge.net/project/boost/boost/1.59.0 ---> Verifying checksums for boost ---> Extracting boost ---> Applying patches to boost ---> Configuring boost ---> Building boost Error: org.macports.build for port boost returned: command execution failed Please see the log file for port boost for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_boost/boost/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port boost failed }}} I have attached the main.log. Cleaning the port did not work. I have successfully downloaded boost 1.59 and built this manually so I do not believe it is a boost issue. -- Ticket URL: <https://trac.macports.org/ticket/50635> MacPorts <https://www.macports.org/> Ports system for OS X
#50635: boost @1.59 does not build on Snow Leopard -----------------------------+-------------------------------- Reporter: steven.dwyer@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 2.3.4 Resolution: | Keywords: 1.59 snow leopard Port: boost | -----------------------------+-------------------------------- Comment (by steven.dwyer@…): Failure from log: {{{ :info:build ld: bad codegen, pointer diff in boost::archive::basic_text_iprimitive<std::basic_istream<char, std::char_traits<char> > >::basic_text_iprimitive(std::basic_istream<char, std::char_traits<char> >&, bool)to global weak symbol vtable for boost::archive::codecvt_null<char>for architecture i386 :info:build collect2: ld returned 1 exit status :info:build ...failed darwin.link.dll stage/lib/libboost_serialization- mt.dylib... }}} -- Ticket URL: <https://trac.macports.org/ticket/50635#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50635: boost @1.59 does not build on Snow Leopard -----------------------------+-------------------------- Reporter: steven.dwyer@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: snowleopard Port: boost | -----------------------------+-------------------------- Changes (by ryandesign@…): * keywords: 1.59 snow leopard => snowleopard * owner: macports-tickets@… => ryandesign@… * milestone: MacPorts Future => Comment: Might be relevant that this is occurring on i386 not x86_64. What version of Xcode are you using? Did you recently change the version of Xcode? Some hits on Google for this error suggest the reason is mixing binaries compiled with different compilers. -- Ticket URL: <https://trac.macports.org/ticket/50635#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50635: boost @1.59 does not build on Snow Leopard -----------------------------+-------------------------- Reporter: steven.dwyer@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: snowleopard Port: boost | -----------------------------+-------------------------- Comment (by steven.dwyer@…): Nope, not touched the Xcode version. Currently running 4.0.2 (Build 4A2002a). The error had originally occurred during an upgrade, however, I removed all my installed ports and started again from scratch but the error still occurs. -- Ticket URL: <https://trac.macports.org/ticket/50635#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50635: boost @1.59 does not build on Snow Leopard -----------------------------+-------------------------- Reporter: steven.dwyer@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: snowleopard Port: boost | -----------------------------+-------------------------- Comment (by ryandesign@…): Ok, there could just be a bug in the compiler in Xcode 4.0.2. Is there a specific reason why you need Xcode 4.0.2? Xcode 3.2.6 is recommended for MacPorts on Snow Leopard because it is the last free version for Snow Leopard so it's the best-tested one. -- Ticket URL: <https://trac.macports.org/ticket/50635#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50635: boost @1.59 does not build on Snow Leopard -----------------------------+-------------------------- Reporter: steven.dwyer@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: snowleopard Port: boost | -----------------------------+-------------------------- Comment (by steven.dwyer@…): That's just what I have installed - has been installed for ages. I did see something that referred to 3.2.6 being the last free version but I've never paid for Xcode so not sure how I've got 4.0.2. I will roll back to 3.2.6 and retry. -- Ticket URL: <https://trac.macports.org/ticket/50635#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#50635: boost @1.59 does not build on Snow Leopard -----------------------------+-------------------------- Reporter: steven.dwyer@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: snowleopard Port: boost | -----------------------------+-------------------------- Comment (by ryandesign@…): Ok. Make sure you run the `uninstall-devtools` script and restart the computer before installing an older version of Xcode, as it says in the Xcode readme. -- Ticket URL: <https://trac.macports.org/ticket/50635#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#50635: boost @1.59 does not build on Snow Leopard -----------------------------+-------------------------- Reporter: steven.dwyer@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: snowleopard Port: boost | -----------------------------+-------------------------- Comment (by steven.dwyer@…): Thanks. That's solved it! Boost 1.59 successfully installed with Xcode 3.2.6. -- Ticket URL: <https://trac.macports.org/ticket/50635#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#50635: boost @1.59 does not build on Snow Leopard -----------------------------+-------------------------- Reporter: steven.dwyer@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: worksforme | Keywords: snowleopard Port: boost | -----------------------------+-------------------------- Changes (by mojca@…): * status: new => closed * resolution: => worksforme -- Ticket URL: <https://trac.macports.org/ticket/50635#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#50635: boost @1.59 does not build on Snow Leopard -----------------------------+-------------------------- Reporter: steven.dwyer@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: worksforme | Keywords: snowleopard Port: boost | -----------------------------+-------------------------- Comment (by ryandesign@…): I originally thought the problem must be that with Xcode 4 you would be using llvm-gcc-4.2. But that's not the case because the boost port already blacklists llvm-gcc-4.2. So with Xcode 4 boost is using gcc-4.2, same as on Xcode 3. And according to XcodeVersionInfo#MacOSX10.6, Xcode 3.2.6, 4.0, and 4.1 use the same version of gcc-4.2: 5666 dot 3. So I'm at a loss to explain why it would fail with Xcode 4, and also our usual compiler blacklisting methods could not be used to work around this, since they work by looking at the compiler version number. -- Ticket URL: <https://trac.macports.org/ticket/50635#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts