Skip to content

Instantly share code, notes, and snippets.

@cbrake
Last active August 29, 2015 14:20
Show Gist options
  • Save cbrake/8559498f470325f7748c to your computer and use it in GitHub Desktop.
Save cbrake/8559498f470325f7748c to your computer and use it in GitHub Desktop.
angstrom dizzy SDK issue
[cbrake@mars build-arm]$ cmake ../ -DCMAKE_TOOLCHAIN_FILE=./angstrom.cmake
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc
-- Check for working C compiler: /usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -- broken
CMake Error at /usr/share/cmake-3.2/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler
"/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /scratch/debian-wheezy/scratch/fmc-accuload/cmake-test/build-arm/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec1882141732/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1882141732.dir/build.make
CMakeFiles/cmTryCompileExec1882141732.dir/build
make[1]: Entering directory
'/scratch/debian-wheezy/scratch/fmc-accuload/cmake-test/build-arm/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/scratch/debian-wheezy/scratch/fmc-accuload/cmake-test/build-arm/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object
CMakeFiles/cmTryCompileExec1882141732.dir/testCCompiler.c.o
/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc
-o CMakeFiles/cmTryCompileExec1882141732.dir/testCCompiler.c.o -c
/scratch/debian-wheezy/scratch/fmc-accuload/cmake-test/build-arm/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec1882141732
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec1882141732.dir/link.txt --verbose=1
/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
CMakeFiles/cmTryCompileExec1882141732.dir/testCCompiler.c.o -o
cmTryCompileExec1882141732 -rdynamic
/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/libexec/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.9.3/ld:
error: CMakeFiles/cmTryCompileExec1882141732.dir/testCCompiler.c.o uses VFP
register arguments, output does not
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec1882141732.dir/build.make:88: recipe for target
'cmTryCompileExec1882141732' failed
make[1]: Leaving directory
'/scratch/debian-wheezy/scratch/fmc-accuload/cmake-test/build-arm/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec1882141732] Error 1
Makefile:117: recipe for target 'cmTryCompileExec1882141732/fast' failed
make: *** [cmTryCompileExec1882141732/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!
[cbrake@mars build-arm]$ arm-angstrom-linux-gnueabi-gcc -o test test.c
arm-angstrom-linux-gnueabi-gcc: error: test.c: No such file or directory
arm-angstrom-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
[cbrake@mars build-arm]$ cd ..
[cbrake@mars cmake-test]$ arm-angstrom-linux-gnueabi-gcc -o test test.c
In file included from /usr/local/oecore-x86_64/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/features.h:389:0,
from /usr/local/oecore-x86_64/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/stdio.h:27,
from test.c:1:
/usr/local/oecore-x86_64/sysroots/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
# include <gnu/stubs-soft.h>
^
compilation terminated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment