Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,244
    • Issues 3,244
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 14
    • Merge Requests 14
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #18745

Closed
Open
Opened Dec 31, 2018 by Sevastyan Pigarev@theDArk

Cmake does not support llvm-rc on windows

I am trying to get rid of all MSVC-related tools and it fails with rc:

C:\Users\dark\test>cmake -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_LINKER=lld-link -G Ninja -DCMAKE_GENERATOR_RC=llvm-rc -DCMAKE_RC_COMPILER=llvm-rc .
-- The C compiler identification is Clang 7.0.1
-- The CXX compiler identification is Clang 7.0.1
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang-cl.exe
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang-cl.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "C:/Program Files/LLVM/bin/clang-cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/Users/dark/test/CMakeFiles/CMakeTmp

    Run Build Command:"C:/ProgramData/chocolatey/bin/ninja.exe" "cmTC_935b2"
    [1/2] Building C object CMakeFiles\cmTC_935b2.dir\testCCompiler.c.obj
    [2/2] Linking C executable cmTC_935b2.exe
    FAILED: cmTC_935b2.exe
    cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_935b2.dir --manifests  -- C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo CMakeFiles\cmTC_935b2.dir\testCCompiler.c.obj  /out:cmTC_935b2.exe /implib:cmTC_935b2.lib /pdb:cmTC_935b2.pdb /version:0.0  /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
    RC Pass 1: command "rc /foCMakeFiles\cmTC_935b2.dir/manifest.res CMakeFiles\cmTC_935b2.dir/manifest.rc" failed (exit code 0) with the following output:
    The system cannot find the file specified
    ninja: build stopped: subcommand failed.




  CMake will not be able to correctly generate this project.


-- Configuring incomplete, errors occurred!
See also "C:/Users/dark/test/CMakeFiles/CMakeOutput.log".
See also "C:/Users/dark/test/CMakeFiles/CMakeError.log".

Cmake seem to completely ignore the command line

Edited Dec 31, 2018 by Craig Scott
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
3.14.0
Milestone
3.14.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: cmake/cmake#18745