Open tibmanus opened 8 years ago
What CMake version do you have?
I suspect this is related to https://github.com/ARMmbed/target-mbed-gcc/commit/81c549c5e9ae22defe744c1b2492adffeaf6c492.
Should be fixed (at least temporarily) in 1.2.1. Possibly we will need to use CMAKE_TRY_COMPILE_TARGET_TYPE for gcc like we do for armcc (https://github.com/ARMmbed/target-mbed-armcc/blob/master/CMake/toolchain.cmake#L103) to support CMake >= 3.6
Leaving this open to track.
cc @bogdanm
CMake 3.5.1
ARM Internal Ref: IOTSFW-2464
yep
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
seems to be needed, at least for cmake 3.6 at otherwise it fails here
cc @bogdanm @thegecko looks like set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
will fix it
furthermore once 'fixed' in toolchain.cmake the output of cmake is not very nice as during the test not all config variables seem to be defined
-- Check for working C compiler: /home/bearsh/apps/gcc-arm-none-eabi/bin/arm-none-eabi-gcc
CMake Warning at /home/bearsh/projects/soundbear/soundbear/yotta_targets/nordic-nrf51822-gcc/CMake/toolchain.cmake:23 (message):
No definition of YOTTA_CFG_NRF51822_RAM_SIZE found, building image for
default 16K target.
Call Stack (most recent call first):
/home/bearsh/projects/soundbear/soundbear/build/soundbear-gcc/toolchain.cmake:9 (include)
/home/bearsh/projects/soundbear/soundbear/build/soundbear-gcc/CMakeFiles/3.6.0/CMakeSystem.cmake:6 (include)
/home/bearsh/projects/soundbear/soundbear/build/soundbear-gcc/CMakeFiles/CMakeTmp/CMakeLists.txt:3 (project)
-- Check for working C compiler: /home/bearsh/apps/gcc-arm-none-eabi/bin/arm-none-eabi-gcc -- works
-- Detecting C compiler ABI info
CMake Warning at /home/bearsh/projects/soundbear/soundbear/yotta_targets/nordic-nrf51822-gcc/CMake/toolchain.cmake:23 (message):
No definition of YOTTA_CFG_NRF51822_RAM_SIZE found, building image for
default 16K target.
Call Stack (most recent call first):
/home/bearsh/projects/soundbear/soundbear/build/soundbear-gcc/toolchain.cmake:9 (include)
/home/bearsh/projects/soundbear/soundbear/build/soundbear-gcc/CMakeFiles/3.6.0/CMakeSystem.cmake:6 (include)
/home/bearsh/projects/soundbear/soundbear/build/soundbear-gcc/CMakeFiles/CMakeTmp/CMakeLists.txt:3 (project)
-- Detecting C compiler ABI info - done
All my programs fail to build with the 1.2.0 update of mbed-gcc. I'm on Mac OS 11.4; arm-none-eabi-gcc is on stable 5.0-2015-q4-major, cmake 3.5.1. If I put back 1.1.0 mbed-gcc everything works perfectly.
The output for
yotta build
:CMakeOutput.log CMakeError.log