Subject: [Boost-build] Problems with -j option on Windows
From: Kirit SÃ¦lensminde (kirit.saelensminde_at_[hidden])
Date: 2008-10-18 08:58:18
I'm seeing some odd behaviour building on Windows that I don't notice
using Linux. Basically I set the -j option on bjam to 2 as I have 2
processors and want faster builds. I get random errors with files being
in use or builds not succeeding with other errors. If I re-run the build
command then these clear up -- I can just keep redoing the same build
command until it succeeds.
I don't *think* I'm doing anything too stupid.
-- The build command that I use is: bjam -j2 debug --toolset=msvc (I've built bjam from the Boost 1.36 tag in the Subversion repo and I'm using its Boost.Build files.) My Jamroot looks like this: project : requirements <include>../Boost/install/include/boost-1_36/ <include>../OpenSSL/install/include/ <threading>multi <runtime-link>shared <exception-handling>on <asynch-exceptions>on <extern-c-nothrow>off <target-os>windows:<define>WIN32 <target-os>windows:<define>_AFXDLL <target-os>windows:<define>UNICODE <target-os>windows:<define>_UNICODE : default-build debug : build-dir build.tmp ; build-project Cpp/fost-ftest/ ; build-project Cpp/fost-core-test/ ; build-project Cpp/fost-crypto-test/ ; And one of the Jamfiles like this: lib fost-core : ../../../libs//dload ../../../libs//uuid ../../../Boost//boost-date_time-dll ../../../Boost//boost-thread-dll ../../../Boost//boost-regex-dll coerce.cpp dynlib.cpp exception.cpp json.cpp json-coerce.cpp json-parse.cpp json-unparse.cpp setting.cpp string.cpp string-utilities.cpp thread.cpp unicode.cpp variant.cpp variant-coerce.cpp : <include>../include : ;
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk