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
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"
participants (2)
-
Newsuser
-
Vladimir Prus