[MacPorts] #35172: boost @ 1.50 - Error Building boost

MacPorts noreply at macports.org
Mon Jul 23 08:31:27 PDT 2012


#35172: boost @ 1.50 - Error Building boost
-----------------------------------+----------------------------------------
 Reporter:  notinmyhead@…          |       Owner:  adfernandes@…           
     Type:  defect                 |      Status:  new                     
 Priority:  Normal                 |   Milestone:                          
Component:  ports                  |     Version:  2.1.1                   
 Keywords:                         |        Port:  boost                   
-----------------------------------+----------------------------------------

Comment(by adfernandes@…):

 Okay. Turns out the problem might '''not''' be to define
 `BOOST_SP_USE_PTHREADS` as above.

 It appears that, in it's great wisdom, the `boost` build system decides
 that if you're building in 32-bit mode on an intel processor you can't
 have anything more advanced than a `i386` architecture by default. And
 that arch does not have the atomic memory intrinsics that are required.

 The solution appears to be to remove the artificial (and incorrect)
 `-march=i386` that's getting added to the build flags. For intel 32-bit
 builds on Apple, we can safely use `-march=prescott`. A new patch and
 whole Portfile for testing is attached.

 Please test and let me know.

-- 
Ticket URL: <https://trac.macports.org/ticket/35172#comment:15>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list