Altera_Forum
Honored Contributor
8 years agoIntel HLS compiler GCC Error
Hi,
I'm trying to get the examples for the intel HLS compiler to work (included with Quartus Prime 17.1). As per the initialization requirements, I run: source init_hls.sh I then get an error regarding vsim not being on the path. No problem, I run the following command: export PATH=$PATH:/opt/intelFPGA/17.1/modelsim_ase/bin and try again: source init_hls.sh I now and able to use i++! So, to compile the example, I run: make test-gpp and that works. Creates an executable, and runs with "Success" as the output. Now the real test: make test-x86-64 and poor alas, it fails. Error: i++ counter.cpp -march=x86-64 -o test-x86-64 In file included from counter.cpp:1: In file included from /opt/intelFPGA/17.1/hls/include/HLS/hls.h:11: /opt/intelFPGA/17.1/hls/include/HLS/hls_internal.h:5:10: fatal error: 'queue' file not found# include <queue> ^ 1 error generated. HLS x86-64 compile FAILED. make: *** [Makefile:40: test-x86-64] Error 1 This is likely an issue related to GCC. <queue> is a part of the standard GCC library, but why does it not find it when using the i++ command? I've tried a plethora of things to get this to work, including using the 'include' directive in the makefile to where queue is found. This leads to deeper and deeper problems. I've also tried pointing to the GCC libraries included in the modelsim directory. Same problems as using the system GCC libraries and header files. Any thoughts on where I'm going wrong? --I'm using Fedora 26 64bit.