Skip to content

Instantly share code, notes, and snippets.

@nowox
Created August 24, 2017 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nowox/e90b768126d3e2a8b49fb759505e55c0 to your computer and use it in GitHub Desktop.
Save nowox/e90b768126d3e2a8b49fb759505e55c0 to your computer and use it in GitHub Desktop.
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /cygdrive/c/Users/Ycr/Home/bin/arm-none-eabi-gcc
Build flags:
Id flags:
The output was:
1
c:/program files (x86)/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status
Determining if the C compiler works failed with the following output:
Change Dir: /cygdrive/c/Users/Ycr/Home/sandbox/iar/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_74bfe/fast"
/usr/bin/make -f CMakeFiles/cmTC_74bfe.dir/build.make CMakeFiles/cmTC_74bfe.dir/build
make[1]: Entering directory '/cygdrive/c/Users/Ycr/Home/sandbox/iar/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_74bfe.dir/testCCompiler.c.obj
/cygdrive/c/Users/Ycr/Home/bin/arm-none-eabi-gcc -o CMakeFiles/cmTC_74bfe.dir/testCCompiler.c.obj -c /cygdrive/c/Users/Ycr/Home/sandbox/iar/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_74bfe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_74bfe.dir/link.txt --verbose=1
/cygdrive/c/Users/Ycr/Home/bin/arm-none-eabi-gcc CMakeFiles/cmTC_74bfe.dir/testCCompiler.c.obj -o cmTC_74bfe
c:/program files (x86)/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_74bfe.dir/build.make:98: cmTC_74bfe] Error 1
make[1]: Leaving directory '/cygdrive/c/Users/Ycr/Home/sandbox/iar/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:126: cmTC_74bfe/fast] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment