Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13433: b2 emits strange error message when building 1.66.0 on windows 10 against very new visual studio
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-02-02 18:30:57
#13433: b2 emits strange error message when building 1.66.0 on windows 10 against
very new visual studio
-------------------------------+---------------------------
Reporter: ivandavid14@⦠| Owner: Vladimir Prus
Type: Bugs | Status: new
Milestone: To Be Determined | Component: build
Version: Boost 1.66.0 | Severity: Problem
Resolution: | Keywords: b2 bjam
-------------------------------+---------------------------
Comment (by ivandavid14@â¦):
Hello, after modified the execnt.c a bit more
err_printf("failed to write command file!\n %u\n %s\n",GetLastError(),
cmdtab[ slot ].command_file->value);
The result of the GetLastError() was 32 which is ERROR_SHARING_VIOLATION,
which has the description "The process cannot access the file because it
is being used by another process."
I found that antimalware software (such as windows defender) can cause
fopen to do fail. I observed that small cpp files are usually what cause
the problem (like a lot of the math ones). My assumption is that they
compile very quickly so the time between create a bat file, running it,
then going on to the next one is very small. This creates a lot of bat
files in a short amount of time, potentially triggering the antimalware
software to lock the file or something like that.
I modified my command line by removing '-a' from the b2 call and I wrote a
script to just keep trying to build boost and just continue from where it
left off. Sorry for the rather unsatisfactory answer and I hope I didn't
waste your guys time.
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13433#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2018-02-02 18:36:40 UTC