SSumm3
New Contributor
7 years agoIntel HLS Examples not compiling for x86-64
I have successfully installed the Intel HLS compiler with Quartus Prime 18.1 Standard Edition. However when i run the following command...
make test-x86-64...I get the following output
i++ counter.cpp -march=x86-64 -o test-x86-64
In file included from counter.cpp:1:
In file included from /home/usman/intelFPGA/18.1/hls/include/HLS/hls.h:11:
In file included from /home/usman/intelFPGA/18.1/hls/include/HLS/hls_internal.h:10:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/stdlib.h:36:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cstdlib:76:
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/std_abs.h:55:26: error:
use of undeclared identifier '__builtin_labs'
abs(long __i) { return __builtin_labs(__i); }
^
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/std_abs.h:60:31: error:
use of undeclared identifier '__builtin_llabs'
abs(long long __x) { return __builtin_llabs (__x); }
^
2 errors generated.
HLS x86-64 compile FAILED.
Makefile:40: recipe for target 'test-x86-64' failed
make: *** [test-x86-64] Error 1The compilation works for test-gcc option. Please tell me how to resolve the issue.
I am using Ubuntu 18.04.1 LTS.