Skip to content
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

hls_stream.h: unknown type name 'type_info' #5

Open
ariesgun opened this issue Apr 27, 2017 · 1 comment
Open

hls_stream.h: unknown type name 'type_info' #5

ariesgun opened this issue Apr 27, 2017 · 1 comment

Comments

@ariesgun
Copy link

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.

@jingpu
Copy link
Owner

jingpu commented Apr 28, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants