LLVM problem on Windows
I have problem with build even simple hello world program in CLion configurred with LLVM.Mysettings:
Error:
CMake Error at C:/Users/marci/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/cmake/win/x64/share/cmake-3.25/Modules/CMakeTestCCompiler.cmake:70 (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: D:/projects/untitled123321/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-gxi5gc
Run Build Command(s):C:/Users/marci/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/ninja/win/x64/ninja.exe cmTC_e087d && [1/2] Building C object CMakeFiles\cmTC_e087d.dir\testCCompiler.c.obj
[2/2] Linking C executable cmTC_e087d.exe
FAILED: cmTC_e087d.exe
cmd.exe /C "cd . && C:\Users\marci\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\231.9011.31\bin\cmake\win\x64\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_e087d.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\mt.exe --manifests -- C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo CMakeFiles\cmTC_e087d.dir\testCCompiler.c.obj /out:cmTC_e087d.exe /implib:cmTC_e087d.lib /pdb:cmTC_e087d.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 ."
LINK Pass 1: command "C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo CMakeFiles\cmTC_e087d.dir\testCCompiler.c.obj /out:cmTC_e087d.exe /implib:cmTC_e087d.lib /pdb:cmTC_e087d.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 /MANIFEST /MANIFESTFILE:CMakeFiles\cmTC_e087d.dir/intermediate.manifest CMakeFiles\cmTC_e087d.dir/manifest.res" failed (exit code 1) with the following output:
lld-link: error: undefined symbol: __guard_eh_cont_table
>>> referenced by msvcrtd.lib(loadcfg.obj):(_load_config_used)
lld-link: error: undefined symbol: __guard_eh_cont_count
>>> referenced by msvcrtd.lib(loadcfg.obj):(_load_config_used)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "D:/projects/untitled123321/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "D:/projects/untitled123321/cmake-build-debug/CMakeFiles/CMakeError.log".
[Finished]
There is any solution for this problem?
Please sign in to leave a comment.
Hello!
Does it help if you set "Architecture" to "amd64"?