The C compiler is not able to compile a simple test programm

已回答

 Hi,

 

I already searched a lot about this error (including this clion forum) but I failed fixing this error. All of the checks in the toolchain options were successful.

 

My error log is as followed: 

 

Error:The C compiler "C:/Users/Lorenz/MinGW/bin/gcc.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/__default__/CMakeFiles/CMakeTmp
Run Build Command:"C:/Users/Lorenz/MinGW/bin/mingw32-make.exe" "cmTC_e603e/fast"
C:/Users/Lorenz/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_e603e.dir\build.make CMakeFiles/cmTC_e603e.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/__default__/CMakeFiles/CMakeTmp'
CMakeFiles\cmTC_e603e.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_e603e.dir/testCCompiler.c.obj' failed
process_begin: CreateProcess(C:\Users\Lorenz\AppData\Local\Temp\make6240-1.bat, C:\Users\Lorenz\AppData\Local\Temp\make6240-1.bat, ...) failed.
make (e=5): Access is denied.
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_e603e.dir/testCCompiler.c.obj] Error 5
mingw32-make.exe[1]: Leaving directory 'C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/__default__/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_e603e/fast' failed
mingw32-make.exe: *** [cmTC_e603e/fast] Error 2
CMake will not be able to correctly generate this project.

 

 

 

Error:Configuration Debug
The C compiler "C:/Users/Lorenz/MinGW/bin/gcc.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/Debug/CMakeFiles/CMakeTmp
Run Build Command:"C:/Users/Lorenz/MinGW/bin/mingw32-make.exe" "cmTC_6e300/fast"
C:/Users/Lorenz/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_6e300.dir\build.make CMakeFiles/cmTC_6e300.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/Debug/CMakeFiles/CMakeTmp'
CMakeFiles\cmTC_6e300.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_6e300.dir/testCCompiler.c.obj' failed
process_begin: CreateProcess(C:\Users\Lorenz\AppData\Local\Temp\make4148-1.bat, C:\Users\Lorenz\AppData\Local\Temp\make4148-1.bat, ...) failed.
make (e=5): Access is denied.
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_6e300.dir/testCCompiler.c.obj] Error 5
mingw32-make.exe[1]: Leaving directory 'C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/Debug/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_6e300/fast' failed
mingw32-make.exe: *** [cmTC_6e300/fast] Error 2
CMake will not be able to correctly generate this project.

 

 

Error:Configuration Release
The C compiler "C:/Users/Lorenz/MinGW/bin/gcc.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/Release/CMakeFiles/CMakeTmp
Run Build Command:"C:/Users/Lorenz/MinGW/bin/mingw32-make.exe" "cmTC_9665f/fast"
C:/Users/Lorenz/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_9665f.dir\build.make CMakeFiles/cmTC_9665f.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/Release/CMakeFiles/CMakeTmp'
CMakeFiles\cmTC_9665f.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_9665f.dir/testCCompiler.c.obj' failed
process_begin: CreateProcess(C:\Users\Lorenz\AppData\Local\Temp\make6820-1.bat, C:\Users\Lorenz\AppData\Local\Temp\make6820-1.bat, ...) failed.
make (e=5): Access is denied.
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_9665f.dir/testCCompiler.c.obj] Error 5
mingw32-make.exe[1]: Leaving directory 'C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/Release/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_9665f/fast' failed
mingw32-make.exe: *** [cmTC_9665f/fast] Error 2
CMake will not be able to correctly generate this project.

 

 

Error:Configuration MinSizeRel
The C compiler "C:/Users/Lorenz/MinGW/bin/gcc.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/MinSizeRel/CMakeFiles/CMakeTmp
Run Build Command:"C:/Users/Lorenz/MinGW/bin/mingw32-make.exe" "cmTC_13445/fast"
C:/Users/Lorenz/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_13445.dir\build.make CMakeFiles/cmTC_13445.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/MinSizeRel/CMakeFiles/CMakeTmp'
CMakeFiles\cmTC_13445.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_13445.dir/testCCompiler.c.obj' failed
process_begin: CreateProcess(C:\Users\Lorenz\AppData\Local\Temp\make7780-1.bat, C:\Users\Lorenz\AppData\Local\Temp\make7780-1.bat, ...) failed.
make (e=5): Access is denied.
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_13445.dir/testCCompiler.c.obj] Error 5
mingw32-make.exe[1]: Leaving directory 'C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/49cc4fee/MinSizeRel/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_13445/fast' failed
mingw32-make.exe: *** [cmTC_13445/fast] Error 2
CMake will not be able to correctly generate this project.

1

Hi Lorenz.

Please check that you have writing access rights to <temp> and <C:/Users/Lorenz/.CLion2016.1/system/cmake/generated/NewTest-49cc4fee/>. Also do you have an antivirus? Disabling it may also help (see http://stackoverflow.com/questions/14201870/cmake-fails-to-compile-simple-test-error-5-access-denied)

1
Avatar
Permanently deleted user

Hi Anna,

 

Thank you for your fast and helpful response! The error was that there was no writing access to <temp>.

0
Avatar
Permanently deleted user

Hi there,
I'm getting the same Errors on my Mac and I can't figure out whats wrong.

0

Hi! Could you please paste your error message here?

0
Avatar
Permanently deleted user

Hello i have same problem

The C compiler identification is GNU 5.3.0

The CXX compiler identification is GNU 5.3.0

Check for working C compiler: C:/MinGW/bin/gcc.exe

Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken

CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.8/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test
program.

It fails with the following output:

Change Dir: C:/Users/Алмас/Downloads/MinGW/CMake_SC/assimp-3.3.1/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_8c8da/fast"

C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_8c8da.dir\build.make
CMakeFiles/cmTC_8c8da.dir/build


mingw32-make.exe[1]: Entering directory
'C:/Users/Алмас/Downloads/MinGW/CMake_SC/assimp-3.3.1/build/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_8c8da.dir/testCCompiler.c.obj

C:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_8c8da.dir\testCCompiler.c.obj -c
C:\Users\Алмас\Downloads\MinGW\CMake_SC\assimp-3.3.1\build\CMakeFiles\CMakeTmp\testCCompiler.c

gcc.exe: error:
C:\Users\Алмас\Downloads\MinGW\CMake_SC\assimp-3.3.1\build\CMakeFiles\CMakeTmp\testCCompiler.c:
No such file or directory

gcc.exe: fatal error: not specified input
files


compilation aborted

CMakeFiles\cmTC_8c8da.dir\build.make:64: recipe for target
'CMakeFiles/cmTC_8c8da.dir/testCCompiler.c.obj' failed

mingw32-make.exe[1]: *** [CMakeFiles/cmTC_8c8da.dir/testCCompiler.c.obj]
Error 1

mingw32-make.exe[1]: Leaving directory
'C:/Users/Алмас/Downloads/MinGW/CMake_SC/assimp-3.3.1/build/CMakeFiles/CMakeTmp'

Makefile:125: recipe for target 'cmTC_8c8da/fast' failed


mingw32-make.exe: *** [cmTC_8c8da/fast] Error 2


CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:40 (PROJECT)

Configuring incomplete, errors occurred!

0
Avatar
Permanently deleted user

About verions:

OS Windows 8.1 x64

CMake is Win32 version

MinGW32 5.3.0

Boost_1_63_0

1

Hi, Dotaaccaunts.

We suppose that it's not CLion problem, but the problem with using CMake + MinGW, because they don't support non-latin symbols.

To solve the problem you can

1) change usage of MinGW to Cygwin

or

2) сhange idea.system.path in the IDE_HOME\bin\idea.properties file so it won't contain non-latin symbols (please see https://intellij-support.jetbrains.com/entries/23358108 and https://www.jetbrains.com/idea/help/project-and-ide-settings.html for more details).

0
Avatar
Permanently deleted user

Thank you SO mutch! I found the way out.

Just putting source files to D:\CMake folder, where i have no russian symbols

Love you! :D

0
Avatar
Permanently deleted user

I have another problem now, when start mingw32-make in cmd, and trying to compile SDL2

Error log attched

https://www.mediafire.com/?qlfgclesqs1x2nf

 

0
Avatar
Permanently deleted user

Hello, I have next problem and I dont have any non-latin symbols in my paths.

-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-7.2.0-posix-dwarf-rt_v5-rev1/mingw32/bin/gcc.exe
-- Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-7.2.0-posix-dwarf-rt_v5-rev1/mingw32/bin/gcc.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2017.2.3/bin/cmake/share/cmake-3.8/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "C:/Program Files
(x86)/mingw-w64/i686-7.2.0-posix-dwarf-rt_v5-rev1/mingw32/bin/gcc.exe" is
not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/rustohero/CLionProjects/lab1/cmake-build-debug/CMakeFiles/CMakeTmp

 

Run Build
Command:"C:/PROGRA~2/MINGW-~1/I686-7~1.0-P/mingw32/bin/mingw32-make.exe"
"cmTC_6a2fc/fast"

C:/PROGRA~2/MINGW-~1/I686-7~1.0-P/mingw32/bin/mingw32-make.exe -f
CMakeFiles\cmTC_6a2fc.dir\build.make CMakeFiles/cmTC_6a2fc.dir/build

mingw32-make.exe[1]: Entering directory
'C:/rustohero/CLionProjects/lab1/cmake-build-debug/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_6a2fc.dir/testCCompiler.c.obj

C:\PROGRA~2\MINGW-~1\I686-7~1.0-P\mingw32\bin\gcc.exe -o
CMakeFiles\cmTC_6a2fc.dir\testCCompiler.c.obj -c
C:\rustohero\CLionProjects\lab1\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c


Linking C executable cmTC_6a2fc.exe

"C:\Program Files\JetBrains\CLion 2017.2.3\bin\cmake\bin\cmake.exe" -E
cmake_link_script CMakeFiles\cmTC_6a2fc.dir\link.txt --verbose=1

"C:\Program Files\JetBrains\CLion 2017.2.3\bin\cmake\bin\cmake.exe" -E
remove -f CMakeFiles\cmTC_6a2fc.dir/objects.a

C:\PROGRA~2\MINGW-~1\I686-7~1.0-P\mingw32\bin\ar.exe cr
CMakeFiles\cmTC_6a2fc.dir/objects.a @CMakeFiles\cmTC_6a2fc.dir\objects1.rsp

C:\PROGRA~2\MINGW-~1\I686-7~1.0-P\mingw32\bin\gcc.exe -Wl,--whole-archive
CMakeFiles\cmTC_6a2fc.dir/objects.a -Wl,--no-whole-archive -o
cmTC_6a2fc.exe -Wl,--out-implib,libcmTC_6a2fc.dll.a
-Wl,--major-image-version,0,--minor-image-version,0
@CMakeFiles\cmTC_6a2fc.dir\linklibs.rsp


C:/PROGRA~2/MINGW-~1/I686-7~1.0-P/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find @C:\Windows\TEMP\cckFxcZb: Invalid argument

collect2.exe: error: ld returned 1 exit status

mingw32-make.exe[1]: *** [CMakeFiles\cmTC_6a2fc.dir\build.make:99:
cmTC_6a2fc.exe] Error 1

mingw32-make.exe[1]: Leaving directory
'C:/rustohero/CLionProjects/lab1/cmake-build-debug/CMakeFiles/CMakeTmp'

mingw32-make.exe: *** [Makefile:125: cmTC_6a2fc/fast] Error 2

 

 

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)

 

0
Avatar
Permanently deleted user

I am facing the same problem here is my error message 

/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /Users/chunyoungjoon/C/demo
-- The C compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler

"/usr/bin/cc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/chunyoungjoon/C/demo/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_9e073/fast"
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

 

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 "/Users/chunyoungjoon/C/demo/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/Users/chunyoungjoon/C/demo/cmake-build-debug/CMakeFiles/CMakeError.log".

[Previous CMake output restored: 31/10/2018, 5:43 PM]

0

@1600093010, please execute xcode-select --install in the terminal, it should help.

0

Hello!

I have same problem on CentOs and Ubuntu after the last Clion upgrade to CLion 2019.1.2
Build #CL-191.6707.69, built on April 18, 2019
JRE: 1.8.0_202-release-1483-b44 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 3.10.0-957.10.1.el7.x86_64

CMake debug log:

CMake Error at /home/gsg/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/191.6707.69/bin/cmake/linux/share/cmake-3.14/Modules/CMakeDetermineSystem.cmake:185 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


-- The C compiler identification is GNU 4.8.5
CMake Error at /home/gsg/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/191.6707.69/bin/cmake/linux/share/cmake-3.14/Modules/CMakeDetermineCCompiler.cmake:193 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


-- The CXX compiler identification is GNU 4.8.5
CMake Error at /home/gsg/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/191.6707.69/bin/cmake/linux/share/cmake-3.14/Modules/CMakeDetermineCXXCompiler.cmake:191 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


-- Check for working C compiler: /usr/bin/cc
CMake Error at /home/gsg/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/191.6707.69/bin/cmake/linux/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:44 (try_compile):
Unknown extension ".c" for file

/media/sf_SmartikoDevelopment/Production/build/CMakeFiles/CMakeTmp/testCCompiler.c

try_compile() works only for enabled languages. Currently these are:

C CXX

See project() command to enable other languages.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /home/gsg/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/191.6707.69/bin/cmake/linux/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"/usr/bin/cc"

is not able to compile a simple test program.

It fails with the following output:

 

 

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 "/media/sf_SmartikoDevelopment/Production/build/CMakeFiles/CMakeOutput.log".
See also "/media/sf_SmartikoDevelopment/Production/build/CMakeFiles/CMakeError.log".

[Failed to reload]

CMakeOutput.log:

The system is: Linux - 3.10.0-957.10.1.el7.x86_64 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc
Build flags:
Id flags:

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/media/sf_SmartikoDevelopment/Production/build/CMakeFiles/3.14.2/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags:

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/media/sf_SmartikoDevelopment/Production/build/CMakeFiles/3.14.2/CompilerIdCXX/a.out"

CMakeError.log:

Determining if the C compiler works failed with the following output:

 

Looks like compilers tests are Ok but the main process can't see it. Again, this happens just after Cilon upgrade in two different Unixes simultaneously.

0

@Sergei Grigoriev, please delete the folder with build results (cmake-build-debug by default) and do Tools | CMake | Reset Cache and Reload Project after that. Does it help?

1

@Anna Falevskaya, it helps on Ubuntu, thank you. But it didn't work on CentOs. All output from the initial request is about CentOs case.

0

@Anna Falevskaya, I solved the problem. I'm using the Oracle VM VirtualBox and my sources and CLion project were placed on Shared folder with Windows and VM access. I shiftes the sources and the project from the shared folder on Unix file system and the error disappeared.

So, currently there is a problem to work with CLion CLion 2019.1.2
Build #CL-191.6707.69, built on April 18, 2019
You have a perpetual fallback license for this version
Subscription is active until May 15, 2020
JRE: 1.8.0_202-release-1483-b44 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 3.10.0-957.10.1.el7.x86_64on Oracle VM v. 6.0.6 and CentOS Linux release 7.6.1810 (Core) 

using the VM's shared folder as a project & sources place.

0

@Sergei Grigoriev, thanks for the info! If you create a new default "Hello, World!" project in a shared folder, does the issue happen?

0
Avatar
Permanently deleted user

Hi, even I am facing a similar issue with my Student License on my MacOS Mojave, please help. Here is the error output:

-- The C compiler identification is Clang 4.0.1
-- The CXX compiler identification is Clang 4.0.1
-- Check for working C compiler: /Users/mac/anaconda3/bin/x86_64-apple-darwin13.4.0-clang
-- Check for working C compiler: /Users/mac/anaconda3/bin/x86_64-apple-darwin13.4.0-clang -- broken
CMake Error at /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"/Users/mac/anaconda3/bin/x86_64-apple-darwin13.4.0-clang"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Volumes/Data/Endgame/C/CLionProjects/untitled2/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):/Users/mac/anaconda3/bin/make cmTC_a8473/fast
/Users/mac/anaconda3/bin/make -f CMakeFiles/cmTC_a8473.dir/build.make CMakeFiles/cmTC_a8473.dir/build
make[1]: Entering directory '/Volumes/Data/Endgame/C/CLionProjects/untitled2/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a8473.dir/testCCompiler.c.o
/Users/mac/anaconda3/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_a8473.dir/testCCompiler.c.o -c /Volumes/Data/Endgame/C/CLionProjects/untitled2/cmake-build-debug/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_a8473
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a8473.dir/link.txt --verbose=1
/Users/mac/anaconda3/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs CMakeFiles/cmTC_a8473.dir/testCCompiler.c.o -o cmTC_a8473
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [CMakeFiles/cmTC_a8473.dir/build.make:87: cmTC_a8473] Error 1
make[1]: Leaving directory '/Volumes/Data/Endgame/C/CLionProjects/untitled2/cmake-build-debug/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_a8473/fast] Error 2

 

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 "/Volumes/Data/Endgame/C/CLionProjects/untitled2/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/Volumes/Data/Endgame/C/CLionProjects/untitled2/cmake-build-debug/CMakeFiles/CMakeError.log".

[Failed to reload]

0

Hi @Anna Falevskaya,  The new "Hello World" project created on shared drive has same problem:

/home/gsg/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/191.7479.33/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /media/sf_GWDrive
CMake Error at /home/gsg/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/191.7479.33/bin/cmake/linux/share/cmake-3.14/Modules/CMakeDetermineSystem.cmake:185 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


-- The C compiler identification is GNU 7.4.0
CMake Error at /home/gsg/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/191.7479.33/bin/cmake/linux/share/cmake-3.14/Modules/CMakeDetermineCCompiler.cmake:193 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - failed
CMake Error at /home/gsg/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/191.7479.33/bin/cmake/linux/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:80 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
See also "/media/sf_GWDrive/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/media/sf_GWDrive/cmake-build-debug/CMakeFiles/CMakeError.log".

[Failed to reload]

 

Steps made:File->New Project; C executable, Standard C90

0
Avatar
Permanently deleted user

Hello guys,

I have the following problem:

"C:\Program Files\JetBrains\CLion 2019.1.4\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" "C:\Users\Akira Ota\CLion Projects\untitled1"
-- The C compiler identification is GNU 5.1.0
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2019.1.4/bin/cmake/win/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"C:/MinGW/bin/gcc.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/Users/Akira Ota/CLion Projects/untitled1/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_cda04/fast
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_cda04.dir\build.make CMakeFiles/cmTC_cda04.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/Akira Ota/CLion Projects/untitled1/cmake-build-debug/CMakeFiles/CMakeTmp'
CMakeFiles\cmTC_cda04.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_cda04.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_cda04.dir/testCCompiler.c.obj] Error -1073741819
mingw32-make.exe[1]: Leaving directory 'C:/Users/Akira Ota/CLion Projects/untitled1/cmake-build-debug/CMakeFiles/CMakeTmp'
Makefile:120: recipe for target 'cmTC_cda04/fast' failed
mingw32-make.exe: *** [cmTC_cda04/fast] Error 2

 

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 "C:/Users/Akira Ota/CLion Projects/untitled1/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Akira Ota/CLion Projects/untitled1/cmake-build-debug/CMakeFiles/CMakeError.log".

[Failed to reload]

0

@Brunoakiraota, please send "C:/Users/Akira Ota/CLion Projects/untitled1/cmake-build-debug/CMakeFiles/CMakeOutput.log" and "C:/Users/Akira Ota/CLion Projects/untitled1/cmake-build-debug/CMakeFiles/CMakeError.log" to clion-support at jetbrains.com.

0

@Sherlock Rdj Holmes, you should have Xcode command line developer tools installed (to install, use the xcode-select --install command).

-1
Avatar
Permanently deleted user

@Anna Falevskaya

"C:/Users/Akira Ota/CLion Projects/untitled1/cmake-build-debug/CMakeFiles/CMakeOutput.log":

The system is: Windows - 10.0.17134 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/MinGW/bin/gcc.exe
Build flags:
Id flags:

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.exe"

The C compiler identification is GNU, found in "C:/Users/Akira Ota/CLionProjects/untitled1/cmake-build-debug/CMakeFiles/3.14.3/CompilerIdC/a.exe"

 

and

"C:/Users/Akira Ota/CLion Projects/untitled1/cmake-build-debug/CMakeFiles/CMakeError.log" :

Determining if the C compiler works failed with the following output:
Change Dir: C:/Users/Akira Ota/CLionProjects/untitled1/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_d3895/fast
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_d3895.dir\build.make CMakeFiles/cmTC_d3895.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/Akira Ota/CLionProjects/untitled1/cmake-build-debug/CMakeFiles/CMakeTmp'
CMakeFiles\cmTC_d3895.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_d3895.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_d3895.dir/testCCompiler.c.obj] Error -1073741819
mingw32-make.exe[1]: Leaving directory 'C:/Users/Akira Ota/CLionProjects/untitled1/cmake-build-debug/CMakeFiles/CMakeTmp'
Makefile:120: recipe for target 'cmTC_d3895/fast' failed
mingw32-make.exe: *** [cmTC_d3895/fast] Error 2

 

 

0
Avatar
Permanently deleted user

@Anna Falevskaya
I have all installed.

0
Avatar
Permanently deleted user

@Anna Falevskaya

HI,I am facing a similar problem.

I can make sure that have no non-latin word,but the make don't create temp c file.

The key error is 


mingw32-make.exe[1]: Entering directory 'F:/A_Clion/opengl_exp_6/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e3040.dir/testCCompiler.c.obj
F:\software\Dev-Cpp\MinGW64\bin\gcc.exe -o CMakeFiles\cmTC_e3040.dir\testCCompiler.c.obj -c F:\A_Clion\opengl_exp_6\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error: CreateProcess: No such file or directory
CMakeFiles\cmTC_e3040.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_e3040.dir/testCCompiler.c.obj' failed

well,I'm sure i hava the folder CMake Tmp,but the testCCompiler.c is never exist!

By the way,when i configure the toolchains that set the env to MinGW,it also send a similar error:

Building C object CMakeFiles/cmTC_5921a.dir/testCCompiler.c.obj
F:\software\Dev-Cpp\MinGW64\bin\gcc.exe -o CMakeFiles\cmTC_5921a.dir\testCCompiler.c.obj -c E:\TEMP\cmake_check_environment\_build7565813004622452262\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error: CreateProcess: No such file or directory

The make.exe don;t create the folder and file,but it will try use the file,and find one error.Well,I don't know whar should i do.

Please help me, i like the IDE.

0
Avatar
Permanently deleted user

@Anna Falevskaya
Any solution? I really like IDE and did not want to have to change.

0
Avatar
Permanently deleted user

@Anna Falevskaya 

HI,thanks for your answer,but i think it's not the problem.

My problem is that when the cmake test gcc.exe,it has created temp folder,but didn't create temp c file,and the cmke even try to complile the temp file which didn't exist.It looks really ridiculous.

Can you give me some solution?Thank you.

 

 

0

@Brunoakiraota hi,

There's "Error -1073741819" in your CMakeError.log. Looks like in fact, it is "Error 5" (hex conversion helps) which is "Access denied". You can look at this question on StackOverflow https://stackoverflow.com/questions/14201870/cmake-fails-to-compile-simple-test-error-5-access-denied

Probably your problem is caused either by antivirus software or lack of writing access rights to some directory

0

请先登录再写评论。