Export of sample program to CMake will not compile
- Dominant language
- Python
- Stars
- 339
- Forks
- 187
- PR merge metrics
- No merged PRs in 30d
Description
Windows 10 OS, latest mbed cli release.
mbed import https://github.com/ARMmbed/mbed-os-example-blinky
cd mbed-os-example-blinky
mbed export --target NUCLEO_F411RE --ide cmake_gcc_arm
mkdir out
cd out
cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\source\repos\arm-cmake-toolchains\arm-gcc-toolchain.cmake -DCMAKE_BUILD_TYPE=Debug
The toolchain file just sets the ARM GCC location. Compile fails with the three most recent ARM GCC toolchain releases
7-2017-q4-major
arm-none-eabi-g++.exe: error: unrecognized command line option '-rdynamic'
8-2018-q4-major (this looks like an ARM compiler bug, there are related issues filed)
arm-none-eabi-objcopy: mbed-os-example-blinky.hex 64-bit address 0x4b4fa308000000 out of range for Intel Hex file
8-2019-q3-update
arm-none-eabi-g++.exe: error: unrecognized command line option '-rdynamic'
I can find no way to control where the -rdymaic flag is being inserted here. I don't see anything in the CMakeLists.txt setting that.
The other thing is why is a blink sample pulling in the world to compile? This takes over 10 mins to compile before hitting the error in linking.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.