Skip to content

CMake: link error when using cmake and L475 + small CLIB #13858

@MarceloSalazar

Description

@MarceloSalazar

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) ?

d64133e

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 .

@0xc0170 @hugueskamba

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions