[boost] [1.34.0] failed to build on VS2003

Hi all: I catch a build error on build boost_1_34_0. I used bjam to build the libs: bjam -sTOOLS=vc-7_1 stage My PC si IBM ThinkPad R40e, and I install the window XP(SP2,englis version,I used the China PRC as the default Language) as OS.I used Microsoft Visual Studio .NET 2003 as the build environment. On my PC, I install the python 2.5. I copy the information follow when I get the error: ------------------------------------------------------------------------ D:\STLDIR\boost_1_34_0>bjam -sTOOLS=vc-7_1 stage Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more information (don't panic: this is a strictly optional feature). warning: No toolsets are configured. warning: Configuring default toolset "msvc". warning: If the default is wrong, you may not be able to build C++ programs. warning: Use the "--toolset=xxxxx" option to override our guess. warning: For more configuration options, please consult warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html ...patience... ...patience... ...found 5787 targets... ...updating 944 targets... compile-c-c++ bin.v2\libs\graph\build\msvc-7.1\debug\threading-multi\read_graphv iz_spirit.obj read_graphviz_spirit.cpp boost\config.hpp(0) : fatal error C1084: 无法读取包含文件:“d:\stldir\boost_1_34 _0\boost\config.hpp”: Invalid argument call "d:\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul cl /Zm800 -nologo @"bin.v2\libs\graph\build\msvc-7.1\debug\threading-multi\read_ graphviz_spirit.obj.rsp" ...failed compile-c-c++ bin.v2\libs\graph\build\msvc-7.1\debug\threading-multi\r ead_graphviz_spirit.obj... ...skipped <pbin.v2\libs\graph\build\msvc-7.1\debug\threading-multi>boost_graph- vc71-mt-gd-1_34.dll for lack of <pbin.v2\libs\graph\build\msvc-7.1\debug\threadi ng-multi>read_graphviz_spirit.obj... ...skipped <pstage\lib>boost_graph-vc71-mt-gd-1_34.dll for lack of <pbin.v2\libs \graph\build\msvc-7.1\debug\threading-multi>boost_graph-vc71-mt-gd-1_34.dll... ...skipped <pbin.v2\libs\graph\build\msvc-7.1\debug\threading-multi>boost_graph- vc71-mt-gd-1_34.lib for lack of <pbin.v2\libs\graph\build\msvc-7.1\debug\threadi ng-multi>read_graphviz_spirit.obj... ...skipped <pstage\lib>boost_graph-vc71-mt-gd-1_34.lib for lack of <pbin.v2\libs \graph\build\msvc-7.1\debug\threading-multi>boost_graph-vc71-mt-gd-1_34.lib... ...skipped <pstage\lib>boost_graph-vc71-mt-gd.lib for lack of <pstage\lib>boost_ graph-vc71-mt-gd-1_34.lib... compile-c-c++ bin.v2\libs\graph\build\msvc-7.1\release\threading-multi\read_grap hviz_spirit.obj ------------------------------------------------------------------------ Then a get a pop up message box: Microsoft Visual C++ Runtime Library Buffer overrun detected! Program:…crosoft Visual studio.NET 2003\VC7\BIN\cl.exe A buffer overrun has been detected which has corrupted the program’s internal state. The program cannot safely continue execution and must now be terminated. OK Iyou can see the picture with the url:http://p.blog.csdn.net/images/p_blog_csdn_net/nscboy/302890/o_boost_build_er... nscboy (郭晨) E-mail: nscboy@tom.com

郭晨 wrote:
Hi all: I catch a build error on build boost_1_34_0. I used bjam to build the libs: bjam -sTOOLS=vc-7_1 stage My PC si IBM ThinkPad R40e, and I install the window XP(SP2,englis version,I used the China PRC as the default Language) as OS.I used Microsoft Visual Studio .NET 2003 as the build environment. On my PC, I install the python 2.5. I copy the information follow when I get the error:
------------------------------------------------------------------------ D:\STLDIR\boost_1_34_0>bjam -sTOOLS=vc-7_1 stage
For starts, you are using the old commandline format. BBv2 conventions are different. Open the index.htm in the root directory and follow the "Getting Started Guide" link. Your command should look more like this: bjam --build-dir=%TEMP%\build-boost --toolset=msvc stage Regards - -- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com

Hello, I tried to install boost-1.34 on HP/UX 11.11 with gcc-4.1.0. I get only static libraries installed - shared libraries are missing. It seams that the creation shared libraries is not set as default. bjam --prefix=/opt/boost --toolset=gcc --link=shared install Doesn't work. Oliver

Oliver.Kowalke@qimonda.com wrote:
Hello, I tried to install boost-1.34 on HP/UX 11.11 with gcc-4.1.0. I get only static libraries installed - shared libraries are missing. It seams that the creation shared libraries is not set as default.
bjam --prefix=/opt/boost --toolset=gcc --link=shared install
Doesn't work.
Oliver _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Oliver - By chance, does this work? bjam --prefix=/opt/boost --toolset=gcc link=shared install michael -- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com

Hello,
Oliver.Kowalke@qimonda.com wrote:
Hello, I tried to install boost-1.34 on HP/UX 11.11 with gcc-4.1.0. I get only static libraries installed - shared libraries
are missing.
It seams that the creation shared libraries is not set as default.
bjam --prefix=/opt/boost --toolset=gcc --link=shared install
Doesn't work.
Oliver
Oliver -
By chance, does this work?
bjam --prefix=/opt/boost --toolset=gcc link=shared install
michael
No it doesn't work (bjam --prefix=/opt/boost --toolset=gcc --with-thread link=shared install): ...failed gcc.link.dll bin.v2/libs/thread/build/gcc-4.1.0/debug/threading-multi/libboost_thread -gcc41-mt-d-1_34.so.1.34.0... ...skipped <p/opt/boost/lib>libboost_thread-gcc41-mt-d-1_34.so.1.34.0 for lack of <pbin.v2/libs/thread/build/gcc-4.1.0/debug/threading-multi>libboost_thre ad-gcc41-mt-d-1_34.so.1.34.0... ...skipped <p/opt/boost/lib>libboost_thread-gcc41-mt-d.so for lack of <p/opt/boost/lib>libboost_thread-gcc41-mt-d-1_34.so.1.34.0... gcc.link.dll bin.v2/libs/thread/build/gcc-4.1.0/release/threading-multi/libboost_thre ad-gcc41-mt-1_34.so.1.34.0 /usr/ccs/bin/ld: Unrecognized argument: --start-group /usr/ccs/bin/ld: Usage: /usr/ccs/bin/ld [options] [flags] files collect2: ld returned 1 exit status Oliver

Oliver.Kowalke@qimonda.com wrote:
Hello,
Oliver.Kowalke@qimonda.com wrote:
Hello, I tried to install boost-1.34 on HP/UX 11.11 with gcc-4.1.0. I get only static libraries installed - shared libraries
are missing.
It seams that the creation shared libraries is not set as default.
bjam --prefix=/opt/boost --toolset=gcc --link=shared install
Doesn't work.
Oliver
Oliver -
By chance, does this work?
bjam --prefix=/opt/boost --toolset=gcc link=shared install
michael
No it doesn't work (bjam --prefix=/opt/boost --toolset=gcc --with-thread link=shared install):
...failed gcc.link.dll bin.v2/libs/thread/build/gcc-4.1.0/debug/threading-multi/libboost_thread -gcc41-mt-d-1_34.so.1.34.0... ...skipped <p/opt/boost/lib>libboost_thread-gcc41-mt-d-1_34.so.1.34.0 for lack of <pbin.v2/libs/thread/build/gcc-4.1.0/debug/threading-multi>libboost_thre ad-gcc41-mt-d-1_34.so.1.34.0... ...skipped <p/opt/boost/lib>libboost_thread-gcc41-mt-d.so for lack of <p/opt/boost/lib>libboost_thread-gcc41-mt-d-1_34.so.1.34.0...
OK, so the building tries to work, the problem is...
gcc.link.dll bin.v2/libs/thread/build/gcc-4.1.0/release/threading-multi/libboost_thre ad-gcc41-mt-1_34.so.1.34.0 /usr/ccs/bin/ld: Unrecognized argument: --start-group /usr/ccs/bin/ld: Usage: /usr/ccs/bin/ld [options] [flags] files
That the gcc toolset in Boost.Build, afaict, doesn't have handling for linker. It shouldn't be hard to add such support, as we already handle a few other linkers.
participants (4)
-
Michael Caisse
-
Oliver.Kowalke@qimonda.com
-
Rene Rivera
-
郭晨