UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
2,309 Views
Registered: ‎10-19-2015

Building Xilinx Binary Neural Network in HLS Error on Windows Machine.


I am trying to build the Xilinx BNN HLS code from here: https://github.com/DjImene/Xilinx-BNN-PYNQ

In the repo, there is a section named "Hardware Design Rebuild".

I followed the instruction there, and when I issue following command, I got an error.

 

 

> make-hw.sh cnv-pynq pynq a

But, I am getting following error. Is there any suggestions to pass this error ?

I am on Windows machine and using Vivado HLS 2016.4.

 

----------------------------------------Here is the error that I get---------------------------------------------

WARNING: [HLS 200-40] In file included from ../../cnv-pynq/hw/top.cpp:42:
In file included from C:/projects/Xilinx-BNN-PYNQ/bnn/src//library/hls\bnn-library.h:43:
In file included from C:/Xilinx/Vivado_HLS/2016.4/include\hls_stream.h:79:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\queue:60:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\deque:61:
In file included from C:/Xilinx/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:/Xilinx/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:/Xilinx/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:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\new:41:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\exception:150:
C:/Xilinx/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 ../../cnv-pynq/hw/top.cpp:42:
In file included from C:/projects/Xilinx-BNN-PYNQ/bnn/src//library/hls\bnn-library.h:43:
In file included from C:/Xilinx/Vivado_HLS/2016.4/include\hls_stream.h:79:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\queue:60:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\deque:61:
In file included from C:/Xilinx/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:/Xilinx/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:/Xilinx/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:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\new:41:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\exception:151:
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:62:5: error: the parameter for this explicitly-defaulted copy constructor is const, but a member or base requires it to be non-const
nested_exception(const nested_exception&) = default;
^
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:64:23: error: the parameter for this explicitly-defaulted copy assignment operator is const, but a member or base requires it to be non-const
nested_exception& operator=(const nested_exception&) = default;
^
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:77:28: error: exception specification in declaration does not match previous declaration
inline nested_exception::~nested_exception() = default;
^
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:66:20: note: previous declaration is here
inline virtual ~nested_exception();
^
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:122:61: error: redefinition of default argument
__throw_with_nested(_Ex&& __ex, const nested_exception* = 0)
^ ~
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:110:56: note: previous definition is here
__throw_with_nested(_Ex&&, const nested_exception* = 0)
^ ~
5 errors generated.
WARNING: [HLS 200-40]
ERROR: [HLS 200-70] Compilation errors found:
Pragma processor failed: In file included from ../../cnv-pynq/hw/top.cpp:42:
In file included from C:/projects/Xilinx-BNN-PYNQ/bnn/src//library/hls\bnn-library.h:43:
In file included from C:/Xilinx/Vivado_HLS/2016.4/include\hls_stream.h:79:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\queue:60:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\deque:61:
In file included from C:/Xilinx/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:/Xilinx/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:/Xilinx/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:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\new:41:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\exception:150:
C:/Xilinx/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 ../../cnv-pynq/hw/top.cpp:42:
In file included from C:/projects/Xilinx-BNN-PYNQ/bnn/src//library/hls\bnn-library.h:43:
In file included from C:/Xilinx/Vivado_HLS/2016.4/include\hls_stream.h:79:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\queue:60:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\deque:61:
In file included from C:/Xilinx/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:/Xilinx/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:/Xilinx/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:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\new:41:
In file included from C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\exception:151:
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:62:5: error: the parameter for this explicitly-defaulted copy constructor is const, but a member or base requires it to be non-const
nested_exception(const nested_exception&) = default;
^
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:64:23: error: the parameter for this explicitly-defaulted copy assignment operator is const, but a member or base requires it to be non-const
nested_exception& operator=(const nested_exception&) = default;
^
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:77:28: error: exception specification in declaration does not match previous declaration
inline nested_exception::~nested_exception() = default;
^
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:66:20: note: previous declaration is here
inline virtual ~nested_exception();
^
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:122:61: error: redefinition of default argument
__throw_with_nested(_Ex&& __ex, const nested_exception* = 0)
^ ~
C:/Xilinx/Vivado_HLS/2016.4/win64/tools/clang/bin\..\lib\clang\3.1/../../../include/c++/4.5.2\nested_exception.h:110:56: note: previous definition is here
__throw_with_nested(_Ex&&, const nested_exception* = 0)
^ ~
5 errors generated.
Failed checking during preprocessing.
while executing
"source C:/projects/Xilinx-BNN-PYNQ/bnn/src/network/output/hls-syn/cnv-pynq/sol1/csynth.tcl"
invoked from within
"hls::main C:/projects/Xilinx-BNN-PYNQ/bnn/src/network/output/hls-syn/cnv-pynq/sol1/csynth.tcl"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$args"
(procedure "hls_proc" line 5)
invoked from within

0 Kudos
1 Reply
Observer benzao
Observer
1,178 Views
Registered: ‎02-04-2014

Re: Building Xilinx Binary Neural Network in HLS Error on Windows Machine.

I meet the same issue. when I use -std=c++0x flags, BNN compile failured.

0 Kudos