Boost C++ Libraries: Ticket #7865: error: unknown target CPU 'i386' for the boost b2 build using architecture=x86 address-model=32 https://svn.boost.org/trac10/ticket/7865 <p> Trying to build boost 1.52 for 32 bit architecture on OS X 10.7.5, using clang: </p> <p> ./b2 toolset=clang cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" architecture=x86 address-model=32 </p> <p> Get a lot of errors of this type: </p> <pre class="wiki"> "clang++" -x c++ -O3 -std=c++11 -stdlib=libc++ -O3 -finline-functions -Wno-inline -Wall -march=i386 -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DDATE_TIME_INLINE -DNDEBUG -I"." -c -o "bin.v2/libs/date_time/build/clang-darwin-4.2.1/release/address-model-32/architecture-x86/threading-multi/gregorian/greg_month.o" "libs/date_time/src/gregorian/greg_month.cpp" ...failed clang-darwin.compile.c++ bin.v2/libs/date_time/build/clang-darwin-4.2.1/release/address-model-32/architecture-x86/threading-multi/gregorian/greg_month.o... clang-darwin.compile.c++ bin.v2/libs/date_time/build/clang-darwin-4.2.1/release/address-model-32/architecture-x86/threading-multi/gregorian/greg_weekday.o error: unknown target CPU 'i386' </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7865 Trac 1.4.3 viboes Wed, 16 Jan 2013 22:03:41 GMT component, description changed; owner set https://svn.boost.org/trac10/ticket/7865#comment:1 https://svn.boost.org/trac10/ticket/7865#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">build</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/7865?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket Vladimir Prus Sat, 19 Jan 2013 12:12:04 GMT <link>https://svn.boost.org/trac10/ticket/7865#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7865#comment:2</guid> <description> <p> Does anybody know the right options? And where the old options stopped working? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Wed, 13 Mar 2013 17:27:42 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7865#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7865#comment:3</guid> <description> <p> Maybe adding instruction-set=i686 or instruction-set=native to the command line would fix this? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 15 May 2013 13:38:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7865#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7865#comment:4</guid> <description> <p> It looks like XCode uses the command line argument -arch i386 instead. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 20 May 2013 12:58:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7865#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7865#comment:5</guid> <description> <p> The command line argument -m32 seems to work aswell. </p> </description> <category>Ticket</category> </item> </channel> </rss>