- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I am trying to get a simple program working, but I can't seem to compile it with i++.
I traced the error back to this include line. If I comment it, I have a hello world program working, but otherwise, it fails to compile. # include "HLS/ac_int.h" Here is the full code:#include "HLS/stdio.h"# include "HLS/ac_int.h"
int main(void)
{
printf("Hello World");
return 0;
}
From the errors below, I would think that I am missing some header files, but I don't know which ones or where I can find these files. I am running in CentOS 7 I am running this command: $ i++ -v -o test -march=x86-64 main.cpp and receiving this output: Target FPGA part name: 10AX115U1F45I1SG Target FPGA family name: Arria 10 Target FPGA speed grade: -2 Analyzing main.cpp In file included from main.cpp:14: In file included from /opt/altera/17.1/hls/include/HLS/ac_int.h:99: In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/iostream:38: In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ostream:37: In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ios:41: In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/bits/ios_base.h:38: /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ext/atomicity.h:48:45: error: use of undeclared identifier '__ATOMIC_ACQ_REL' { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^ /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ext/atomicity.h:52:38: error: use of undeclared identifier '__ATOMIC_ACQ_REL' { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^ In file included from main.cpp:14: In file included from /opt/altera/17.1/hls/include/HLS/ac_int.h:108: In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/algorithm:61: In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/bits/stl_algo.h:59: /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/cstdlib:165:26: error: use of undeclared identifier '__builtin_labs' abs(long __i) { return __builtin_labs(__i); } ^ /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/cstdlib:173:31: error: use of undeclared identifier '__builtin_llabs' abs(long long __x) { return __builtin_llabs (__x); } ^ 4 errors generated. HLS x86-64 compile FAILED. Any help would be appreciated.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
HLS Compiler not is supported on CentOS 7 may because of this you may get this error. The code works fine on windows 10. http://dl.altera.com/requirements/17.1/ Best Regards, Anand Raj Shankar (This message was posted on behalf of Intel Corporation)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page