-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Description of defect
Link error when trying to use the small CLIB with cmake
armclang: error: no such file or directory: '"--library_type=microlib"'
[16/260] Building C object CMakeFiles\mbed-os-example-blinky.dir\mbed-os\cmsis\CMSIS_5\CMSIS\RTOS2\RTX\Source\rtx_kernel.o
ninja: build stopped: subcommand failed.
Target(s) affected by this defect ?
DISCO L475
Toolchain(s) (name and version) displaying this defect ?
Arm Compiler 6
What version of Mbed-os are you using (tag or sha) ?
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
NA
How is this defect reproduced ?
- Import mbed-os-example-blinky
- Switch app and Mbed OS to feature-cmake
- Configure:
mbedtools configure -m DISCO_L475VG_IOT01A -t ARM
- Update .mbedbuild\mbed_config.cmake and enable the small CLIB instead of std:
set(MBED_C_LIB "small" CACHE STRING "")
- Compile
mkdir build && cd build && cmake .. -GNinja && cmake --build .
Metadata
Metadata
Assignees
Labels
No labels