|
Boost-Build : |
Subject: Re: [Boost-build] Problems with -j option on Windows
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-10-20 07:12:31
On Monday 20 October 2008 09:08:03 Kirit Sælensminde wrote:
> 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"
This is exactly the error that SVN version of Boost.Jam is supposed to fix.
- Volodya
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