Issue description:
Hi,
Recently, we updated the commit of Cppcheck, and it built failed under msvc x86 mode due to the errors like below. Could you please take a look? Thanks.
F:\gitP\danmar\cppcheck\cli\cppcheckexecutorsig.h : fatal error C1083: <func:#0, mod:f:\gitp\danmar\cppcheck\cli\cppcheckexecutorsig.h=""> Cannot open compiler generated file: 'F:\gitP\danmar\cppcheck\cli\temp\Release_Win32\cppcheckexecutorsig.obj': Permission denied (C:\repos\msvc\src\vctools\Compiler\Utc\src\p2\coff.c:210) [F:\gitP\danmar\cppcheck\cli\cli.vcxproj]
cl : command line error D8040: error creating or communicating with child process [F:\gitP\danmar\cppcheck\cli\cli.vcxproj]</func:#0,>
I don't use windows often so it's not that easy to test this out. but this sounds more like an internal compiler error. it says permission denied for 'F:\gitP\danmar\cppcheck\cli\temp\Release_Win32\cppcheckexecutorsig.obj' can you see if that file is exists and you have permission to access it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Issue description:
Hi,
Recently, we updated the commit of Cppcheck, and it built failed under msvc x86 mode due to the errors like below. Could you please take a look? Thanks.
F:\gitP\danmar\cppcheck\cli\cppcheckexecutorsig.h : fatal error C1083: <func:#0, mod:f:\gitp\danmar\cppcheck\cli\cppcheckexecutorsig.h=""> Cannot open compiler generated file: 'F:\gitP\danmar\cppcheck\cli\temp\Release_Win32\cppcheckexecutorsig.obj': Permission denied (C:\repos\msvc\src\vctools\Compiler\Utc\src\p2\coff.c:210) [F:\gitP\danmar\cppcheck\cli\cli.vcxproj]
cl : command line error D8040: error creating or communicating with child process [F:\gitP\danmar\cppcheck\cli\cli.vcxproj]</func:#0,>
Excepted result:
build successfully.
Repro steps:
1.git clone https://github.com/danmar/cppcheck F:\gitP\danmar\cppcheck
2. cd F:\gitP\danmar\cppcheck
3. msbuild /m /p:Platform=Win32 /p:Configuration=Release cppcheck.sln /t:Rebuild 2>&1
More info:
Windows: windows server 2019
VS: VS2019
The commit of Cppcheck we currently use: 2d37a77, it reported error as above.
I attached a log file.
I don't use windows often so it's not that easy to test this out. but this sounds more like an internal compiler error. it says permission denied for 'F:\gitP\danmar\cppcheck\cli\temp\Release_Win32\cppcheckexecutorsig.obj' can you see if that file is exists and you have permission to access it?