Open ivogeorg opened 1 year ago
On the Macbook, on choosing the gcc 9.3 compiler (with 8.4 and Clang also available) to set for the project, the following (deep) error output resulted:
[variant] Loaded new set of variants
[kit] Successfully loaded 3 kits from /Users/ivogeorg/.local/share/CMakeTools/cmake-tools-kits.json
[proc] Executing command: /usr/local/bin/cmake --version
[proc] Executing command: /usr/local/bin/arm-none-eabi-gcc -v
[main] Configuring project: SFND_Lidar_Obstacle_Detection
[proc] Executing command: /usr/local/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/local/bin/arm-none-eabi-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/local/bin/arm-none-eabi-g++ -S/Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection -B/Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection/build -G Ninja
[cmake] CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
[cmake] Compatibility with CMake < 2.8.12 will be removed from a future version of
[cmake] CMake.
[cmake]
[cmake] Update the VERSION argument <min> value or use a ...<max> suffix to tell
[cmake] CMake that the project does not need compatibility with older versions.
[cmake]
[cmake]
[cmake] Not searching for unused variables given on the command line.
[cmake] -- The C compiler identification is GNU 9.3.1
[cmake] -- The CXX compiler identification is GNU 9.3.1
[cmake] -- Checking whether C compiler has -isysroot
[cmake] -- Checking whether C compiler has -isysroot - yes
[cmake] -- Checking whether C compiler supports OSX deployment target flag
[cmake] -- Checking whether C compiler supports OSX deployment target flag - no
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - failed
[cmake] -- Check for working C compiler: /usr/local/bin/arm-none-eabi-gcc
[cmake] -- Check for working C compiler: /usr/local/bin/arm-none-eabi-gcc - broken
[cmake] CMake Error at /usr/local/Cellar/cmake/3.26.4/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
[cmake] The C compiler
[cmake]
[cmake] "/usr/local/bin/arm-none-eabi-gcc"
[cmake]
[cmake] is not able to compile a simple test program.
[cmake]
[cmake] It fails with the following output:
[cmake]
[cmake] Change Dir: /Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection/build/CMakeFiles/CMakeScratch/TryCompile-k3Bzpe
[cmake]
[cmake] Run Build Command(s):/usr/local/bin/ninja -v cmTC_67870 && [1/2] /usr/local/bin/arm-none-eabi-gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -o CMakeFiles/cmTC_67870.dir/testCCompiler.c.o -c /Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection/build/CMakeFiles/CMakeScratch/TryCompile-k3Bzpe/testCCompiler.c
[cmake] [2/2] : && /usr/local/bin/arm-none-eabi-gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_67870.dir/testCCompiler.c.o -o cmTC_67870 && :
[cmake] FAILED: cmTC_67870
[cmake] : && /usr/local/bin/arm-none-eabi-gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_67870.dir/testCCompiler.c.o -o cmTC_67870 && :
[cmake] /usr/local/Cellar/gcc-arm-none-eabi/20200630/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol arch_paths_first; defaulting to 0000000000008018
[cmake] /usr/local/Cellar/gcc-arm-none-eabi/20200630/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /usr/local/Cellar/gcc-arm-none-eabi/20200630/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
[cmake] exit.c:(.text.exit+0x2c): undefined reference to `_exit'
[cmake] collect2: error: ld returned 1 exit status
[cmake] ninja: build stopped: subcommand failed.
[cmake]
[cmake]
[cmake]
[cmake]
[cmake]
[cmake] CMake will not be able to correctly generate this project.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:8 (project)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: /usr/local/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/local/bin/arm-none-eabi-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/local/bin/arm-none-eabi-g++ -S/Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection -B/Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection/build -G Ninja exited with code: 1
[main] Configuring project: SFND_Lidar_Obstacle_Detection
[proc] Executing command: /usr/local/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/local/bin/arm-none-eabi-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/local/bin/arm-none-eabi-g++ -S/Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection -B/Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection/build -G Ninja
[cmake] CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
[cmake] Compatibility with CMake < 2.8.12 will be removed from a future version of
[cmake] CMake.
[cmake]
[cmake] Update the VERSION argument <min> value or use a ...<max> suffix to tell
[cmake] CMake that the project does not need compatibility with older versions.
[cmake]
[cmake]
[cmake] Not searching for unused variables given on the command line.
[cmake] -- The C compiler identification is GNU 9.3.1
[cmake] -- The CXX compiler identification is GNU 9.3.1
[cmake] -- Checking whether C compiler has -isysroot
[cmake] -- Checking whether C compiler has -isysroot - yes
[cmake] -- Checking whether C compiler supports OSX deployment target flag
[cmake] -- Checking whether C compiler supports OSX deployment target flag - no
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - failed
[cmake] -- Check for working C compiler: /usr/local/bin/arm-none-eabi-gcc
[cmake] -- Check for working C compiler: /usr/local/bin/arm-none-eabi-gcc - broken
[cmake] CMake Error at /usr/local/Cellar/cmake/3.26.4/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
[cmake] The C compiler
[cmake]
[cmake] "/usr/local/bin/arm-none-eabi-gcc"
[cmake]
[cmake] is not able to compile a simple test program.
[cmake]
[cmake] It fails with the following output:
[cmake]
[cmake] Change Dir: /Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection/build/CMakeFiles/CMakeScratch/TryCompile-1ObpaH
[cmake]
[cmake] Run Build Command(s):/usr/local/bin/ninja -v cmTC_084a6 && [1/2] /usr/local/bin/arm-none-eabi-gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -o CMakeFiles/cmTC_084a6.dir/testCCompiler.c.o -c /Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection/build/CMakeFiles/CMakeScratch/TryCompile-1ObpaH/testCCompiler.c
[cmake] [2/2] : && /usr/local/bin/arm-none-eabi-gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_084a6.dir/testCCompiler.c.o -o cmTC_084a6 && :
[cmake] FAILED: cmTC_084a6
[cmake] : && /usr/local/bin/arm-none-eabi-gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_084a6.dir/testCCompiler.c.o -o cmTC_084a6 && :
[cmake] /usr/local/Cellar/gcc-arm-none-eabi/20200630/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol arch_paths_first; defaulting to 0000000000008018
[cmake] /usr/local/Cellar/gcc-arm-none-eabi/20200630/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /usr/local/Cellar/gcc-arm-none-eabi/20200630/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
[cmake] exit.c:(.text.exit+0x2c): undefined reference to `_exit'
[cmake] collect2: error: ld returned 1 exit status
[cmake] ninja: build stopped: subcommand failed.
[cmake]
[cmake]
[cmake]
[cmake]
[cmake]
[cmake] CMake will not be able to correctly generate this project.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:8 (project)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: /usr/local/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/local/bin/arm-none-eabi-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/local/bin/arm-none-eabi-g++ -S/Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection -B/Users/ivogeorg/git-repos/SFND_Lidar_Obstacle_Detection/build -G Ninja exited with code: 1
The execution cycle is all command line in a terminal. Set up project to build from within VSCode for the whole cycle.