Skip to content


boost 1.53.0 failed to build with --universal on 10.7.5 #17646

kevinxucs opened this Issue · 19 comments

6 participants

Homebrew member

Warning: Setting DYLD_LIBRARY_PATH can break dynamic linking.
You should probably unset it.

Did you try that?


Please follow all the steps there.

Also, please try non-universal too.


I tried all the instructions and of course non-universal build works because it's a "bottle" build.

Homebrew member

Not to be a dick but you didn't follow the instructions under "File a Ticket for the Bug". To clarify: you did try unsetting DYLD_LIBRARY_PATH? Try doing brew install boost --build-from-source


non-universal build works. I did unset DYLD_LIBRARY_PATH. And I will update my ticket in a minute, sorry about that.

Homebrew member





It fails for me also with same error as in the updated gist:

$ brew doctor
Your system is raring to brew.

$ brew --config
HEAD: 91276d5208342988704316bd3731a66576161264
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.6
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Homebrew member

Sounds like it's an upstream issue.


It usually is.

Homebrew member

Can you see if you can compile universally outside of Homebrew?


build with

./ --without-icu
./b2 -d2 -j8 --layout=tagged threading=multi install address-model=32_64 architecture=x86 pch=off

failed with same result as brew build


Has this been reported upstream to Boost?


at least i didn't


looks like it has been reported (and patched) at and

Adding the patch to the formula as follows fixes things on 1.53.0

def patches
    # Fix 32-bit OS X bug. See
    # and
    { :p0 =>

(I'm running 10.8.3, but I dont think that should matter here)


That's a great fix! Unfortunately, it is @mikemcquaid's policy to not patch upstream bugs, so we have to wait for Boost to fix it...

Homebrew member

I'm happy to patch upstream bugs if they are actually accepted upstream (in which case you can link to the upstream commit and use that as the patch).

Homebrew member

Doesn't look like it was accepted/fixed upstream as far as I can see?


Sorry, that was a poorly worded comment - it has not. Removed the erroneous comment from the above post

@mistydemeo mistydemeo closed this in 4f1ee3d

I've taken care of this simply by disabling the context library if the build is on PPC, 32-bit, or has a 32-bit slice.

@handyman5 handyman5 pushed a commit to handyman5/homebrew that referenced this issue
@mistydemeo mistydemeo boost: disable context on unsupported archs
Fixes #17646.
@draftycode draftycode added a commit to draftycode/homebrew that referenced this issue
@mistydemeo mistydemeo boost: disable context on unsupported archs
Fixes #17646.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.