Boost logo

Boost-Build :

Subject: Re: [Boost-build] Problems with -j option on Windows
From: Kirit Sælensminde (kirit.saelensminde_at_[hidden])
Date: 2008-10-20 01:08:03


Vladimir Prus wrote:
> On Saturday 18 October 2008 16:58:18 Kirit Sælensminde wrote:
>> 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.
>
> So, you basically did not give the exact error message you get.

Yes, sorry. I didn't have my VM running so couldn't do a build. There's
an example at the end of this post. Again, just re-running the build
command cleared it up. It seems to do some extraneous copies into the
install location, but I'm not too bothered about that -- it doesn't
appear to do any harm.

>> (I've built bjam from the Boost 1.36 tag in the Subversion repo and I'm
>> using its Boost.Build files.)
>
> Please try Boost.Jam from SVN trunk -- it has a fix for some -j issue that
> specifically affected building shared libraries on Windows/msvc. You don't
> have to get Boost.Build from SVN -- only Boost.Jam.

I'm d/ling trunk now. Will build bjam from there and try that.

Thanks Vladimir

K

C:\Dev\linux\fost>bjam -j2 debug --toolset=msvc
...patience...
...found 1485 targets...
...updating 19 targets...
common.copy ..\dist\bin\fost-core.dll
         1 file(s) copied.
common.copy ..\dist\bin\fost-core.lib
         1 file(s) copied.
common.copy ..\dist\bin\fost-cli.dll
         1 file(s) copied.
common.copy ..\dist\bin\fost-cli.lib
         1 file(s) copied.
common.copy ..\dist\bin\fost-test.dll
The system cannot find the file specified.

     copy
"build.tmp\Cpp\fost-test\msvc-8.0\debug\asynch-exceptions-on\threading-multi\fost-test.dll"
"..\dist\bin\fost-test.dll"

...failed common.copy ..\dist\bin\fost-test.dll...
...removing ..\dist\bin\fost-test.dll
common.copy ..\dist\bin\fost-crypto.lib
         1 file(s) copied.
msvc.link.dll
build.tmp\Cpp\fost-test\msvc-8.0\debug\asynch-exceptions-on\threading-multi\fost-test.dll
    Creating library
build.tmp\Cpp\fost-test\msvc-8.0\debug\asynch-exceptions-on\threading-multi\fost-test.lib
and object build.tmp
\Cpp\fost-test\msvc-8.0\debug\asynch-exceptions-on\threading-multi\fost-test.exp
common.copy ..\dist\bin\fost-test.lib
         1 file(s) copied.
msvc.link
build.tmp\Cpp\fost-ftest\msvc-8.0\debug\asynch-exceptions-on\threading-multi\ftest.exe
common.copy ..\dist\bin\ftest.exe
         1 file(s) copied.
msvc.link.dll
build.tmp\Cpp\fost-crypto-test\msvc-8.0\debug\asynch-exceptions-on\threading-multi\fost-crypto-test-smoke.dll
    Creating library
build.tmp\Cpp\fost-crypto-test\msvc-8.0\debug\asynch-exceptions-on\threading-multi\fost-crypto-test-smoke.lib
and object
build.tmp\Cpp\fost-crypto-test\msvc-8.0\debug\asynch-exceptions-on\threading-multi\fost-crypto-test-smoke.exp
common.copy ..\dist\bin\fost-crypto-test-smoke.dll
         1 file(s) copied.
common.copy ..\dist\bin\fost-crypto-test-smoke.lib
         1 file(s) copied.
msvc.link.dll
build.tmp\Cpp\fost-core-test\msvc-8.0\debug\asynch-exceptions-on\threading-multi\fost-core-test-smoke.dll
    Creating library
build.tmp\Cpp\fost-core-test\msvc-8.0\debug\asynch-exceptions-on\threading-multi\fost-core-test-smoke.lib
and
object
build.tmp\Cpp\fost-core-test\msvc-8.0\debug\asynch-exceptions-on\threading-multi\fost-core-test-smoke.exp
common.copy ..\dist\bin\fost-core-test-smoke.dll
         1 file(s) copied.
common.copy ..\dist\bin\fost-core-test-smoke.lib
         1 file(s) copied.
...failed updating 1 target...
...updated 18 targets...

C:\Dev\linux\fost>bjam -j2 debug --toolset=msvc
...patience...
...found 1485 targets...
...updating 7 targets...
common.copy ..\dist\bin\fost-core.lib
         1 file(s) copied.
common.copy ..\dist\bin\fost-cli.lib
         1 file(s) copied.
common.copy ..\dist\bin\fost-test.dll
         1 file(s) copied.
common.copy ..\dist\bin\fost-core-test-smoke.lib
         1 file(s) copied.
common.copy ..\dist\bin\fost-test.lib
         1 file(s) copied.
common.copy ..\dist\bin\fost-crypto.lib
         1 file(s) copied.
common.copy ..\dist\bin\fost-crypto-test-smoke.lib
         1 file(s) copied.
...updated 7 targets...


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