[MacPorts] #39809: boost @1.54.0 fails to upgrade

MacPorts noreply at macports.org
Sat Apr 12 14:48:18 PDT 2014


#39809: boost @1.54.0 fails to upgrade
-------------------------------+---------------------------------------
  Reporter:  nonstop.server@…  |      Owner:  macports-tickets@…
      Type:  defect            |     Status:  reopened
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.1.3
Resolution:                    |   Keywords:  tiger leopard snowleopard
      Port:  boost             |
-------------------------------+---------------------------------------

Comment (by braumann@…):

 Replying to [comment:28 jdgleeson@…]:
 > ...
 > I got past this problem by commenting out the line
 > {{{
 >                 options = -arch ppc ;
 > }}}
 > in `boost_1_54_0/tools/build/v2/tools/darwin.jam` in the work directory.

 Your hack has inspired me to find a work-around which finally has lead to
 a successful `boost` build on my Powerbook G4.

 First I had noticed that gcc4.8 now smoothly builds on my 10.5.8 PPC
 (meanwhile we have `gcc48 @4.8.2_0`). Suddenly I got aware that gcc48 can
 be enabled to compile C++11 code, which in turn was one of the arguments
 to preset `clang-3.3 @3.3_2` as compiler for `boost`. However, PPC support
 of `clang` is and probably will remain insufficient for practical usage,
 `clang-3.3` already fails during configuration of `boost @1.55.0_2`. So I
 assumed that `gcc48` with C++11 support enabled should work to build
 `boost`.

 To remove previous tests first I cleaned up:
 {{{
 sudo port clean boost
 }}}

 Since I was aware that building with `gcc48` will lead to an error
 complaining that `-arch` is not an accepted switch, I just did the
 configuration without building:

 {{{
 sudo port configure boost configure.compiler=macports-gcc-4.8
 }}}


 Once this had completed the hack I have applied for my "proof of concept"
 was just to replace
 {{{
                 options = -arch ppc ;
 }}}
 with
 {{{
                 options = -std=c++11 ;
 }}}
 in `boost_1_55_0/tools/build/v2/tools/darwin.jam`. Note that root
 privileges are required to edit `darwin.jam`.


 Then I just continued building:
 {{{
 sudo port install boost configure.compiler=macports-gcc-4.8
 }}}
 Not sure if the `configure.compiler` is essential here or not, probably
 not.

 Some hours later, `boost` was successfully installed!

 I leave it to someone more experienced to modify the `boost` portfile or
 even other files in order to automate the few steps I was explaining
 above. For the sake of PPC users it really would be nice to see my little
 recipe implemented that circumvents a `clang` usage.

-- 
Ticket URL: <https://trac.macports.org/ticket/39809#comment:39>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list