/bin/sh: -c: line 0: syntax error near unexpected token `('
I just found similar on Linux on a newly generated (by cubemx 4.18) project.
/bin/sh: 1: Syntax error: “(” unexpected
when building with :
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Dweak=attributeweak -Dpacked=attributepacked......
Parentheses like () means to process in a sub-shell in a posix shell, so this won’t work on Linux / OSX. The solution for me was to escape with " in the .cproject file as jea74 suggested - thanks !
I tried to post the exact changes I made for reference but the forum just truncates the post.
Anyway, just seen the post above about the bug report...