# Fix “syntax error near unexpected token `('” in Eclipse IDE provided with FX3 SDK - KBA223154

Version 1

Version: **

Question:

The following error message is displayed while compiling projects using the Eclipse IDE provided with FX3 SDK.

C:/Program Files (x86)/Cypress/EZ-USB FX3 SDK/1.3/ARM GCC/bin/cs-make --no-print-directory post-build

/usr/bin/sh: -c: line 0: syntax error near unexpected token `('

/usr/bin/sh: -c: line 0: `C:/Program Files (x86)/Cypress/EZ-USB FX3 SDK/1.3/ARM GCC/bin/cs-make --no-print-directory post-build'

cs-make: *** [MetaSAQ_FX3.elf] Error 1

Why does this happen? How do I fix the error?

This error occurs if the UNIX shell binaries of other tools such as GIT are included in the system PATH. If the sh.exe binary provided by these tools is available, Eclipse will use this binary as the shell environment instead of the Microsoft cmd.exe.. Most versions of sh.exe cannot handle file paths that include the ‘(‘ character, causing the error.

You can fix this error by forcing the Eclipse IDE to use cmd.exe as the shell environment. To do this, add a file makefile.init with the following content to the Eclipse project:

SHELL=C:\Windows\system32\cmd.exe

You need to add this file to every Eclipse project on the user system.