Boost 1.51.0 build fails 32-bit only on Mac OS X Snow Leopard (10.6.8) #15346

Closed
argoneus opened this Issue Oct 8, 2012 · 10 comments

Projects

None yet

4 participants

@argoneus

I'm trying to build the latest boost using

brew install boost

with the following configuration:

HOMEBREW_VERSION: 0.9.3
HEAD: a9810f3
CPU: single-core 32-bit core
OS X: 10.6.8-i386
Xcode: 3.2.6
X11: 2.3.6 => /usr/X11

I get the following summary message:

...failed updating 2 targets...
...skipped 4 targets...
...updated 10653 targets...

the two failed targets are:

...failed Jamfile</private/tmp/boost-hB52/boost_1_51_0/libs/context/build>.gas bin.v2/libs/context/build/darwin-4.2.1/release/address-model-32/architecture-x86/threading-multi/asm/fcontext_i386_sysv_macho_gas.o...
common.mkdir bin.v2/libs/context/build/darwin-4.2.1/release/threading-multi
darwin.compile.c++ bin.v2/libs/context/build/darwin-4.2.1/release/threading-multi/fcontext.o
darwin.compile.c++ bin.v2/libs/context/build/darwin-4.2.1/release/threading-multi/stack_allocator_posix.o
libs/context/src/stack_allocator_posix.cpp: In member function 'void* boost::ctx::stack_allocator::allocate(size_t) const':
libs/context/src/stack_allocator_posix.cpp:61: warning: unused variable 'result'
darwin.compile.c++ bin.v2/libs/context/build/darwin-4.2.1/release/threading-multi/stack_utils_posix.o
libs/context/src/stack_utils_posix.cpp: In function 'rlimit<unnamed>::stacksize_limit_()':
libs/context/src/stack_utils_posix.cpp:27: warning: unused variable 'result'
...skipped <p/usr/local/Cellar/boost/1.51.0/lib>libboost_context-mt.dylib for lack of <pbin.v2/libs/context/build/darwin-4.2.1/release/address-model-32/architecture-x86/threading-multi>asm/fcontext_i386_sysv_macho_gas.o...

and

...failed Jamfile</private/tmp/boost-hB52/boost_1_51_0/libs/context/build>.gas bin.v2/libs/context/build/darwin-4.2.1/release/address-model-32/architecture-x86/link-static/threading-multi/asm/fcontext_i386_sysv_macho_gas.o...
darwin.compile.c++ bin.v2/libs/context/build/darwin-4.2.1/release/link-static/threading-multi/fcontext.o
darwin.compile.c++ bin.v2/libs/context/build/darwin-4.2.1/release/link-static/threading-multi/stack_allocator_posix.o
libs/context/src/stack_allocator_posix.cpp: In member function 'void* boost::ctx::stack_allocator::allocate(size_t) const':
libs/context/src/stack_allocator_posix.cpp:61: warning: unused variable 'result'
darwin.compile.c++ bin.v2/libs/context/build/darwin-4.2.1/release/link-static/threading-multi/stack_utils_posix.o
libs/context/src/stack_utils_posix.cpp: In function 'rlimit<unnamed>::stacksize_limit_()':
libs/context/src/stack_utils_posix.cpp:27: warning: unused variable 'result'
...skipped <pbin.v2/libs/context/build/darwin-4.2.1/release/link-static/threading-multi>libboost_context-mt.a(clean) for lack of <pbin.v2/libs/context/build/darwin-4.2.1/release/address-model-32/architecture-x86/link-static/threading-
...skipped <pbin.v2/libs/context/build/darwin-4.2.1/release/link-static/threading-multi>libboost_context-mt.a for lack of <pbin.v2/libs/context/build/darwin-4.2.1/release/address-model-32/architecture-x86/link-static/threading-multi>a
...skipped <p/usr/local/Cellar/boost/1.51.0/lib>libboost_context-mt.a for lack of <pbin.v2/libs/context/build/darwin-4.2.1/release/link-static/threading-multi>libboost_context-mt.a...
@Sharpie

We can't do an effective diagnosis without full un-truncated install output, configure information and confirmation that brew doctor has found no problems.

Please read the bug fixing checklist and provide all information requested therein.

@argoneus

I've added the complete build output and output from brew doctor: https://gist.github.com/3856513

@Sharpie

Hmmm... I suspect the problem may be related to your 32-bit Core Solo which unfortunately isn't a common processor for a Mac these days.

Try building a universal binary: brew install boost --universal.

@jacknagel

Here's a MacPorts ticket: http://trac.macports.org/ticket/36489 that appears to have a similar build error... perhaps something will come of that.

@argoneus

The universal build worked using brew install boost --universal. Thanks!

@Sharpie

Perhaps this could be solved by adding something like address-model=32 architecture=x86 to the configure args if the machine is not 64 bit capable---no way to test as I don't have a 32-bit intel machine.

@jacknagel

@Sharpie I'll take a look soon-ish.

@jacknagel

I can build the universal variant on 32-bit, but I can't figure out the right combination of options to get the native-only version to build.

@adamv

MacPorts resolved as fixed in 1.52.0, so resolving here as a duplicate of open issue #15871.

@adamv adamv closed this Nov 11, 2012
@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.