boost 1.40 build error with VC++ 2008

Hi All, I encounter build error on Windows XP system when building with Visual Studio 2008 Profession (with Feature Pack, without SP1). Here is the trimmed output on my console window. Does someone know what is wrong here? I just run two commands "bootstrap.bat" and then ".\bjam" to build the library. Thanks a lot for your help. Setting environment for using Microsoft Visual Studio 2008 x86 tools. C:\>cd /d d:\opensource\boost_1_40_0 D:\opensource\boost_1_40_0>bootstrap.bat Building Boost.Jam build engine The system cannot find the file specified. Bootstrapping is done. To build, run: .\bjam D:\opensource\boost_1_40_0>.\bjam Building the Boost C++ Libraries. After the build, the headers will be located at D:\opensource\boost_1_40_0 The libraries will be located at D:\opensource\boost_1_40_0\stage\lib Use 'bjam install --prefix=<path>' if you wish to install headers and libraries to a different location and remove the source tree. warning: Building Boost.Regex with the optional Unicode/ICU support disabled. note: Please refer to the Boost.Regex documentation for more information note: this is a strictly optional feature. warning: Graph library does not contain optional GraphML reader. note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the note: directories containing the Expat headers and libraries, respectively. warning: Graph library does not contain MPI-based parallel components. note: to enable them, add "using mpi ;" to your user-config.jam warning: skipping optional Message Passing Interface (MPI) library. note: to enable MPI support, add "using mpi ;" to user-config.jam. note: to suppress this message, pass "--without-mpi" to bjam. note: otherwise, you can safely ignore this message. ...patience... ...patience... ...patience... ...found 6570 targets... ...updating 824 targets... common.mkdir stage ... common.mkdir bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi compile-c-c++-pch bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch cl : Command line error D8022 : cannot open 'bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch.rsp' call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch.rsp" "bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch.cpp" ...failed compile-c-c++-pch bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.obj... ...skipped <pbin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi>ellint_1f.obj for lack of <pbin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi>pch.pch... ...skipped <pstage\lib>libboost_math_tr1f-vc90-mt-gd-1_40.lib for lack of <pbin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi>libboost_math_tr1f-vc90-mt-gd-1_40.lib... common.mkdir bin.v2\libs\math\config common.mkdir bin.v2\libs\math\config\msvc-9.0 common.mkdir bin.v2\libs\math\config\msvc-9.0\debug common.mkdir bin.v2\libs\math\config\msvc-9.0\debug\link-static common.mkdir bin.v2\libs\math\config\msvc-9.0\debug\link-static\threading-multi compile-c-c++ bin.v2\libs\math\config\msvc-9.0\debug\link-static\threading-multi\has_long_double_support.obj cl : Command line error D8022 : cannot open 'bin.v2\libs\math\config\msvc-9.0\debug\link-static\threading-multi\has_long_double_support.obj.rsp' call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\math\config\msvc-9.0\debug\link-static\threading-multi\has_long_double_support.obj.rsp" ...failed compile-c-c++ bin.v2\libs\math\config\msvc-9.0\debug\link-static\threading-multi\has_long_double_support.obj... ...skipped <pbin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi>assoc_laguerrel.obj for lack of <pbin.v2\libs\math\config\msvc-9.0\debug\link-static\threading-multi>has_long_double_support.obj... call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\serialization\build\msvc-9.0\debug\link-static\threading-multi\extended_type_info.obj.rsp" ...failed compile-c-c++ bin.v2\libs\serialization\build\msvc-9.0\debug\link-static\threading-multi\extended_type_info.obj... ...interrupted compile-c-c++ bin.v2\libs\serialization\build\msvc-9.0\debug\link-static\threading-multi\extended_type_info_typeid.obj cl : Command line error D8022 : cannot open 'bin.v2\libs\serialization\build\msvc-9.0\debug\link-static\threading-multi\extended_type_info_typeid.obj.rsp' ...failed updating 55 targets... ...skipped 119 targets... ...updated 35 targets... D:\opensource\boost_1_40_0>

Newsuser wrote:
Hi All,
I encounter build error on Windows XP system when building with Visual Studio 2008 Profession (with Feature Pack, without SP1). Here is the trimmed output on my console window. Does someone know what is wrong here? I just run two commands "bootstrap.bat" and then ".\bjam" to build the library. Thanks a lot for your help.
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
C:\>cd /d d:\opensource\boost_1_40_0
D:\opensource\boost_1_40_0>bootstrap.bat Building Boost.Jam build engine The system cannot find the file specified.
Bootstrapping is done. To build, run:
.\bjam
D:\opensource\boost_1_40_0>.\bjam
Building the Boost C++ Libraries.
After the build, the headers will be located at
D:\opensource\boost_1_40_0
The libraries will be located at
D:\opensource\boost_1_40_0\stage\lib
Use 'bjam install --prefix=<path>' if you wish to install headers and libraries to a different location and remove the source tree.
warning: Building Boost.Regex with the optional Unicode/ICU support disabled. note: Please refer to the Boost.Regex documentation for more information note: this is a strictly optional feature. warning: Graph library does not contain optional GraphML reader. note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the note: directories containing the Expat headers and libraries, respectively. warning: Graph library does not contain MPI-based parallel components. note: to enable them, add "using mpi ;" to your user-config.jam warning: skipping optional Message Passing Interface (MPI) library. note: to enable MPI support, add "using mpi ;" to user-config.jam. note: to suppress this message, pass "--without-mpi" to bjam. note: otherwise, you can safely ignore this message. ...patience... ...patience... ...patience... ...found 6570 targets... ...updating 824 targets... common.mkdir stage ... common.mkdir bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi compile-c-c++-pch bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch cl : Command line error D8022 : cannot open 'bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch.rsp'
call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 >nul cl /Zm800 -nologo @"bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch.rsp" "bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch.cpp"
This is strange. Is there actually such file? Do you have "bjam" in boost root directory? What is the output of ".\bjam --version"? - Volodya

Hi Volodya, Yes, there is bjam.exe in the root folder. D:\boost_1_40_0>.\bjam --version Boost.Build V2 (Milestone 12) Boost.Jam 03.1.17 I can find this file - 'bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch.rsp' on disk. I also tried to move boost one level up to make the path a little bit shorter, but it reports the same error. Build a single library also reports such error. D:\boost_1_40_0>bjam toolset=msvc --with-math --build-type=complete stage Here is the file on my disk, although bjam complains cann't open. -Fo"bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.obj" -Yc"pch.hpp" -Yl"__bjam_pch_symbol_pch.hpp" -Fp"bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch" -TP /Z7 /Od /Ob0 /W3 /GR/MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs -c-DBOOST_ALL_NO_LIB=1-DBOOST_BUILD_PCH_ENABLED"-I.""-Ilibs\math\src\tr1"Btw, I can build boost 1.35 and 1.39 on my machine.Any other suggestion?--------------------------------------------------From: "Vladimir Prus" <vladimir@codesourcery.com>Sent: Wednesday, September 30, 2009 1:15 PMTo: <boost-users@lists.boost.org>Subject: Re: [Boost-users] boost 1.40 build error with VC++ 2008> Newsuser wrote:>>> Hi All,>>>> I encounter build error on Windows XP system when building with VisualStudio 2008 Profession>> (with Feature Pack, without SP1). Here is the trimmed output on myconsole window. Does someone>> know what is wrong here? I just run two commands "bootstrap.bat" and then".\bjam" to build the>> library. Thanks a lot for your help.>>>>>> Setting environment for using Microsoft Visual Studio 2008 x86 tools.>>>> C:\>cd /d d:\opensource\boost_1_40_0>>>> D:\opensource\boost_1_40_0>bootstrap.bat>> Building Boost.Jam build engine>> The system cannot find the file specified.>>>> Bootstrapping is done. To build, run:>>>> .\bjam>>>> D:\opensource\boost_1_40_0>.\bjam>>>> Building the Boost C++ Libraries.>> ...patience...>> ...found 6570 targets...>> ...updating 824 targets...>> common.mkdir stage>> ...>> compile-c-c++-pchbin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch>> cl : Command line error D8022 : cannot open>>'bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch.rsp'>>>> call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"x86 >nul>> cl /Zm800 -nologo@"bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch.rsp">>"bin.v2\libs\math\build\msvc-9.0\debug\link-static\threading-multi\pch.pch.cpp">> This is strange. Is there actually such file? Do you have "bjam" in boostroot directory?> What is the output of ".\bjam --version"?>> - Volodya>>> _______________________________________________> Boost-users mailing list> Boost-users@lists.boost.org> http://lists.boost.org/mailman/listinfo.cgi/boost-users>
participants (2)
-
Newsuser
-
Vladimir Prus