http://llvm.org/bugs/show_bug.cgi?id=20435

            Bug ID: 20435
           Summary: CMake: native llvm-tblgen: Endless reconfigure-loop in
                    parallel build
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

If calling cmake with "-DCMAKE_SYSTEM_NAME=Linux" (compiling in cross-mode
[1]), the "native llvm-tblgen" will be created. This will cause endless rerun
of the cmake-target for "ConfigureNativeTableGen" when compiling in parallel
build. The dependencies of later targets depending on the TableGen are not set
correctly?

Reproduce:
    cmake -DCMAKE_SYSTEM_NAME=Linux ../path/to/CMakeLists.txt
    make -j9
    ...endless-loop, finally build error...
Workaround:
    build single-threaded


Tested: "release_34", "release_33" and "master"

[1] CMake is setting "CMAKE_CROSSCOMPILING" to "True" if the CMAKE_SYSTEM_NAME
is set. Your CMakeLists then checks this Variable and creates the native
TableGen. 

->
https://github.com/Kitware/CMake/blob/master/Modules/CMakeDetermineSystem.cmake#L115

Greetings

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to