Fatal error C1027 while building Boost 1.49.0
I am trying to build Boost 1.49.0 using MSVC2010 and it fails with the following error:
file bin.v2\libs\math\build\msvc-10.0\release\link-static\runtime-link-static\threading-multi\assoc_laguerre.obj.rsp
"libs\math\build\..\src\tr1\assoc_laguerre.cpp"
-Fo"bin.v2\libs\math\build\msvc-10.0\release\link-static\runtime-link-static\threading-multi\assoc_laguerre.obj"
-Yu"pch.hpp"
-Fp"bin.v2\libs\math\build\msvc-10.0\release\link-static\runtime-link-static\threading-multi\pch.pch"
-TP
/O2
/Ob2
/W3
/GR
/MT
/Zc:forScope
/Zc:wchar_t
/wd4675
/EHs
-c
-DBOOST_ALL_NO_LIB=1
-DBOOST_BUILD_PCH_ENABLED
-DNDEBUG
"-I."
"-Ilibs\math\src\tr1"
compile-c-c++ bin.v2\libs\math\build\msvc-10.0\release\link-static\runtime-link-static\threading-multi\assoc_laguerre.obj
call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo @"bin.v2\libs\math\build\msvc-10.0\release\link-static\runtime-link-static\threading-multi\assoc_laguerre.obj.rsp"
assoc_laguerre.cpp
c1xx : fatal error C1027: Inconsistent values for /Ym between creation and use of precompiled header
This is the first instance of this error, there are 995 instances of the same error in my log file before the build finishes.
Project-config.jam content:
import option ;
using msvc ;
option.set keep-going : false ;
using python : 3.2 : C:\\Tools\\Python\\3.2.2 ;
And the build command I used is:
b2 --toolset=msvc-10.0 --build-type=complete stage -q -d+2 -sICU_PATH="C:\Tools\ICU\4.8.1.1"
Any idea what is causing this?
source to share
The error is explained here , and here is the one who had this problem while creating something else and his solution.
It changed its parameter /Zm
from /Zm1000
to /Zm500
(you have /Zm800
). I don't know if it helps you to change it to the same value, but you can try playing with it (this compiler flag description can be found here ).
You can use the command line argument cxxflags
to change the compiler flags (taken from here ).
source to share