07-09-2019 12:47 AM - edited 07-09-2019 02:13 AM
I installed SDAccel. When I compile my code (Vector Addition example), I get the following error.
ERROR: Uncaught Exception -- ERROR: [XOCC 60-311] gcc not found. Please make sure XILINX_VIVADO_HLS is defined and points to a valid location.
Makefile:46: recipe for target 'build/zcu102_hw/vadd.xo' failed
make: *** [build/zcu102_hw/vadd.xo] Error 1
Can someone help me with setting up the environment variables?
I tried appending export XILINX_VIVADO_HLS = 1 in bashrc but it's not working.
07-09-2019 08:55 AM
Hello @wat2304, please make sure you are sourcing the settings64.sh script located inside the install area, generally /opt/Xilinx/SDx/201x.x/. This script will set up the necessary environment variables to run the tools.
07-10-2019 01:12 AM
07-10-2019 07:27 AM
Hi @wat2304, could you double check and make sure you have gcc and g++ installed on your system? They should be located at /usr/bin/gcc and /usr/bin/g++. This is part of the package list for the 2018.2 SDAccel Installation (UG1238). The environment variable listed in the error should not be required as long as the system can see where these compilers are.