thinkski / osx-arm-linux-toolchains

Pre-built ARM/Linux C cross-compilers for MacOS
https://thinkski.github.io/osx-arm-linux-toolchains
MIT License
123 stars 4 forks source link

Issue with build on Monterey 12.2.1 #11

Closed droohyen closed 1 year ago

droohyen commented 2 years ago

Hi

i am trying to build using CMAKE and toolchain from your repo. Im having raspberry pi 1 and according to this page https://www.valvers.com/open-software/raspberry-pi/bare-metal-programming-in-c-part-1/, following flags I set: -march=armv6zk -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard

Here is the ouptup of build process

Make Error at /Applications/CMake.app/Contents/share/cmake-3.23/Modules/CMakeTestCXXCompiler.cmake:62 (message): The C++ compiler

"/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/dro/Development/arm/code/cmake-hello-world/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_08f1a/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/cmTC_08f1a.dir/build.make CMakeFiles/cmTC_08f1a.dir/build
Building CXX object CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o
/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++   -march=armv6zk -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -v -std=c++11  -march=armv6zk -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -v -std=c++11   -isysroot /Users/dro/Development/arm/rpisysroot/rpisysroot   -Wall -o CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o -c /Users/dro/Development/arm/code/cmake-hello-world/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Using built-in specs.
COLLECT_GCC=/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++
Target: arm-unknown-linux-gnueabi
Configured with: /Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/src/gcc/configure --build=x86_64-build_apple-darwin18.6.0 --host=x86_64-build_apple-darwin18.6.0 --target=arm-unknown-linux-gnueabi --prefix=/Users/chris/x-tools/arm-unknown-linux-gnueabi --with-sysroot=/Users/chris/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot --enable-languages=c,c++ --with-float=soft --with-pkgversion='crosstool-NG 1.24.0' --disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-libsanitizer --disable-libmpx --with-gmp=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --with-mpfr=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --with-mpc=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --with-isl=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --enable-lto --enable-threads=posix --enable-target-optspace --enable-plugin --enable-gold --disable-nls --disable-multilib --with-local-prefix=/Users/chris/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot --enable-long-long
Thread model: posix
gcc version 8.3.0 (crosstool-NG 1.24.0) 
COLLECT_GCC_OPTIONS= '-mcpu=arm1176jzf-s' '-mfpu=vfp' '-mfloat-abi=hard' '-v' '-std=c++11'  '-mcpu=arm1176jzf-s' '-mfpu=vfp' '-mfloat-abi=hard' '-v' '-std=c++11' '-isysroot' '/Users/dro/Development/arm/rpisysroot/rpisysroot' '-Wall' '-o' 'CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o' '-c' '-shared-libgcc' '-mtls-dialect=gnu' '-marm' '-march=armv6zk+fp'
 /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../libexec/gcc/arm-unknown-linux-gnueabi/8.3.0/cc1plus -quiet -v -v -iprefix /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/ -isysroot /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot -D_GNU_SOURCE -isysroot /Users/dro/Development/arm/rpisysroot/rpisysroot /Users/dro/Development/arm/code/cmake-hello-world/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx -quiet -dumpbase testCXXCompiler.cxx -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -mtls-dialect=gnu -marm -march=armv6zk+fp -auxbase-strip CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o -Wall -std=c++11 -std=c++11 -version -o /var/folders/s0/bp0mmft901q26dz9_qq44vdr0000gn/T//cc6WHtum.s
GNU C++11 (crosstool-NG 1.24.0) version 8.3.0 (arm-unknown-linux-gnueabi)
    compiled by GNU C version 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.20-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0"
ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0/arm-unknown-linux-gnueabi"
ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0/backward"
ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/include"
ignoring nonexistent directory "/Users/dro/Development/arm/rpisysroot/rpisysroot/Users/chris/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/include"
ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/include-fixed"
ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include"
#include "..." search starts here:
#include <...> search starts here:
 /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0
 /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0/arm-unknown-linux-gnueabi
 /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0/backward
 /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/include
 /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/include-fixed
 /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include
 /Users/dro/Development/arm/rpisysroot/rpisysroot/usr/include
End of search list.
GNU C++11 (crosstool-NG 1.24.0) version 8.3.0 (arm-unknown-linux-gnueabi)
    compiled by GNU C version 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.20-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 404818f033b9b61c85c022357f071914
COLLECT_GCC_OPTIONS= '-mcpu=arm1176jzf-s' '-mfpu=vfp' '-mfloat-abi=hard' '-v' '-std=c++11'  '-mcpu=arm1176jzf-s' '-mfpu=vfp' '-mfloat-abi=hard' '-v' '-std=c++11' '-isysroot' '/Users/dro/Development/arm/rpisysroot/rpisysroot' '-Wall' '-o' 'CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o' '-c' '-shared-libgcc' '-mtls-dialect=gnu' '-marm' '-march=armv6zk+fp'
 /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/bin/as -v -v -march=armv6zk -mfloat-abi=hard -mfloat-abi=hard -mfpu=vfp -mfpu=vfp -meabi=5 -o CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o /var/folders/s0/bp0mmft901q26dz9_qq44vdr0000gn/T//cc6WHtum.s
GNU assembler version 2.32 (arm-unknown-linux-gnueabi) using BFD version (crosstool-NG 1.24.0) 2.32
COMPILER_PATH=/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../libexec/gcc/arm-unknown-linux-gnueabi/8.3.0/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../libexec/gcc/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/bin/
LIBRARY_PATH=/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/lib/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot/lib/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot/usr/lib/
COLLECT_GCC_OPTIONS= '-mcpu=arm1176jzf-s' '-mfpu=vfp' '-mfloat-abi=hard' '-v' '-std=c++11'  '-mcpu=arm1176jzf-s' '-mfpu=vfp' '-mfloat-abi=hard' '-v' '-std=c++11' '-isysroot' '/Users/dro/Development/arm/rpisysroot/rpisysroot' '-Wall' '-o' 'CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o' '-c' '-shared-libgcc' '-mtls-dialect=gnu' '-marm' '-march=armv6zk+fp'
Linking CXX executable cmTC_08f1a
/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_08f1a.dir/link.txt --verbose=1
/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++  -march=armv6zk -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -v -std=c++11  -march=armv6zk -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -v -std=c++11   -isysroot /Users/dro/Development/arm/rpisysroot/rpisysroot -Wl,-headerpad_max_install_names CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o -o cmTC_08f1a 
Using built-in specs.
COLLECT_GCC=/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++
COLLECT_LTO_WRAPPER=/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../libexec/gcc/arm-unknown-linux-gnueabi/8.3.0/lto-wrapper
Target: arm-unknown-linux-gnueabi
Configured with: /Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/src/gcc/configure --build=x86_64-build_apple-darwin18.6.0 --host=x86_64-build_apple-darwin18.6.0 --target=arm-unknown-linux-gnueabi --prefix=/Users/chris/x-tools/arm-unknown-linux-gnueabi --with-sysroot=/Users/chris/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot --enable-languages=c,c++ --with-float=soft --with-pkgversion='crosstool-NG 1.24.0' --disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-libsanitizer --disable-libmpx --with-gmp=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --with-mpfr=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --with-mpc=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --with-isl=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --enable-lto --enable-threads=posix --enable-target-optspace --enable-plugin --enable-gold --disable-nls --disable-multilib --with-local-prefix=/Users/chris/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot --enable-long-long
Thread model: posix
gcc version 8.3.0 (crosstool-NG 1.24.0) 
COMPILER_PATH=/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../libexec/gcc/arm-unknown-linux-gnueabi/8.3.0/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../libexec/gcc/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/bin/
LIBRARY_PATH=/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/lib/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot/lib/:/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot/usr/lib/
COLLECT_GCC_OPTIONS= '-mcpu=arm1176jzf-s' '-mfpu=vfp' '-mfloat-abi=hard' '-v' '-std=c++11'  '-mcpu=arm1176jzf-s' '-mfpu=vfp' '-mfloat-abi=hard' '-v' '-std=c++11' '-isysroot' '/Users/dro/Development/arm/rpisysroot/rpisysroot' '-o' 'cmTC_08f1a' '-shared-libgcc' '-mtls-dialect=gnu' '-marm' '-march=armv6zk+fp'
 /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../libexec/gcc/arm-unknown-linux-gnueabi/8.3.0/collect2 -plugin /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../libexec/gcc/arm-unknown-linux-gnueabi/8.3.0/liblto_plugin.so -plugin-opt=/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../libexec/gcc/arm-unknown-linux-gnueabi/8.3.0/lto-wrapper -plugin-opt=-fresolution=/var/folders/s0/bp0mmft901q26dz9_qq44vdr0000gn/T//cc1eyOxn.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot --eh-frame-hdr -dynamic-linker /lib/ld-linux-armhf.so.3 -X -m armelf_linux_eabi -o cmTC_08f1a /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot/usr/lib/crt1.o /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot/usr/lib/crti.o /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/crtbegin.o -L/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0 -L/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc -L/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/lib -L/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot/lib -L/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot/usr/lib -headerpad_max_install_names CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/crtend.o /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot/usr/lib/crtn.o
**/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/bin/ld.bfd: error: CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o uses VFP register arguments, cmTC_08f1a does not**
/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/bin/ld.bfd: failed to merge target specific data of file CMakeFiles/cmTC_08f1a.dir/testCXXCompiler.cxx.o
collect2: error: ld returned 1 exit status
make[1]: *** [cmTC_08f1a] Error 1
make: *** [cmTC_08f1a/fast] Error 2

and my CMAKE toolchain file:

SET(CMAKE_SYSTEM_NAME Darwin) SET(CMAKE_SYSTEM_VERSION 1) SET(CMAKE_C_COMPILER /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc) SET(CMAKE_CXX_COMPILER /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++ )

set(CMAKE_EXE_LINKER_FLAGS "--specs=nosys.specs " CACHE INTERNAL "")

set(CMAKE_VERBOSE_MAKEFILE TRUE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv6zk -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -v -std=c++11 ") set(CMAKE_AR /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ar ) set(CMAKE_RANLIB /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ranlib ) SET(CMAKE_OSX_SYSROOT /Users/dro/Development/arm/rpisysroot/rpisysroot/) SET(CMAKE_FIND_ROOT_PATH /Users/dro/Development/arm/rpisysroot/rpisysroot/) SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) add_definitions(-Wall)

Any ideas?

EDit:

changing mfloat flag to: -mfloat-abi=soft gives another type of error during build:

dro@MacBook-Pro-Wojciech build % cmake -D CMAKE_TOOLCHAIN_FILE=/Users/dro/Development/arm/code/toolchainpi.cmake ../ CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 8.3.0 -- The CXX compiler identification is GNU 8.3.0 -- Checking whether C compiler has -isysroot -- Checking whether C compiler has -isysroot - yes -- Checking whether C compiler supports OSX deployment target flag -- Checking whether C compiler supports OSX deployment target flag - no -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Checking whether CXX compiler supports OSX deployment target flag -- Checking whether CXX compiler supports OSX deployment target flag - no -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /Users/dro/Development/arm/code/cmake-hello-world/build dro@MacBook-Pro-Wojciech build % rm -rf CMakeFiles
dro@MacBook-Pro-Wojciech build % make /Applications/CMake.app/Contents/bin/cmake -S/Users/dro/Development/arm/code/cmake-hello-world -B/Users/dro/Development/arm/code/cmake-hello-world/build --check-build-system CMakeFiles/Makefile.cmake 0 /Applications/CMake.app/Contents/bin/cmake -E cmake_progress_start /Users/dro/Development/arm/code/cmake-hello-world/build/CMakeFiles /Users/dro/Development/arm/code/cmake-hello-world/build//CMakeFiles/progress.marks /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Hello/CMakeFiles/Hello.dir/build.make Hello/CMakeFiles/Hello.dir/depend cd /Users/dro/Development/arm/code/cmake-hello-world/build && /Applications/CMake.app/Contents/bin/cmake -E cmake_depends "Unix Makefiles" /Users/dro/Development/arm/code/cmake-hello-world /Users/dro/Development/arm/code/cmake-hello-world/Hello /Users/dro/Development/arm/code/cmake-hello-world/build /Users/dro/Development/arm/code/cmake-hello-world/build/Hello /Users/dro/Development/arm/code/cmake-hello-world/build/Hello/CMakeFiles/Hello.dir/DependInfo.cmake --color= /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Hello/CMakeFiles/Hello.dir/build.make Hello/CMakeFiles/Hello.dir/build [ 25%] Building CXX object Hello/CMakeFiles/Hello.dir/Speaker.cpp.o cd /Users/dro/Development/arm/code/cmake-hello-world/build/Hello && /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++ -march=armv6zk -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=soft -v -std=c++11 -march=armv6zk -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=soft -v -std=c++11 -isysroot /Users/dro/Development/arm/rpisysroot/rpisysroot/ -Wall -Wall -MD -MT Hello/CMakeFiles/Hello.dir/Speaker.cpp.o -MF CMakeFiles/Hello.dir/Speaker.cpp.o.d -o CMakeFiles/Hello.dir/Speaker.cpp.o -c /Users/dro/Development/arm/code/cmake-hello-world/Hello/Speaker.cpp Using built-in specs. COLLECT_GCC=/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++ Target: arm-unknown-linux-gnueabi Configured with: /Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/src/gcc/configure --build=x86_64-build_apple-darwin18.6.0 --host=x86_64-build_apple-darwin18.6.0 --target=arm-unknown-linux-gnueabi --prefix=/Users/chris/x-tools/arm-unknown-linux-gnueabi --with-sysroot=/Users/chris/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot --enable-languages=c,c++ --with-float=soft --with-pkgversion='crosstool-NG 1.24.0' --disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-libsanitizer --disable-libmpx --with-gmp=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --with-mpfr=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --with-mpc=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --with-isl=/Users/chris/Downloads/.build/arm-unknown-linux-gnueabi/buildtools --enable-lto --enable-threads=posix --enable-target-optspace --enable-plugin --enable-gold --disable-nls --disable-multilib --with-local-prefix=/Users/chris/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot --enable-long-long Thread model: posix gcc version 8.3.0 (crosstool-NG 1.24.0) COLLECT_GCC_OPTIONS= '-mcpu=arm1176jzf-s' '-mfpu=vfp' '-mfloat-abi=soft' '-v' '-std=c++11' '-mcpu=arm1176jzf-s' '-mfpu=vfp' '-mfloat-abi=soft' '-v' '-std=c++11' '-isysroot' '/Users/dro/Development/arm/rpisysroot/rpisysroot/' '-Wall' '-MD' '-MT' 'Hello/CMakeFiles/Hello.dir/Speaker.cpp.o' '-MF' 'CMakeFiles/Hello.dir/Speaker.cpp.o.d' '-o' 'CMakeFiles/Hello.dir/Speaker.cpp.o' '-c' '-shared-libgcc' '-mtls-dialect=gnu' '-marm' '-march=armv6zk' /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../libexec/gcc/arm-unknown-linux-gnueabi/8.3.0/cc1plus -quiet -v -v -iprefix /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/ -isysroot /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../arm-unknown-linux-gnueabi/sysroot -MD CMakeFiles/Hello.dir/Speaker.cpp.d -MF CMakeFiles/Hello.dir/Speaker.cpp.o.d -MT Hello/CMakeFiles/Hello.dir/Speaker.cpp.o -D_GNU_SOURCE -isysroot /Users/dro/Development/arm/rpisysroot/rpisysroot/ /Users/dro/Development/arm/code/cmake-hello-world/Hello/Speaker.cpp -quiet -dumpbase Speaker.cpp -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=soft -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=soft -mtls-dialect=gnu -marm -march=armv6zk -auxbase-strip CMakeFiles/Hello.dir/Speaker.cpp.o -Wall -std=c++11 -std=c++11 -version -o /var/folders/s0/bp0mmft901q26dz9_qq44vdr0000gn/T//ccnjOjGr.s GNU C++11 (crosstool-NG 1.24.0) version 8.3.0 (arm-unknown-linux-gnueabi) compiled by GNU C version 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.20-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0" ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0/arm-unknown-linux-gnueabi" ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0/backward" ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/include" ignoring nonexistent directory "/Users/dro/Development/arm/rpisysroot/rpisysroot/Users/chris/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/include" ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/include-fixed" ignoring duplicate directory "/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/../../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include"

include "..." search starts here:

include <...> search starts here:

/Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0 /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0/arm-unknown-linux-gnueabi /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include/c++/8.3.0/backward /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/include /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/include-fixed /Users/dro/Development/arm/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/8.3.0/../../../../arm-unknown-linux-gnueabi/include /Users/dro/Development/arm/rpisysroot/rpisysroot/usr/include End of search list. GNU C++11 (crosstool-NG 1.24.0) version 8.3.0 (arm-unknown-linux-gnueabi) compiled by GNU C version 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.20-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 404818f033b9b61c85c022357f071914 In file included from /Users/dro/Development/arm/rpisysroot/rpisysroot/usr/include/features.h:448, from /Users/dro/Development/arm/rpisysroot/rpisysroot/usr/include/bits/libc-header-start.h:33, from /Users/dro/Development/arm/rpisysroot/rpisysroot/usr/include/stdio.h:27, from /Users/dro/Development/arm/code/cmake-hello-world/Hello/Speaker.h:1, from /Users/dro/Development/arm/code/cmake-hello-world/Hello/Speaker.cpp:1: **/Users/dro/Development/arm/rpisysroot/rpisysroot/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory

include <gnu/stubs-soft.h>**

       ^~~~~~~~~~~~~~~~~~

compilation terminated. make[2]: [Hello/CMakeFiles/Hello.dir/Speaker.cpp.o] Error 1 make[1]: [Hello/CMakeFiles/Hello.dir/all] Error 2 make: *** [all] Error 2