Eclipse setup issue in Mac OS - Eclipse cannot find XCC in the path

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
alkopop79
New User
Posts: 3
Joined: Wed Nov 23, 2022 11:44 am

Eclipse setup issue in Mac OS - Eclipse cannot find XCC in the path

Post by alkopop79 »

I have been following this tutorial to set up Eclipse for XCC: https://www.xmos.ai/documentation/XM-01 ... index.html

So far I have managed to install XTools and on the terminal I can invoke the

Code: Select all

xcc -version
command and verify the package is working (I have even managed to run a file with sim successfully).

However Eclipse does not seem to be able to find the XCC tools despite following the tutorial. The steps I have made so far:

1. Xtools installed and runs on Terminal

2. Created the necessary files as per the tutorial Image

3. In Properties of the project, in the Presporcessor includes, macros tab I have adjusted the “Command to get compiler specs” to read:

Code: Select all

xcc $FLAGS -march=xs2a -E -P -vv -dD "$INPUTS"
Image

4. Still in Properties (project), I have unticked “Use default build command” and set “Build command” to bash build.sh

5. Finally set the external toolchain to select the bash script

When I finally try to build the project, I get this error on the console:

Code: Select all

11:02:46 **** Incremental Build of configuration Default for project single-tile ****
"bash build.sh" all 
Cannot run program "bash build.sh": Unknown reason

Error: Program "bash build.sh" not found in PATH
PATH=[/bin:/usr/bin:/usr/sbin:/sbin]

11:02:46 Build Failed. 1 errors, 0 warnings. (took 3ms)
May I add, I have ran the setenv script and the xcc tools work fine on the Terminal. What am I missing?


RitchRock
XCore Addict
Posts: 186
Joined: Tue Jan 17, 2017 9:25 pm

Post by RitchRock »

To confirm, you have gone through the following steps? https://www.xmos.ai/documentation/XM-01 ... index.html
Post Reply