CLion + MinGW Test CMake run finished with errors
HoussamTM10
Messages postés
2
Statut
Membre
-
HoussamTM10 Messages postés 2 Statut Membre -
HoussamTM10 Messages postés 2 Statut Membre -
Hi
I've installed MinGW and added to enviroment but when I run CLion I have this error...;

-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2019.3.2/bin/cmake/win/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/invité1/AppData/Local/Temp/cmake_check_environment1/_build3824656907337829351/CMakeFiles/CMakeTmp
Run Build Command(s):C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe cmTC_3c8fe/fast && C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_3c8fe.dir\build.make CMakeFiles/cmTC_3c8fe.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/invitÚ1/AppData/Local/Temp/cmake_check_environment1/_build3824656907337829351/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3c8fe.dir/testCCompiler.c.obj
C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -o CMakeFiles\cmTC_3c8fe.dir\testCCompiler.c.obj -c C:\Users\invit├®1\AppData\Local\Temp\cmake_check_environment1\_build3824656907337829351\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error: C:\Users\invit├®1\AppData\Local\Temp\cmake_check_environment1\_build3824656907337829351\CMakeFiles\CMakeTmp\testCCompiler.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
mingw32-make.exe[1]: *** [CMakeFiles\cmTC_3c8fe.dir\build.make:65: CMakeFiles/cmTC_3c8fe.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/invitÚ1/AppData/Local/Temp/cmake_check_environment1/_build3824656907337829351/CMakeFiles/CMakeTmp'
mingw32-make.exe: *** [Makefile:120: cmTC_3c8fe/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/invité1/AppData/Local/Temp/cmake_check_environment1/_build3824656907337829351/CMakeFiles/CMakeOutput.log".
See also "C:/Users/invité1/AppData/Local/Temp/cmake_check_environment1/_build3824656907337829351/CMakeFiles/CMakeError.log".
Error code: 1
I've installed MinGW and added to enviroment but when I run CLion I have this error...;
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2019.3.2/bin/cmake/win/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/invité1/AppData/Local/Temp/cmake_check_environment1/_build3824656907337829351/CMakeFiles/CMakeTmp
Run Build Command(s):C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe cmTC_3c8fe/fast && C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_3c8fe.dir\build.make CMakeFiles/cmTC_3c8fe.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/invitÚ1/AppData/Local/Temp/cmake_check_environment1/_build3824656907337829351/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3c8fe.dir/testCCompiler.c.obj
C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -o CMakeFiles\cmTC_3c8fe.dir\testCCompiler.c.obj -c C:\Users\invit├®1\AppData\Local\Temp\cmake_check_environment1\_build3824656907337829351\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error: C:\Users\invit├®1\AppData\Local\Temp\cmake_check_environment1\_build3824656907337829351\CMakeFiles\CMakeTmp\testCCompiler.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
mingw32-make.exe[1]: *** [CMakeFiles\cmTC_3c8fe.dir\build.make:65: CMakeFiles/cmTC_3c8fe.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/invitÚ1/AppData/Local/Temp/cmake_check_environment1/_build3824656907337829351/CMakeFiles/CMakeTmp'
mingw32-make.exe: *** [Makefile:120: cmTC_3c8fe/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/invité1/AppData/Local/Temp/cmake_check_environment1/_build3824656907337829351/CMakeFiles/CMakeOutput.log".
See also "C:/Users/invité1/AppData/Local/Temp/cmake_check_environment1/_build3824656907337829351/CMakeFiles/CMakeError.log".
Error code: 1
A voir également:
- Test cmake run finished with errors clion
- Test performance pc - Guide
- Test steam deck oled - Guide
- Test disque dur - Télécharger - Informations & Diagnostic
- Test composant pc - Guide
- Test batterie pc - Guide
1 réponse
Bonjour
Tout d’abord, CCM est un forum francophone, merci donc d’écrire en Français, si tu ne connais pas le Français, alors il faut aller sur la version anglophone ccm.net.
Ensuite, afin éventuellement de déplacer ta question dans le bon forum si nécessaire, tu as posté dans le forum Objective-C c’est un langage Mac.
Ta capture d’écran montre que tu travailles sous windows, et le message d’erreur parle de compilateur C. Cependant, il est possible de coder en Objective C sous windows.
Peux tu donc confirmer ton langage?
Tout d’abord, CCM est un forum francophone, merci donc d’écrire en Français, si tu ne connais pas le Français, alors il faut aller sur la version anglophone ccm.net.
Ensuite, afin éventuellement de déplacer ta question dans le bon forum si nécessaire, tu as posté dans le forum Objective-C c’est un langage Mac.
Ta capture d’écran montre que tu travailles sous windows, et le message d’erreur parle de compilateur C. Cependant, il est possible de coder en Objective C sous windows.
Peux tu donc confirmer ton langage?
HoussamTM10
Messages postés
2
Statut
Membre
Le langage C