cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with "--multi-lib-config" error when using ST-ARM-CLANG in VS Code

amazone
Visitor
hi dear,
I created a project by selecting CMake as the toolchain and ST-ARM-CLANG as the compiler using the STM32Cube extension for VS Code (3.7.0) on macOS. Attached below are my configuration settings.
 
amazone_0-1766073251914.png

  

amazone_2-1766073320724.png

 

amazone_3-1766073380569.png

The project builds successfully without any issues in the terminal. However, I am seeing the following error in the VS Code editor:

"error: unknown argument: '--multi-lib-config=...'"

"message": "Unknown argument: '--multi-lib-config=/Users/myName/Library/Application Support/stm32cube/bundles/st-arm-clang-hybrid-19_1_6-description/0.0.6+st.1/etc/multilib.gnu_tools_for_stm32.yaml'",
clang(drv_unknown_argument)
 
Please let me know if there`s a solution for this. Thanks!
 
Also, I would like to know how to enable float support for printf() in the CMake-based ST-ARM-CLANG environment.
 
 
1 REPLY 1
Julien D
ST Employee

Hi @amazone,

I've just tried using STM32CubeMX 6.16 to generate a project for my F446RE-Nucleo board, and I was able to open it in VSCode and build it on MacOS.

Maybe you missed doing the project setup?

JulienD_0-1766080431323.png

If so you can force it manually via the Setup STM32Cube Project action.

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.