Menu

[MSVC] Cppcheck build failed under msvc x86 mode due to error C1083 .error D8040

2022-10-09
2022-11-05
  • gongtongtong

    gongtongtong - 2022-10-09

    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.

     
  • Daniel Marjamäki

    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?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.