Halide-HLS icon indicating copy to clipboard operation
Halide-HLS copied to clipboard

hls_stream.h: unknown type name 'type_info'

Open ariesgun opened this issue 8 years ago • 1 comments

Hi @jingpu ,

I have an error when I try to synthesize the C HLS using Vivado HLS 2016.4. It seems that when compiling with `std=c++0x or std=c++11' causes this error.

Pragma processor failed: In file included from hls_target.cpp:1: In file included from ./hls_target.h:7: In file included from C:/cadappl/Vivado/2016.4/Vivado_HLS/2016.4/include\hls_stream.h:79: In file included from C:/cadappl/Vivado/2016.4/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\queue:60: In file included from C:/cadappl/Vivado/2016.4/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\deque:61: In file included from C:/cadappl/Vivado/2016.4/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\bits/allocator.h:48: In file included from C:/cadappl/Vivado/2016.4/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2/x86_64-w64-mingw32\bits/c++allocator.h:34: In file included from C:/cadappl/Vivado/2016.4/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\ext/new_allocator.h:33: In file included from C:/cadappl/Vivado/2016.4/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\new:41: In file included from C:/cadappl/Vivado/2016.4/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\exception:150: C:/cadappl/Vivado/2016.4/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\exception_ptr.h:132:13: error: unknown type name 'type_info' const type_info* ^ In file included from hls_target.cpp:1:

When I tried to remove the std=c++0x, I got an error related to static_assert() which is not supported. I don't if this happens only in Vivado HLS 2016.4 or not. Is it better to remove the static_assert and change it with something else? Or is there any configuration that I missed in order to properly compile the hls_stream.h?

Thanks.

ariesgun avatar Apr 27 '17 14:04 ariesgun

I think a more fundamental problem is that we don't support Windows well (see #2 ). I suggest working on a Linux machine to get started if possible.

If you are willing to debug this build error on Windows, it might be good to look at this (http://stackoverflow.com/questions/12938663/clang-on-cygwin-with-c11), or switch to "gcc" instead of "clang" in the Vivado_HLS project setting.

jingpu avatar Apr 28 '17 03:04 jingpu