Boost C++ Libraries: Ticket #5957: Boost 1.41.0 can't build on Mac OS X 10.7 https://svn.boost.org/trac10/ticket/5957 <p> I ran into problems when trying to build an older boost library (1.41.0) on the new Mac OS X 10.7 (lion). </p> <p> The boost build process failed in the ./bjam step due to not allowing 10.7 as a known macosx-version: </p> <pre class="wiki">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 &lt;macosx-version&gt; 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 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5957 Trac 1.4.3 irudi@… Thu, 12 Jan 2012 08:05:31 GMT <link>https://svn.boost.org/trac10/ticket/5957#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5957#comment:1</guid> <description> <p> Just add 10.7 to <em>.macosx-versions</em> in <code>boost_1_40_0/tools/build/v2/tools/darwin.jam</code> and it will build fine. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 03 Jan 2013 18:26:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5957#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5957#comment:2</guid> <description> <p> Has this been fixed? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Thu, 03 Jan 2013 18:32:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5957#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5957#comment:3</guid> <description> <p> Have we fixed 1.40? </p> <p> I sincerely doubt it. </p> <p> If I understand this ticket, we should close it as "wont fix". </p> <p> There's a workaround here for patching the 1.40 distro, or the OP can use a more recent release. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 16 Jan 2013 22:31:14 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5957#comment:4 https://svn.boost.org/trac10/ticket/5957#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> Ticket anonymous Thu, 28 Feb 2013 15:34:07 GMT <link>https://svn.boost.org/trac10/ticket/5957#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5957#comment:5</guid> <description> <p> 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": </p> <p> MACOS_SDK="-mmacosx-version-min=10.7 -isysroot <a class="missing wiki">/Applications/Xcode</a>.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"; \ </p> <blockquote> <p> ./b2 toolset=clang cxxflags="-stdlib=libc++ -std=c++11 $MACOS_SDK" linkflags="-stdlib=libc++ $MACOS_SDK" </p> </blockquote> <p> Regards, Zenju </p> </description> <category>Ticket</category> </item> </channel> </rss>