Re: [Boost-bugs] [Boost C++ Libraries] #7865: error: unknown target CPU 'i386' for the boost b2 build using architecture=x86 address-model=32

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7865: error: unknown target CPU 'i386' for the boost b2 build using architecture=x86 address-model=32
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-16 22:03:41


#7865: error: unknown target CPU 'i386' for the boost b2 build using
architecture=x86 address-model=32
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: vladimir_prus
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: build
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Changes (by viboes):

  * owner: => vladimir_prus
  * component: None => build


Old description:

> Trying to build boost 1.52 for 32 bit architecture on OS X 10.7.5, using
> clang:
>
> ./b2 toolset=clang cxxflags="-std=c++11 -stdlib=libc++"
> linkflags="-stdlib=libc++" architecture=x86 address-model=32
>
> Get a lot of errors of this type:
>
> "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'

New description:

 Trying to build boost 1.52 for 32 bit architecture on OS X 10.7.5, using
 clang:

 ./b2 toolset=clang cxxflags="-std=c++11 -stdlib=libc++"
 linkflags="-stdlib=libc++" architecture=x86 address-model=32

 Get a lot of errors of this type:


 {{{
     "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'
 }}}

--
-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7865#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC