Unable to compile new mbed project

Hello. I created a new project from Platformio home. I’m using the Nucleo L476RG board and the mbed framework and I want mbed RTOS too. Here is my platformio.ini file :

platform = ststm32
board = nucleo_l476rg
framework = mbed
build_flags = -std=gnu++14 -D PIO_FRAMEWORK_MBED_RTOS_PRESENT

The project compiles without the -D PIO_FRAMEWORK_MBED_RTOS_PRESENT flag, but as soon as I add it I get an error from the linker :

I have another project created a few months ago that compiles fine with the same setup. How is this even possible ?

What am I doing wrong ?

Thank you.

Could you update ststm32 dev/platform and try build again?