#5957 closed Bugs (wontfix)
Boost 1.41.0 can't build on Mac OS X 10.7
Reported by: | Owned by: | ||
---|---|---|---|
Milestone: | To Be Determined | Component: | Building Boost |
Version: | Boost 1.41.0 | Severity: | Problem |
Keywords: | Cc: |
Description
I ran into problems when trying to build an older boost library (1.41.0) on the new Mac OS X 10.7 (lion).
The boost build process failed in the ./bjam step due to not allowing 10.7 as a known macosx-version:
sarah $ ./bootstrap.sh --prefix=/Users/sarah/myboost1.41 sarah $ ./bjam /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/build/feature.jam:483: in feature.validate-value-string from module feature error: "10.7" is not a known value of feature <macosx-version> error: legal values: "10.6" "10.5" "10.4" "10.3" "10.2" "10.1" "iphone-3.2" "iphonesim-3.2" "iphone-3.1.2" "iphonesim-3.1.2" "iphone-3.1" "iphonesim-3.1" "iphone-3.0" "iphonesim-3.0" "iphone-2.2.1" "iphonesim-2.2.1" "iphone-2.2" "iphonesim-2.2" "iphone-2.1" "iphonesim-2.1" "iphone-2.0" "iphonesim-2.0" "iphone-1.x" /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/build /property.jam:276: in validate1 from module property /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/build/property.jam:301: in validate from module property /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/build/property.jam:310: in property.validate-property-sets from module property /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/build/toolset.jam:151: in flags from module toolset /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/tools/darwin.jam:266: in init-available-sdk-versions from module darwin /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/tools/darwin.jam:209: in darwin.init from module darwin /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/build/toolset.jam:38: in toolset.using from module toolset /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/build/project.jam:884: in using from module project-config project-config.jam:12: in modules.load from module project-config /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/build-system.jam:241: in load-config from module build-system /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/build-system.jam:407: in load-configuration-files from module build-system /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/build-system.jam:538: in load from module build-system /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/kernel /modules.jam:283: in import from module modules /Users/sarah/myboost1.41/boost_1_41_0/tools/build/v2/kernel/bootstrap.jam:142: in boost-build from module /Users/sarah/myboost1.41/boost_1_41_0/boost-build.jam:17: in module scope from module
Change History (5)
comment:1 by , 11 years ago
comment:3 by , 10 years ago
Have we fixed 1.40?
I sincerely doubt it.
If I understand this ticket, we should close it as "wont fix".
There's a workaround here for patching the 1.40 distro, or the OP can use a more recent release.
comment:4 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:5 by , 10 years ago
Dont forget Clang! :) I just saw that "toolset=clang" knows of neither paramters "mmacosx-version-min" nor "mmacosx-version". So I have to manually set the compiler flags in boost 1.53 when starting "b2":
MACOS_SDK="-mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"; \
./b2 toolset=clang cxxflags="-stdlib=libc++ -std=c++11 $MACOS_SDK" linkflags="-stdlib=libc++ $MACOS_SDK"
Regards, Zenju
Just add 10.7 to .macosx-versions in
boost_1_40_0/tools/build/v2/tools/darwin.jam
and it will build fine.