Closed
Description
Description of defect
Client Lite 1.0.0 with mbed_app.json fixes (hence the fork) does not compile with Mbed OS 6.0.0 Alpha 3 using the baremetal profiles. It compiles still with Alpha 2.
Target(s) affected by this defect ?
NRF52840_DK + BG96 cellular
Toolchain(s) (name and version) displaying this defect ?
gcc-arm-none-eabi-9-2019-q4-major
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.0.0-alpha-3
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
1.10.1
How is this defect reproduced ?
git clone git@github.com:JanneKiiskila/pelion-client-lite-example.git
cd pelion-client-lite-example
git checkout mbed-os-6.0.0-alpha3
mbed deploy
mbed compile -m NRF52840_DK -t GCC_ARM --profile profiles/pico_lte_size.json --profile mbed-os/tools/profiles/extensions/minimal-printf.json
or
mbed compile -m NRF52840_DK -t GCC_ARM --profile profiles/pico_lte_size.json
Replace the `mbed_cloud_dev_credentials.c` file with one you get from Pelion portal from your own account before compiling, though.
This will fail with the following error:
[Warning] setup.cpp@429,9: unused variable 'ret' [-Wunused-variable]
Link: client-lite-example-internal
arm-none-eabi-cpp: fatal error: '-c' is not a valid option to the preprocessor
compilation terminated.
[ERROR] arm-none-eabi-cpp: fatal error: '-c' is not a valid option to the preprocessor
compilation terminated.
So, for some reason the `-c` option is no longer OK?
This still works with the Alpha 2.
If we leave out the --profile options, the target binary becomes 19 kilobytes larger, so that's not an option.
Even if you leave out the --profile minimal-printf, it fails.