Debug mode indeed provided some additional information:
[2022-03-08T12:02:34.000Z] 12:02:33.970 DEBUG: Probing compiler: [arm-none-eabi-gcc, -x, c, --std, c11, -mcpu=cortex-m7, -mfloat-abi=hard, -mfpu=fpv5-d16, -mthumb, -v, -dM, -E, -]
[2022-03-08T12:02:34.000Z] 12:02:33.975 DEBUG: stdout:
[2022-03-08T12:02:34.000Z]
[2022-03-08T12:02:34.000Z] 12:02:33.975 DEBUG: stderr:
[2022-03-08T12:02:34.000Z] execv: No such file or directory
Which is still a little confusing, since arm-none-eabi-gcc should be in PATH… (double checked it by adding explicit call just beforre calling sonnar-scanner in the script)