[cfe-dev] VS10 & Parallel Builds?

Daniel Dunbar daniel at zuster.org
Tue Sep 7 16:44:03 PDT 2010


Hi,

Has anyone tried using msbuild and the CMake generated project files
to do parallel builds?

I ask because I see spurious failures when doing so. MSBuild ends up
complaining about not being able to write the log files for the custom
builds steps, because they are already in use.

I suspect this is a CMake or MSBuild bug, but I don't know enough to
track it down. Does anyone else have any hints?

Here is an example of the kind of failures I see:
--
Build FAILED.

       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\LLVM.sln"
(default target) (1) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\.\ALL_BUILD.vcxproj.metaproj"
(default target) (2) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\lib\Target\X86\AsmParser\LLVMX86AsmParser.vcxproj.metaproj"
(default target) (29) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\lib\Target\X86\LLVMX86CodeGen.vcxproj.metaproj"
(default target) (30) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\lib\Target\X86\LLVMX86CodeGen.vcxproj"
(default target) (168) ->
       (ClCompile target) ->
         C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\lib\Target\X86\X86GenRegisterInfo.inc(4360):
warning C4065: switch statement contains 'default' but no 'case'
labels [C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\lib\Target\X86\LLVMX86CodeGen.vcxproj]


       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\LLVM.sln"
(default target) (1) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\.\ALL_BUILD.vcxproj.metaproj"
(default target) (2) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\tools\c-index-test\c-index-test.vcxproj.metaproj"
(default target) (40) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\tools\libclang\libclang.vcxproj.metaproj"
(default target) (41) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\lib\Frontend\clangFrontend.vcxproj.metaproj"
(default target) (42) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\include\clang\AST\ClangDeclNodes.vcxproj.metaproj"
(default target) (45) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\include\clang\AST\ClangDeclNodes.vcxproj"
(default target) (121) ->
       (CustomBuild target) ->
         C:\Program
Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5):
error MSB6003: The specified task executable "cmd.exe" could not be
run. The process cannot access the file
'C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\include\clang\AST\Release\custombuild.write.1.tlog'
because it is being used by another process.
[C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\include\clang\AST\ClangDeclNodes.vcxproj]


       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\LLVM.sln"
(default target) (1) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\.\ALL_BUILD.vcxproj.metaproj"
(default target) (2) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\tools\c-index-test\c-index-test.vcxproj.metaproj"
(default target) (40) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\tools\libclang\libclang.vcxproj.metaproj"
(default target) (41) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\lib\Frontend\clangFrontend.vcxproj.metaproj"
(default target) (42) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\include\clang\Basic\ClangDiagnosticLex.vcxproj.metaproj"
(default target) (48) ->
       "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\include\clang\Basic\ClangDiagnosticLex.vcxproj"
(default target) (119) ->
         C:\Program
Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5):
error MSB6003: The specified task executable "cmd.exe" could not be
run. The process cannot access the file
'C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\include\clang\Basic\Release\custombuild.write.1.tlog'
because it is being used by another process.
[C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-msvc9-rewriter\clang.obj\tools\clang\include\clang\Basic\ClangDiagnosticLex.vcxproj]

    1 Warning(s)
    2 Error(s)
--

Cheers,
 - Daniel



More information about the cfe-dev mailing list