Skip to content

Instantly share code, notes, and snippets.

@natanbc
Created January 9, 2019 02:10
Show Gist options
  • Save natanbc/90f7c1e2bf0eb5507ad086672aaa3470 to your computer and use it in GitHub Desktop.
Save natanbc/90f7c1e2bf0eb5507ad086672aaa3470 to your computer and use it in GitHub Desktop.
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc
Build flags: -m32
Id flags:
The output was:
1
cc: error: unrecognized command line option ‘-m32’
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc
Build flags: -m32
Id flags: -c
The output was:
1
cc: error: unrecognized command line option ‘-m32’
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc
Build flags: -m32
Id flags: -Aa
The output was:
1
cc: error: unrecognized command line option ‘-m32’
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc
Build flags: -m32
Id flags: -D__CLASSIC_C__
The output was:
1
cc: error: unrecognized command line option ‘-m32’
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
cc: error: unrecognized command line option ‘-m32’
cc: fatal error: no input files
compilation terminated.
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/bin/c++
Build flags: -m32
Id flags:
The output was:
1
c++: error: unrecognized command line option ‘-m32’
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/bin/c++
Build flags: -m32
Id flags: -c
The output was:
1
c++: error: unrecognized command line option ‘-m32’
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
c++: error: unrecognized command line option ‘-m32’
c++: fatal error: no input files
compilation terminated.
Determining if the C compiler works failed with the following output:
Change Dir: /home/pi/jda-nas/udp-queue-natives/build/linux-x86/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_35b93/fast"
/usr/bin/make -f CMakeFiles/cmTC_35b93.dir/build.make CMakeFiles/cmTC_35b93.dir/build
make[1]: Entering directory '/home/pi/jda-nas/udp-queue-natives/build/linux-x86/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_35b93.dir/testCCompiler.c.o
/usr/bin/cc -m32 -o CMakeFiles/cmTC_35b93.dir/testCCompiler.c.o -c /home/pi/jda-nas/udp-queue-natives/build/linux-x86/CMakeFiles/CMakeTmp/testCCompiler.c
cc: error: unrecognized command line option ‘-m32’
CMakeFiles/cmTC_35b93.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_35b93.dir/testCCompiler.c.o' failed
make[1]: *** [CMakeFiles/cmTC_35b93.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory '/home/pi/jda-nas/udp-queue-natives/build/linux-x86/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_35b93/fast' failed
make: *** [cmTC_35b93/fast] Error 2
The system is: Linux - 4.14.30-v7+ - armv7l
pi@raspberrypi:~/jda-nas $ ./gradlew build
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :assemble UP-TO-DATE
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
> Task :check UP-TO-DATE
> Task :build UP-TO-DATE
> Task :udp-queue-natives:udpqueue-32-setup FAILED
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.7/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/pi/jda-nas/udp-queue-natives/build/linux-x86/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_35b93/fast"
/usr/bin/make -f CMakeFiles/cmTC_35b93.dir/build.make
CMakeFiles/cmTC_35b93.dir/build
make[1]: Entering directory
'/home/pi/jda-nas/udp-queue-natives/build/linux-x86/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_35b93.dir/testCCompiler.c.o
/usr/bin/cc -m32 -o CMakeFiles/cmTC_35b93.dir/testCCompiler.c.o -c
/home/pi/jda-nas/udp-queue-natives/build/linux-x86/CMakeFiles/CMakeTmp/testCCompiler.c
cc: error: unrecognized command line option ‘-m32’
CMakeFiles/cmTC_35b93.dir/build.make:65: recipe for target
'CMakeFiles/cmTC_35b93.dir/testCCompiler.c.o' failed
make[1]: *** [CMakeFiles/cmTC_35b93.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory
'/home/pi/jda-nas/udp-queue-natives/build/linux-x86/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_35b93/fast' failed
make: *** [cmTC_35b93/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt
-- Configuring incomplete, errors occurred!
See also "/home/pi/jda-nas/udp-queue-natives/build/linux-x86/CMakeFiles/CMakeOutput.log".
See also "/home/pi/jda-nas/udp-queue-natives/build/linux-x86/CMakeFiles/CMakeError.log".
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':udp-queue-natives:udpqueue-32-setup'.
> Process 'command 'cmake'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 4s
2 actionable tasks: 1 executed, 1 up-to-date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment