Skip to content

Loading…

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

Closed
kevinxucs opened this Issue · 19 comments

6 participants

@mikemcquaid
Homebrew member

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

Did you try that?

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

Please follow all the steps there.

Also, please try non-universal too.

@kevinxucs

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

@mikemcquaid
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

@kevinxucs

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

@mikemcquaid
Homebrew member

Thanks.

@kevinxucs

updated.

@mrjbq7

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

$ brew doctor
Your system is raring to brew.

$ brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 91276d5208342988704316bd3731a66576161264
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.6
CLT: 4.6.0.0.1.1358221012
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
@mikemcquaid
Homebrew member

Sounds like it's an upstream issue.

@mrjbq7

It usually is.

@mikemcquaid
Homebrew member

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

@kevinxucs

build with

./bootstrap.sh --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

@adamv

Has this been reported upstream to Boost?

@kevinxucs

at least i didn't

@dvj

looks like it has been reported (and patched) at https://trac.macports.org/ticket/38298 and https://svn.boost.org/trac/boost/ticket/8266

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

def patches
    # Fix 32-bit OS X bug. See https://svn.boost.org/trac/boost/ticket/8266
    # and https://trac.macports.org/ticket/38298
    { :p0 =>
      'https://trac.macports.org/raw-attachment/ticket/38298/patch-libs-context-130308-0.diff'
    }
end

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

@mrjbq7

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...

@mikemcquaid
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).

@mikemcquaid
Homebrew member

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

@dvj

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

@mistydemeo mistydemeo closed this in 4f1ee3d
@mistydemeo

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.
abc491a
@draftycode draftycode added a commit to draftycode/homebrew that referenced this issue
@mistydemeo mistydemeo boost: disable context on unsupported archs
Fixes #17646.
85eb724
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.