How to specify toolchain path in mbed CLI2?

do you have the arm-none-eabi-gcc in the search path? For linux/wsl I had that in the path in .profile:
PATH=$PATH:/opt/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin

but it should work with setting the compiler path in CMakelists.txt.

The error msg sounds like gcc is called for asm, shouldn’t it be arm-none-eabi-as ?

There is also a tool cmake-gui, this shows also the cached settings.

edit:
I could not find the setting for the path.
in mbed-os/tools/cmake/toolchainss/GCC_ARM.cmake you’ll find:

# specify the cross compiler.  Use cache variables so that VS Code can detect the compiler from the cache.
set(CMAKE_C_COMPILER arm-none-eabi-gcc CACHE FILEPATH "C Compiler")
set(CMAKE_CXX_COMPILER arm-none-eabi-g++ CACHE FILEPATH "CXX Compiler")
set(CMAKE_ASM_COMPILER arm-none-eabi-gcc CACHE FILEPATH "ASM Compiler")

this is for mbed-ce, in mbed-os it is the same except the part witch CACHE is missing. But that is for VSC.