-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception: Couldn't find Xilinx ap_ headers #56
Comments
With Vivado installed you should setup the tools like (change for your Vivado install path): You can check that one of the required environment variables is set like: Then during the logging of the example you should see a message like: |
Greetings I used the same command line 'source /path/to/Xilinx/Vivado/2019.2/settings.sh' but still getting the same error. Any help i can get from this 522 if ap_include is None: Exception: Couldn't find Xilinx ap_ headers. Source the Vivado/Vitis HLS toolchain, or set XILINX_AP_INCLUDE environment variable. |
Could you run the following and report back what is says?
Can you check that the path that your sourced the settings from is correct? |
Its running fine now, the conifer can find the Xilinx on my env. Thank You! |
But theres an error that also encounter during the execution on i will share it 529 if ret_val != 0: Exception: Failed to compile project my_prj During handling of the above exception, another exception occurred: |
Can you please share more of the error message? |
sh: line 1: g++: command not foundException Traceback (most recent call last) Exception: Failed to compile project proj During handling of the above exception, another exception occurred: Exception Traceback (most recent call last) File ~/.local/lib/python3.12/site-packages/conifer/backends/xilinxhls/writer.py:533, in XilinxHLSModel.compile(self) Exception: Failed to compile project proj |
Greetings! Is there any insights that can help fix this error. @thesps . I was able to get the build() function runing without any issue, but the exception showing up in the 533, does it affect on the build function also? |
@thesps I found the solution for this particulary error, the compilation was failing due the gcc-gcc++ lib dev, for fedora user i add to move files from (sudo cp /usr/include/c++/13/i686-redhat-linux/bits/os_defines.h /usr/include/c++/13/bits) and python3-devel dependecies. Thank You! |
I am running an Ubuntu virtual machine (Ubuntu Desktop 18.04 LTS and have installed Vivado 2019.2. I have created a python environment and have installed conifer using
pip install conifer
.However, when running the example scripts I run into the following error:
Exception: Couldn't find Xilinx ap_ headers. Source the Vivado/Vitis HLS toolchain, or set XILINX_AP_INCLUDE environment variable.
What is the fix here?
The text was updated successfully, but these errors were encountered: