cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
meet.bais
Participant
Participant
1,946 Views
Registered: ‎10-22-2018

SDS compiler error

make pre-build main-build
sdsoc_make_clean Debug
' '
'Building file: ../src/xf_histogram_accel.cpp'
'Invoking: SDS++ Compiler'
sds++ -Wall -O0 -g -I"../src" -I"C:\Users\Meet\Desktop\opencv-3.0.0\include\opencv2" -I"C:\Users\Meet\git\xfopencv\include" -c -fmessage-length=0 -MT"src/xf_histogram_accel.o" -MMD -MP -MF"src/xf_histogram_accel.d" -MT"src/xf_histogram_accel.o" -o "src/xf_histogram_accel.o" "../src/xf_histogram_accel.cpp" -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "zcu104"
Analyzing source for RTL template usage
Create data motion intermediate representation

C:\Users\Meet\workspace\kuchtohho\Debug>C:\Xilinx\SDx\2018.3\llvm-clang\win64\llvm\bin\clang.exe -I../src -IC:\Users\Meet\Desktop\opencv-3.0.0\include\opencv2 -IC:\Users\Meet\git\xfopencv\include -Wall -g -fmessage-length=0 -MMD -MP -D __SDSCC__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -I C:/Xilinx/SDx/2018.3/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I C:/Xilinx/Vivado/2018.3/include -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1 -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/aarch64-linux-gnu -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/backward -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.3.1/include -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.3.1/include-fixed -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 -emit-llvm -S C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp -o C:/Users/Meet/workspace/kuchtohho/Debug/_sds/.llvm/src/xf_histogram_accel.s
C:/Xilinx/Vivado/2018.3/include\ap_int_special.h:89:1: warning: 'complex' defined as a struct template here but previously declared as a class template [-Wmismatched-tags]
struct complex<ap_int<_AP_W> > {
^
C:/Xilinx/Vivado/2018.3/include\ap_int_special.h:61:24: note: did you mean struct here?
template<typename _Tp> class complex;
^~~~~
struct
C:/Xilinx/Vivado/2018.3/include\ap_fixed_special.h:89:1: warning: 'complex' defined as a struct template here but previously declared as a class template [-Wmismatched-tags]
struct complex<ap_fixed<_AP_W, _AP_I, _AP_Q, _AP_O, _AP_N> > {
^
C:/Xilinx/Vivado/2018.3/include\ap_fixed_special.h:61:24: note: did you mean struct here?
template<typename _Tp> class complex;
^~~~~
struct
C:/Xilinx/Vivado/2018.3/include\ap_int_special.h:61:24: note: did you mean struct here?
template<typename _Tp> class complex;
^~~~~
struct
C:\Users\Meet\git\xfopencv\include\common/xf_structs.h:685:9: warning: unused variable 'bitdepth' [-Wunused-variable]
int bitdepth = pixdepth / XF_CHANNELS(T,NPPC); //Total bits that make up each channel of the pixel
^
C:\Users\Meet\git\xfopencv\include\common/xf_structs.h:724:6: warning: unused variable 'diff_ptr' [-Wunused-variable]
int diff_ptr = 0;
^
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:53:7: warning: unused variable 'flag' [-Wunused-variable]
bool flag =0;
^
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:55:2: warning: unused label 'HIST_INITIALIZE_LOOP' [-Wunused-label]
HIST_INITIALIZE_LOOP:
^~~~~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:84:4: warning: unused label 'EXTRACT_UPDATE' [-Wunused-label]
EXTRACT_UPDATE:
^~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:71:3: warning: unused label 'HISTOGRAM_COL_LOOP' [-Wunused-label]
HISTOGRAM_COL_LOOP:
^~~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:67:2: warning: unused label 'HISTOGRAM_ROW_LOOP' [-Wunused-label]
HISTOGRAM_ROW_LOOP:
^~~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:105:2: warning: unused label 'COPY_LOOP' [-Wunused-label]
COPY_LOOP:
^~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:155:52: warning: suggest braces around initialization of subobject [-Wmissing-braces]
uint32_t hist_array[XF_CHANNELS(SRC_T,NPC)][256]={0};
^
{}
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:6: note: in instantiation of function template specialization 'xf::calcHist<0, 2160, 3840, 1>' requested here
xf::calcHist<TYPE, HEIGHT, WIDTH, _NPPC> (imgInput, histogram);
^
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:47:54: warning: suggest braces around initialization of subobject [-Wmissing-braces]
uint32_t tmp_hist[(PLANES<<XF_BITSHIFT(NPC))][256]={0};
^
{}
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:159:2: note: in instantiation of function template specialization 'xf::xFHistogramKernel<0, 2160, 3840, 0, 1, 1, 1920, 1>' requested here
xFHistogramKernel<SRC_T, ROWS, COLS, XF_DEPTH(SRC_T,NPC), NPC, XF_WORDWIDTH(SRC_T,NPC), ((COLS>>(XF_BITSHIFT(NPC)))>>1), XF_CHANNELS(SRC_T,NPC)>
^
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:6: note: in instantiation of function template specialization 'xf::calcHist<0, 2160, 3840, 1>' requested here
xf::calcHist<TYPE, HEIGHT, WIDTH, _NPPC> (imgInput, histogram);
^
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:48:55: warning: suggest braces around initialization of subobject [-Wmissing-braces]
uint32_t tmp_hist1[(PLANES<<XF_BITSHIFT(NPC))][256]={0};
^
{}

C:\Users\Meet\workspace\kuchtohho\Debug>exit /b 0
Compiling C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_config.h:37,
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:31:
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:31:
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp: In instantiation of 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]':
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:53:7: warning: unused variable 'flag' [-Wunused-variable]
bool flag =0;
^~~~
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:55:2: warning: label 'HIST_INITIALIZE_LOOP' defined but not used [-Wunused-label]
HIST_INITIALIZE_LOOP:
^~~~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:67:2: warning: label 'HISTOGRAM_ROW_LOOP' defined but not used [-Wunused-label]
HISTOGRAM_ROW_LOOP:
^~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:71:3: warning: label 'HISTOGRAM_COL_LOOP' defined but not used [-Wunused-label]
HISTOGRAM_COL_LOOP:
^~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:84:4: warning: label 'EXTRACT_UPDATE' defined but not used [-Wunused-label]
EXTRACT_UPDATE:
^~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:105:2: warning: label 'COPY_LOOP' defined but not used [-Wunused-label]
COPY_LOOP:
^~~~~~~~~
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_config.h:37,
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:31:
C:\Users\Meet\git\xfopencv\include/common/xf_structs.h: In instantiation of 'struct xf::Mat<0, 2160, 3840, 1>::DATATYPE':
C:\Users\Meet\git\xfopencv\include/common/xf_structs.h:625:11: required from 'typename DataType<T, NPC>::name xf::Mat<T, ROWS, COLS, NPC>::read(int) [with int T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; typename DataType<T, NPC>::name = ap_uint<8>]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:77:11: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:\Users\Meet\git\xfopencv\include/common/xf_structs.h:397:72: warning: ignoring packed attribute because of unpacked non-POD field 'DataType<0, 1>::cname xf::Mat<0, 2160, 3840, 1>::DATATYPE::chnl [1][1]'
XF_CTUNAME(T,NPC) chnl[XF_NPIXPERCYCLE(NPC)][XF_CHANNELS(T,NPC)];
^
from C:/Xilinx/Vivado/2018.3/include/ap_int.h:54,
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_config.h:35,
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:31:
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 10; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1481:1: required from 'ap_private<_AP_W, _AP_S, true>& ap_private<_AP_W, _AP_S, true>::operator=(int) [with int _AP_W = 10; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int.h:283:3: required from 'ap_uint<_AP_W>::ap_uint(int) [with int _AP_W = 10]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:56:18: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
: (excess_bits ? (((uint64_t)VAL) << (excess_bits)) >> (excess_bits)
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: (uint64_t)VAL));
~~~~~~~~~~~~~~~~
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 5; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1481:1: required from 'ap_private<_AP_W, _AP_S, true>& ap_private<_AP_W, _AP_S, true>::operator=(int) [with int _AP_W = 5; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int.h:283:3: required from 'ap_uint<_AP_W>::ap_uint(int) [with int _AP_W = 5]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:59:19: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 13; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1481:1: required from 'ap_private<_AP_W, _AP_S, true>& ap_private<_AP_W, _AP_S, true>::operator=(int) [with int _AP_W = 13; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int.h:283:3: required from 'ap_uint<_AP_W>::ap_uint(int) [with int _AP_W = 13]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:68:18: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 30; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1426:20: required from 'ap_private<_AP_W, _AP_S>& ap_private<_AP_W, _AP_S, true>::operator=(const ap_private<_AP_W1, _AP_S1>&) [with int _AP_W1 = 31; bool _AP_S1 = false; int _AP_W = 30; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1355:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::plus operator+(const ap_int_base<_AP_W2, _AP_S2>&, const ap_int_base<_AP_W3, _AP_S3>&) [with int _AP_W = 29; bool _AP_S = false; int _AP_W2 = 13; bool _AP_S2 = false; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::plus = ap_uint<30>]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:77:42: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 8; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1481:1: required from 'ap_private<_AP_W, _AP_S, true>& ap_private<_AP_W, _AP_S, true>::operator=(int) [with int _AP_W = 8; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int.h:283:3: required from 'ap_uint<_AP_W>::ap_uint(int) [with int _AP_W = 8]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:80:13: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 9; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1481:1: required from 'ap_private<_AP_W, _AP_S, true>& ap_private<_AP_W, _AP_S, true>::operator=(int) [with int _AP_W = 9; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int.h:283:3: required from 'ap_uint<_AP_W>::ap_uint(int) [with int _AP_W = 9]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:85:19: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 32; bool _AP_S = true]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1481:1: required from 'ap_private<_AP_W, _AP_S, true>& ap_private<_AP_W, _AP_S, true>::operator=(int) [with int _AP_W = 32; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:245:3: required from 'ap_int_base<_AP_W, _AP_S>::ap_int_base(int) [with int _AP_W = 32; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1600:1: required from 'bool operator<(const ap_int_base<_AP_W2, _AP_S2>&, int) [with int _AP_W = 10; bool _AP_S = false]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:56:24: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 1; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1481:1: required from 'ap_private<_AP_W, _AP_S, true>& ap_private<_AP_W, _AP_S, true>::operator=(int) [with int _AP_W = 1; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:245:3: required from 'ap_int_base<_AP_W, _AP_S>::ap_int_base(int) [with int _AP_W = 1; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:741:16: required from 'const typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W, _AP_S>::arg1 ap_int_base<_AP_W, _AP_S>::operator++(int) [with int _AP_W = 10; bool _AP_S = false; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W, _AP_S>::arg1 = ap_uint<10>]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:56:31: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 16; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1480:1: required from 'ap_private<_AP_W, _AP_S, true>& ap_private<_AP_W, _AP_S, true>::operator=(short unsigned int) [with int _AP_W = 16; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:244:3: required from 'ap_int_base<_AP_W, _AP_S>::ap_int_base(short unsigned int) [with int _AP_W = 16; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1599:1: required from 'bool operator<(const ap_int_base<_AP_W2, _AP_S2>&, short unsigned int) [with int _AP_W = 13; bool _AP_S = false]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:68:29: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 33; bool _AP_S = true]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1426:20: required from 'ap_private<_AP_W, _AP_S>& ap_private<_AP_W, _AP_S, true>::operator=(const ap_private<_AP_W1, _AP_S1>&) [with int _AP_W1 = 34; bool _AP_S1 = true; int _AP_W = 33; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1355:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::plus operator+(const ap_int_base<_AP_W2, _AP_S2>&, const ap_int_base<_AP_W3, _AP_S3>&) [with int _AP_W = 13; bool _AP_S = false; int _AP_W2 = 32; bool _AP_S2 = true; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::plus = ap_int<33>]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1469:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_SIZE_int, true>::plus operator+(const ap_int_base<_AP_W2, _AP_S2>&, int) [with int _AP_W = 13; bool _AP_S = false; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_SIZE_int, true>::plus = ap_int<33>]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:72:55: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 31; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1646:3: required from 'ap_private<_AP_W, _AP_S, true>::ap_private(long unsigned int) [with int _AP_W = 31; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2065:46: required from 'typename ap_private<_AP_W, _AP_S, true>::RType<_AP_W2, _AP_S2>::plus ap_private<_AP_W, _AP_S, true>::operator+(const ap_private<_AP_W1, _AP_S1>&) const [with int _AP_W1 = 30; bool _AP_S1 = false; int _AP_W = 30; bool _AP_S = false; typename ap_private<_AP_W, _AP_S, true>::RType<_AP_W2, _AP_S2>::plus = ap_private<31, false, true>]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1355:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::plus operator+(const ap_int_base<_AP_W2, _AP_S2>&, const ap_int_base<_AP_W3, _AP_S3>&) [with int _AP_W = 29; bool _AP_S = false; int _AP_W2 = 13; bool _AP_S2 = false; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::plus = ap_uint<30>]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:77:42: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 29; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1426:20: required from 'ap_private<_AP_W, _AP_S>& ap_private<_AP_W, _AP_S, true>::operator=(const ap_private<_AP_W1, _AP_S1>&) [with int _AP_W1 = 58; bool _AP_S1 = false; int _AP_W = 29; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1354:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::mult operator*(const ap_int_base<_AP_W2, _AP_S2>&, const ap_int_base<_AP_W3, _AP_S3>&) [with int _AP_W = 13; bool _AP_S = false; int _AP_W2 = 16; bool _AP_S2 = false; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::mult = ap_uint<29>]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1468:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_SIZE_short, false>::mult operator*(const ap_int_base<_AP_W2, _AP_S2>&, short unsigned int) [with int _AP_W = 13; bool _AP_S = false; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_SIZE_short, false>::mult = ap_uint<29>]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:77:30: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 33; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1658:20: required from 'ap_private<_AP_W, _AP_S, true>::ap_private(const ap_private<_AP_W1, _AP_S1, _AP_OPT>&) [with int _AP_W1 = 10; bool _AP_S1 = false; bool _AP_OPT = true; int _AP_W = 33; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2646:34: required from 'bool ap_private<_AP_W, _AP_S, true>::operator<(const ap_private<_AP_W1, _AP_S1>&) const [with int _AP_W2 = 32; bool _AP_S2 = true; int _AP_W = 10; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:889:20: required from 'bool ap_int_base<_AP_W, _AP_S>::operator<(const ap_int_base<_AP_W2, _AP_S2>&) const [with int _AP_W2 = 32; bool _AP_S2 = true; int _AP_W = 10; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1600:1: required from 'bool operator<(const ap_int_base<_AP_W2, _AP_S2>&, int) [with int _AP_W = 10; bool _AP_S = false]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:56:24: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 34; bool _AP_S = true]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1646:3: required from 'ap_private<_AP_W, _AP_S, true>::ap_private(long unsigned int) [with int _AP_W = 34; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2065:46: required from 'typename ap_private<_AP_W, _AP_S, true>::RType<_AP_W2, _AP_S2>::plus ap_private<_AP_W, _AP_S, true>::operator+(const ap_private<_AP_W1, _AP_S1>&) const [with int _AP_W1 = 33; bool _AP_S1 = true; int _AP_W = 33; bool _AP_S = true; typename ap_private<_AP_W, _AP_S, true>::RType<_AP_W2, _AP_S2>::plus = ap_private<34, true, true>]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1355:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::plus operator+(const ap_int_base<_AP_W2, _AP_S2>&, const ap_int_base<_AP_W3, _AP_S3>&) [with int _AP_W = 13; bool _AP_S = false; int _AP_W2 = 32; bool _AP_S2 = true; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::plus = ap_int<33>]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1469:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_SIZE_int, true>::plus operator+(const ap_int_base<_AP_W2, _AP_S2>&, int) [with int _AP_W = 13; bool _AP_S = false; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_SIZE_int, true>::plus = ap_int<33>]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:72:55: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 32; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1644:3: required from 'ap_private<_AP_W, _AP_S, true>::ap_private(unsigned int) [with int _AP_W = 32; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:6910:1: required from 'ap_private<_AP_W, _AP_S>& operator+=(ap_private<_AP_W, _AP_S>&, unsigned int) [with int _AP_W = 31; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2070:12: required from 'typename ap_private<_AP_W, _AP_S, true>::RType<_AP_W2, _AP_S2>::plus ap_private<_AP_W, _AP_S, true>::operator+(const ap_private<_AP_W1, _AP_S1>&) const [with int _AP_W1 = 30; bool _AP_S1 = false; int _AP_W = 30; bool _AP_S = false; typename ap_private<_AP_W, _AP_S, true>::RType<_AP_W2, _AP_S2>::plus = ap_private<31, false, true>]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1355:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::plus operator+(const ap_int_base<_AP_W2, _AP_S2>&, const ap_int_base<_AP_W3, _AP_S3>&) [with int _AP_W = 29; bool _AP_S = false; int _AP_W2 = 13; bool _AP_S2 = false; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::plus = ap_uint<30>]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:77:42: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 58; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1646:3: required from 'ap_private<_AP_W, _AP_S, true>::ap_private(long unsigned int) [with int _AP_W = 58; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2001:44: required from 'typename ap_private<_AP_W, _AP_S, true>::RType<_AP_W2, _AP_S2>::mult ap_private<_AP_W, _AP_S, true>::operator*(const ap_private<_AP_W1, _AP_S1>&) const [with int _AP_W1 = 29; bool _AP_S1 = false; int _AP_W = 29; bool _AP_S = false; typename ap_private<_AP_W, _AP_S, true>::RType<_AP_W2, _AP_S2>::mult = ap_private<58, false, true>]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1354:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::mult operator*(const ap_int_base<_AP_W2, _AP_S2>&, const ap_int_base<_AP_W3, _AP_S3>&) [with int _AP_W = 13; bool _AP_S = false; int _AP_W2 = 16; bool _AP_S2 = false; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_W2, _AP_S2>::mult = ap_uint<29>]'
C:/Xilinx/Vivado/2018.3/include/ap_int_base.h:1468:1: required from 'typename ap_int_base<_AP_W, _AP_S>::RType<_AP_SIZE_short, false>::mult operator*(const ap_int_base<_AP_W2, _AP_S2>&, short unsigned int) [with int _AP_W = 13; bool _AP_S = false; typename ap_int_base<_AP_W, _AP_S>::RType<_AP_SIZE_short, false>::mult = ap_uint<29>]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:77:30: required from 'void xf::xFHistogramKernel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, uint32_t (*)[256], uint16_t&, uint16_t&) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int DEPTH = 0; int NPC = 1; int WORDWIDTH = 1; int SRC_TC = 1920; int PLANES = 1; uint32_t = unsigned int; uint16_t = short unsigned int]'
C:\Users\Meet\git\xfopencv\include/imgproc/xf_histogram.hpp:160:2: required from 'void xf::calcHist(xf::Mat<T, ROWS, COLS, NPC>&, uint32_t*) [with int SRC_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; uint32_t = unsigned int]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_accel.cpp:35:63: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
sds++ log file saved as C:/Users/Meet/workspace/kuchtohho/Debug/_sds/reports/sds_xf_histogram_accel.log

'Finished building: ../src/xf_histogram_accel.cpp'
' '
'Building file: ../src/xf_histogram_tb.cpp'
'Invoking: SDS++ Compiler'
sds++ -Wall -O0 -g -I"../src" -I"C:\Users\Meet\Desktop\opencv-3.0.0\include\opencv2" -I"C:\Users\Meet\git\xfopencv\include" -c -fmessage-length=0 -MT"src/xf_histogram_tb.o" -MMD -MP -MF"src/xf_histogram_tb.d" -MT"src/xf_histogram_tb.o" -o "src/xf_histogram_tb.o" "../src/xf_histogram_tb.cpp" -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "zcu104"
Analyzing source for RTL template usage
Create data motion intermediate representation

C:\Users\Meet\workspace\kuchtohho\Debug>C:\Xilinx\SDx\2018.3\llvm-clang\win64\llvm\bin\clang.exe -I../src -IC:\Users\Meet\Desktop\opencv-3.0.0\include\opencv2 -IC:\Users\Meet\git\xfopencv\include -Wall -g -fmessage-length=0 -MMD -MP -D __SDSCC__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -I C:/Xilinx/SDx/2018.3/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I C:/Xilinx/Vivado/2018.3/include -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1 -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/aarch64-linux-gnu -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/backward -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.3.1/include -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.3.1/include-fixed -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -IC:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 -emit-llvm -S C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp -o C:/Users/Meet/workspace/kuchtohho/Debug/_sds/.llvm/src/xf_histogram_tb.s
C:/Xilinx/Vivado/2018.3/include\opencv2/ml/ml.hpp:957:18: warning: 'CvForestTree::train' hides overloaded virtual functions [-Woverloaded-virtual]
virtual bool train( CvDTreeTrainData* trainData, const CvMat* _subsample_idx, CvRTrees* forest );
^
C:/Xilinx/Vivado/2018.3/include\opencv2/ml/ml.hpp:863:18: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (2 vs 3)
virtual bool train( CvMLData* trainData, CvDTreeParams params=CvDTreeParams() );
^
C:/Xilinx/Vivado/2018.3/include\opencv2/ml/ml.hpp:873:26: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (8 vs 3)
CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,
^
C:/Xilinx/Vivado/2018.3/include\opencv2/ml/ml.hpp:1145:18: warning: 'CvBoostTree::train' hides overloaded virtual functions [-Woverloaded-virtual]
virtual bool train( CvDTreeTrainData* trainData,
^
C:/Xilinx/Vivado/2018.3/include\opencv2/ml/ml.hpp:863:18: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (2 vs 3)
virtual bool train( CvMLData* trainData, CvDTreeParams params=CvDTreeParams() );
^
C:/Xilinx/Vivado/2018.3/include\opencv2/ml/ml.hpp:873:26: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (8 vs 3)
CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,
^
C:/Xilinx/Vivado/2018.3/include\ap_int_special.h:61:24: warning: class template 'complex' was previously declared as a struct template [-Wmismatched-tags]
template<typename _Tp> class complex;
^
C:/Xilinx/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1\complex:122:12: note: previous use is here
struct complex
^
C:/Xilinx/Vivado/2018.3/include\ap_int_special.h:61:24: note: did you mean struct here?
template<typename _Tp> class complex;
^~~~~
struct
C:\Users\Meet\git\xfopencv\include\common/xf_structs.h:685:9: warning: unused variable 'bitdepth' [-Wunused-variable]
int bitdepth = pixdepth / XF_CHANNELS(T,NPPC); //Total bits that make up each channel of the pixel
^
C:\Users\Meet\git\xfopencv\include\common/xf_structs.h:724:6: warning: unused variable 'diff_ptr' [-Wunused-variable]
int diff_ptr = 0;
^
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:109:7: warning: unused variable 'cv_pixdepth' [-Wunused-variable]
int cv_pixdepth = cv_bitdepth*num_chnls;
^
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:112:7: warning: unused variable 'ch' [-Wunused-variable]
int ch = 0;
^
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:113:7: warning: unused variable 'xf_npc_idx' [-Wunused-variable]
int xf_npc_idx = 0;
^
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:115:7: warning: unused variable 'xf_ptr' [-Wunused-variable]
int xf_ptr = 0;
^
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:191:14: warning: variable 'v_tmp' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
else if(cv_bitdepth == 32 && diff_img.depth()==CV_32S)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:199:9: note: uninitialized use occurs here
if (v_tmp > v)
^~~~~
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:191:11: note: remove the 'if' if its condition is always true
else if(cv_bitdepth == 32 && diff_img.depth()==CV_32S)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:191:14: warning: variable 'v_tmp' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
else if(cv_bitdepth == 32 && diff_img.depth()==CV_32S)
^~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:199:9: note: uninitialized use occurs here
if (v_tmp > v)
^~~~~
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:191:14: note: remove the '&&' if its condition is always true
else if(cv_bitdepth == 32 && diff_img.depth()==CV_32S)
^~~~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\common/xf_sw_utils.h:183:14: note: initialize the variable 'v_tmp' to silence this warning
int v_tmp;float v_tmp1;
^
= 0
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:53:7: warning: unused variable 'flag' [-Wunused-variable]
bool flag =0;
^
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:55:2: warning: unused label 'HIST_INITIALIZE_LOOP' [-Wunused-label]
HIST_INITIALIZE_LOOP:
^~~~~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:84:4: warning: unused label 'EXTRACT_UPDATE' [-Wunused-label]
EXTRACT_UPDATE:
^~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:71:3: warning: unused label 'HISTOGRAM_COL_LOOP' [-Wunused-label]
HISTOGRAM_COL_LOOP:
^~~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:67:2: warning: unused label 'HISTOGRAM_ROW_LOOP' [-Wunused-label]
HISTOGRAM_ROW_LOOP:
^~~~~~~~~~~~~~~~~~~
C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp:105:2: warning: unused label 'COPY_LOOP' [-Wunused-label]
COPY_LOOP:
^~~~~~~~~~
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:70:12: warning: unused variable 'hw_cycles' [-Wunused-variable]
uint64_t hw_cycles = hw_ctr.avg_cpu_cycles();
^
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:124:11: warning: unused variable 'hw_cycles2' [-Wunused-variable]
uint64_t hw_cycles2 = hw_ctr2.avg_cpu_cycles();
^

C:\Users\Meet\workspace\kuchtohho\Debug>exit /b 0
Compiling C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp
from C:\Users\Meet\git\xfopencv\include/common/xf_sw_utils.h:33,
from C:/Users/Meet/workspace/kuchtohho/src/xf_headers.h:51,
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:31:
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:32:
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:31:
C:\Users\Meet\git\xfopencv\include/common/xf_sw_utils.h: In function 'void xf::analyzeDiff(cv::Mat&, int, float&)':
C:\Users\Meet\git\xfopencv\include/common/xf_sw_utils.h:183:21: warning: variable 'v_tmp1' set but not used [-Wunused-but-set-variable]
int v_tmp;float v_tmp1;
^~~~~~
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp: In function 'int main(int, char**)':
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:70:12: warning: unused variable 'hw_cycles' [-Wunused-variable]
uint64_t hw_cycles = hw_ctr.avg_cpu_cycles();
^~~~~~~~~
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:124:11: warning: unused variable 'hw_cycles2' [-Wunused-variable]
uint64_t hw_cycles2 = hw_ctr2.avg_cpu_cycles();
^~~~~~~~~~
from C:\Users\Meet\git\xfopencv\include/common/xf_sw_utils.h:33,
from C:/Users/Meet/workspace/kuchtohho/src/xf_headers.h:51,
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:31:
C:\Users\Meet\git\xfopencv\include/common/xf_structs.h: In instantiation of 'struct xf::Mat<0, 2160, 3840, 1>::DATATYPE':
C:\Users\Meet\git\xfopencv\include/common/xf_structs.h:848:16: required from 'xf::Mat<T, ROWS, COLS, NPC>::~Mat() [with int T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:112:77: required from here
C:\Users\Meet\git\xfopencv\include/common/xf_structs.h:397:72: warning: ignoring packed attribute because of unpacked non-POD field 'DataType<0, 1>::cname xf::Mat<0, 2160, 3840, 1>::DATATYPE::chnl [1][1]'
XF_CTUNAME(T,NPC) chnl[XF_NPIXPERCYCLE(NPC)][XF_CHANNELS(T,NPC)];
^
C:\Users\Meet\git\xfopencv\include/common/xf_structs.h: In instantiation of 'void xf::Mat<T, ROWS, COLS, NPC>::copyTo(void*) [with int T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1]':
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:113:29: required from here
C:\Users\Meet\git\xfopencv\include/common/xf_structs.h:685:9: warning: unused variable 'bitdepth' [-Wunused-variable]
int bitdepth = pixdepth / XF_CHANNELS(T,NPPC); //Total bits that make up each channel of the pixel
^~~~~~~~
from C:/Xilinx/Vivado/2018.3/include/ap_int.h:54,
from C:\Users\Meet\git\xfopencv\include/common/xf_types.h:37,
from C:\Users\Meet\git\xfopencv\include/common/xf_structs.h:44,
from C:\Users\Meet\git\xfopencv\include/common/xf_common.h:34,
from C:\Users\Meet\git\xfopencv\include/common/xf_sw_utils.h:33,
from C:/Users/Meet/workspace/kuchtohho/src/xf_headers.h:51,
from C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:31:
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h: In instantiation of 'void ap_private<_AP_W, _AP_S, true>::clearUnusedBits() [with int _AP_W = 8; bool _AP_S = false]':
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:1426:20: required from 'ap_private<_AP_W, _AP_S>& ap_private<_AP_W, _AP_S, true>::operator=(const ap_private<_AP_W1, _AP_S1>&) [with int _AP_W1 = 32; bool _AP_S1 = false; int _AP_W = 8; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.3/include/ap_int.h:200:13: required from 'ap_uint<_AP_W>::ap_uint(const ap_uint<_AP_W2>&) [with int _AP_W2 = 32; int _AP_W = 8]'
C:\Users\Meet\git\xfopencv\include/common/xf_structs.h:694:14: required from 'void xf::Mat<T, ROWS, COLS, NPC>::copyTo(void*) [with int T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1]'
C:/Users/Meet/workspace/kuchtohho/src/xf_histogram_tb.cpp:113:29: required from here
C:/Xilinx/Vivado/2018.3/include/etc/ap_private.h:2140:28: warning: enum constant in boolean context [-Wint-in-bool-context]
: (excess_bits ? (((uint64_t)VAL) << (excess_bits)) >> (excess_bits)
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: (uint64_t)VAL));
~~~~~~~~~~~~~~~~
sds++ log file saved as C:/Users/Meet/workspace/kuchtohho/Debug/_sds/reports/sds_xf_histogram_tb.log

'Finished building: ../src/xf_histogram_tb.cpp'
' '
'Building target: kuchtohho.elf'
'Invoking: SDS++ Linker'
sds++ -L"C:\Users\Meet\Desktop\opencv-3.0.0" --remote_ip_cache C:/Users/Meet/workspace/ip_cache -o "kuchtohho.elf" ./src/xf_histogram_accel.o ./src/xf_histogram_tb.o -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -dmclkid 1 -mno-bitstream -mno-boot-files -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "zcu104" -emulation debug
Analyzing object files
... C:/Users/Meet/workspace/kuchtohho/Debug/src/xf_histogram_accel.o
... C:/Users/Meet/workspace/kuchtohho/Debug/src/xf_histogram_tb.o
Generating data motion network

C:\Users\Meet\workspace\kuchtohho\Debug>C:\Xilinx\SDx\2018.3\llvm-clang\win64\llvm\bin\llvm-link.exe -o C:/Users/Meet/workspace/kuchtohho/Debug/_sds/.llvm/sds_all.o C:/Users/Meet/workspace/kuchtohho/Debug/_sds/.llvm/./src/xf_histogram_accel.s C:/Users/Meet/workspace/kuchtohho/Debug/_sds/.llvm/./src/xf_histogram_tb.s

C:\Users\Meet\workspace\kuchtohho\Debug>exit /b 0

C:\Users\Meet\workspace\kuchtohho\Debug\_sds\.llvm>opt -disable-output -mem2reg -basicaa -XidanePass --dmclkid 1 --repo C:/Users/Meet/workspace/kuchtohho/Debug/_sds/.cdb/xd_ip_db.xml --dmdb C:/Xilinx/SDx/2018.3/data/DM.db -os linux -processor cortex-a53 -partition 0 0<sds_all.o
INFO: [DMAnalysis 83-4494] Analyzing hardware accelerators...
WARNING: [DMAnalysis 83-4502] Function xf::calcHist<0,2160,3840,1> @ C:\Users\Meet\git\xfopencv\include\imgproc/xf_histogram.hpp is not a HW accelerator but has SDS pragma applied
INFO: [DMAnalysis 83-4496] No hardware accelerators specified.
Skipping block diagram (BD), address map, port information and device registration for partition 0
Rewrite caller functions
Prepare hardware access API functions
Create accelerator stub functions
Compile hardware access API functions
Compile accelerator stub functions
Not creating bitstream due to the -mno-bitstream switch
Software tracing enabled
Creating emulation files
Compile hardware access API functions
Link application ELF file
c:/xilinx/sdk/2018.3/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lopencv_core
c:/xilinx/sdk/2018.3/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lopencv_imgcodecs
c:/xilinx/sdk/2018.3/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lopencv_imgproc
collect2.exe: error: ld returned 1 exit status
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'aarch64-linux-gnu-g++ C:/Users/Meet/workspace/kuchtohho/Debug/src/xf_histogram_accel.o C:/Users/Meet/workspace/kuchtohho/Debug/src/xf_histogram_tb.o C:/Users/Meet/workspace/kuchtohho/Debug/_sds/swstubs/portinfo.o {-LC:\Users\Meet\Desktop\opencv-3.0.0} -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -LC:/Users/Meet/workspace/kuchtohho/Debug/_sds/swstubs -Wl,--start-group -Wl,--end-group -Wl,--start-group -lpthread -LC:/Xilinx/SDx/2018.3/target/aarch64-linux/lib -lsds_lib -lxlnk_stub -Wl,--end-group -o C:/Users/Meet/workspace/kuchtohho/Debug/_sds/swstubs/kuchtohho.elf '
sds++ log file saved as C:/Users/Meet/workspace/kuchtohho/Debug/_sds/reports/sds.log
ERROR: [SdsCompiler 83-5004] Build failed

make: *** [makefile:47: kuchtohho.elf] Error 1

15:28:54 Build Finished (took 4m:10s.483ms)

 

 

Getting the above error while building the project file. Please Help.

0 Kudos
18 Replies
vijoys
Moderator
Moderator
1,926 Views
Registered: ‎09-19-2018

Hi @meet.bais 

This looks like a linking error with opencv. Could you send me a screenshot of the linker settings, to make sure that you are not missing anything? 

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_1/ug1233-xilinx-opencv-user-guide.pdf

 

 

Thanks,
Vijoy Sunil Kumar
Product Applications Engineer

- Don't forget to reply, kudo and accept as solution
meet.bais
Participant
Participant
1,913 Views
Registered: ‎10-22-2018

Sir,

i am attaching the screenshot for the SDS Linker below.

 

Capture.PNG

0 Kudos
nutang
Moderator
Moderator
1,904 Views
Registered: ‎08-20-2018

Hi @meet.bais 

I assume that you have set the SYSROOT correctly.

Please update the Library search path to 

${SYSROOT}/usr/lib

${SYSROOT}/lib

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
meet.bais
Participant
Participant
1,882 Views
Registered: ‎10-22-2018

@nutang 

Even after adding the opencv files to the SDS Library i am still getting an error that the files cannot be found.

Attaching the log file 

0 Kudos
nutang
Moderator
Moderator
1,853 Views
Registered: ‎08-20-2018

Hi @meet.bais 

Please let me know the host machine and SYSROOT path.

Looks like SYSROOT is not set.

 

 

 

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
meet.bais
Participant
Participant
1,832 Views
Registered: ‎10-22-2018

@nutang 

My host machine is a LENOVO laptop with WINDOWS 10 as the OS.

The SYSROOT path is C:\Xilinx

0 Kudos
khareashish_trimble
Adventurer
Adventurer
1,789 Views
Registered: ‎10-17-2017

@meet.bais -  Your SYSROOT path should be   <platform>/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/

0 Kudos
meet.bais
Participant
Participant
1,776 Views
Registered: ‎10-22-2018

@khareashish_trimble 

 

i do not have such a directory in my system.

what do i do??

0 Kudos
nutang
Moderator
Moderator
1,739 Views
Registered: ‎08-20-2018

Hi @meet.bais 

When you download the revision platform zip (zcu104-rv-ss-2018-3.zip), extract it only with 7z and select 'auto rename' when prompted for long names.

Once the extraction is completed, navigate to <path to reVision platform>\zcu104-rv-ss-2018-3\zcu104_rv_ss\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux

This is your SYSROOT.

Go to Start → Control Panel → System → Advanced → Environment Variables. Create an environment variable SYSROOT with the value <platform>/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
meet.bais
Participant
Participant
1,719 Views
Registered: ‎10-22-2018

@nutang 

 

Still getting the same errors.

 

0 Kudos
meet.bais
Participant
Participant
1,686 Views
Registered: ‎10-22-2018

Building file: ../src/xf_hog_descriptor_tb.cpp'
'Invoking: SDS++ Compiler'
sds++ -Wall -O0 -g -I"C:\xfopencv-master\include" -I"C:\opencv-3.0.0\include" -c -fmessage-length=0 -MT"src/xf_hog_descriptor_tb.o" -I"hls-target 1" -MMD -MP -MF"src/xf_hog_descriptor_tb.d" -MT"src/xf_hog_descriptor_tb.o" -o "src/xf_hog_descriptor_tb.o" "../src/xf_hog_descriptor_tb.cpp" -sds-sys-config linux -sds-proc linux -sds-pf "zc706"
Analyzing source for RTL template usage
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:116:42: error: redefinition of 'saturate_cast'
template<typename _Tp> static inline _Tp saturate_cast(uchar v) { return _Tp(v); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:601:42: note: previous definition is here
template<typename _Tp> static inline _Tp saturate_cast(uchar v) { return _Tp(v); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:117:42: error: redefinition of 'saturate_cast'
template<typename _Tp> static inline _Tp saturate_cast(schar v) { return _Tp(v); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:603:42: note: previous definition is here
template<typename _Tp> static inline _Tp saturate_cast(schar v) { return _Tp(v); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:118:42: error: redefinition of 'saturate_cast'
template<typename _Tp> static inline _Tp saturate_cast(ushort v) { return _Tp(v); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:605:42: note: previous definition is here
template<typename _Tp> static inline _Tp saturate_cast(ushort v) { return _Tp(v); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:119:42: error: redefinition of 'saturate_cast'
template<typename _Tp> static inline _Tp saturate_cast(short v) { return _Tp(v); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:607:42: note: previous definition is here
template<typename _Tp> static inline _Tp saturate_cast(short v) { return _Tp(v); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:120:42: error: redefinition of 'saturate_cast'
template<typename _Tp> static inline _Tp saturate_cast(unsigned v) { return _Tp(v); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:609:42: note: previous definition is here
template<typename _Tp> static inline _Tp saturate_cast(unsigned v) { return _Tp(v); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:121:42: error: redefinition of 'saturate_cast'
template<typename _Tp> static inline _Tp saturate_cast(int v) { return _Tp(v); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:611:42: note: previous definition is here
template<typename _Tp> static inline _Tp saturate_cast(int v) { return _Tp(v); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:122:42: error: redefinition of 'saturate_cast'
template<typename _Tp> static inline _Tp saturate_cast(float v) { return _Tp(v); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:613:42: note: previous definition is here
template<typename _Tp> static inline _Tp saturate_cast(float v) { return _Tp(v); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:123:42: error: redefinition of 'saturate_cast'
template<typename _Tp> static inline _Tp saturate_cast(double v) { return _Tp(v); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:615:42: note: previous definition is here
template<typename _Tp> static inline _Tp saturate_cast(double v) { return _Tp(v); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:125:25: error: redefinition of 'saturate_cast'
template<> inline uchar saturate_cast<uchar>(schar v)
^
C:\opencv-3.0.0\include\opencv2/defs.h:623:25: note: previous definition is here
template<> inline uchar saturate_cast<uchar>(schar v) { return (uchar)std::max((int)v, 0); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:127:25: error: redefinition of 'saturate_cast'
template<> inline uchar saturate_cast<uchar>(ushort v)
^
C:\opencv-3.0.0\include\opencv2/defs.h:624:25: note: previous definition is here
template<> inline uchar saturate_cast<uchar>(ushort v) { return (uchar)std::min((unsigned)v, (unsigned)UCHAR_MAX); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:129:25: error: redefinition of 'saturate_cast'
template<> inline uchar saturate_cast<uchar>(int v)
^
C:\opencv-3.0.0\include\opencv2/defs.h:625:25: note: previous definition is here
template<> inline uchar saturate_cast<uchar>(int v) { return (uchar)((unsigned)v <= UCHAR_MAX ? v : v > 0 ? UCHAR_MAX : 0); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:131:25: error: redefinition of 'saturate_cast'
template<> inline uchar saturate_cast<uchar>(short v)
^
C:\opencv-3.0.0\include\opencv2/defs.h:626:25: note: previous definition is here
template<> inline uchar saturate_cast<uchar>(short v) { return saturate_cast<uchar>((int)v); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:132:10: error: call to 'saturate_cast' is ambiguous
{ return saturate_cast<uchar>((int)v); }
^~~~~~~~~~~~~~~~~~~~
C:\opencv-3.0.0\include\opencv2/defs.h:630:25: note: candidate function [with _Tp = unsigned char]
template<> inline uchar saturate_cast<uchar>(int64 v) { return (uchar)((uint64)v <= (uint64)UCHAR_MAX ? v : v > 0 ? UCHAR_MAX : 0); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:631:25: note: candidate function [with _Tp = unsigned char]
template<> inline uchar saturate_cast<uchar>(uint64 v) { return (uchar)std::min(v, (uint64)UCHAR_MAX); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:133:25: error: redefinition of 'saturate_cast'
template<> inline uchar saturate_cast<uchar>(unsigned v)
^
C:\opencv-3.0.0\include\opencv2/defs.h:627:25: note: previous definition is here
template<> inline uchar saturate_cast<uchar>(unsigned v) { return (uchar)std::min(v, (unsigned)UCHAR_MAX); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:135:25: error: redefinition of 'saturate_cast'
template<> inline uchar saturate_cast<uchar>(float v)
^
C:\opencv-3.0.0\include\opencv2/defs.h:628:25: note: previous definition is here
template<> inline uchar saturate_cast<uchar>(float v) { int iv = cvRound(v); return saturate_cast<uchar>(iv); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:136:31: error: call to 'saturate_cast' is ambiguous
{ int iv = cvRound(v); return saturate_cast<uchar>(iv); }
^~~~~~~~~~~~~~~~~~~~
C:\opencv-3.0.0\include\opencv2/defs.h:630:25: note: candidate function [with _Tp = unsigned char]
template<> inline uchar saturate_cast<uchar>(int64 v) { return (uchar)((uint64)v <= (uint64)UCHAR_MAX ? v : v > 0 ? UCHAR_MAX : 0); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:631:25: note: candidate function [with _Tp = unsigned char]
template<> inline uchar saturate_cast<uchar>(uint64 v) { return (uchar)std::min(v, (uint64)UCHAR_MAX); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:137:25: error: redefinition of 'saturate_cast'
template<> inline uchar saturate_cast<uchar>(double v)
^
C:\opencv-3.0.0\include\opencv2/defs.h:629:25: note: previous definition is here
template<> inline uchar saturate_cast<uchar>(double v) { int iv = cvRound(v); return saturate_cast<uchar>(iv); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:138:31: error: call to 'saturate_cast' is ambiguous
{ int iv = cvRound(v); return saturate_cast<uchar>(iv); }
^~~~~~~~~~~~~~~~~~~~
C:\opencv-3.0.0\include\opencv2/defs.h:630:25: note: candidate function [with _Tp = unsigned char]
template<> inline uchar saturate_cast<uchar>(int64 v) { return (uchar)((uint64)v <= (uint64)UCHAR_MAX ? v : v > 0 ? UCHAR_MAX : 0); }
^
C:\opencv-3.0.0\include\opencv2/defs.h:631:25: note: candidate function [with _Tp = unsigned char]
template<> inline uchar saturate_cast<uchar>(uint64 v) { return (uchar)std::min(v, (uint64)UCHAR_MAX); }
^
C:/Xilinx/Vivado/2018.3/include\opencv2/core/operations.hpp:140:25: error: redefinition of 'saturate_cast'
template<> inline schar saturate_cast<schar>(uchar v)
^
C:\opencv-3.0.0\include\opencv2/defs.h:633:25: note: previous definition is here
template<> inline schar saturate_cast<schar>(uchar v) { return (schar)std::min((int)v, SCHAR_MAX); }
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Error while processing C:\Users\Meet\workspace\hog_trial\src\xf_hog_descriptor_tb.cpp.
ERROR: [TemplateExtract 83-3509] Failed to run clang frontend action of rtl_template_extract!
ERROR: [SdsCompiler 83-5176] RTL template analysis exited with non-zero code processing C:/Users/Meet/workspace/hog_trial/src/xf_hog_descriptor_tb.cpp
sds++ log file saved as C:/Users/Meet/workspace/hog_trial/Debug/_sds/reports/sds_xf_hog_descriptor_tb.log
ERROR: [SdsCompiler 83-5004] Build failed

make: *** [src/subdir.mk:23: src/xf_hog_descriptor_tb.o] Error 1

11:52:24 Build Finished (took 53s.90ms)

 

0 Kudos
nutang
Moderator
Moderator
1,680 Views
Registered: ‎08-20-2018

Hi @meet.bais 

Location of "-hls-target 1" seems wrong. Also you are missing hyphen 

Where you have added "-hls-target 1" option?

Please share screen shot of C/C++ build settings

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
meet.bais
Participant
Participant
1,668 Views
Registered: ‎10-22-2018

i have added the hyphen and also sharing a screenshot of C/C++ Build Settings.

After which I am getting the following error.

 

Capture1.PNG

0 Kudos
nutang
Moderator
Moderator
1,662 Views
Registered: ‎08-20-2018

Hi @meet.bais 

You have added command in include path. It is wrong entry.

Please add it at same location but in the first tab "Software PLatform inferred flags"

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
meet.bais
Participant
Participant
1,644 Views
Registered: ‎10-22-2018

Done with the updates. Please check the log files attached in above comment as i am getting the same error again.

0 Kudos
nutang
Moderator
Moderator
1,598 Views
Registered: ‎08-20-2018

Hi @meet.bais 

Please send me screenshot of your C/C++ build Settings-> Environment

sds++ -Wall -O0 -g -I"C:\Xilinx\Vivado\2018.3\include\opencv2" -I"C:\xfopencv-master\include" -c -fmessage-length=0 -MT"src/xf_hog_descriptor_tb.o" -I"-hls-target 1" -MMD -MP -MF"src/xf_hog_descriptor_tb.d" -MT"src/xf_hog_descriptor_tb.o" -o "src/xf_hog_descriptor_tb.o" "../src/xf_hog_descriptor_tb.cpp" -sds-sys-config linux -sds-proc linux -sds-pf "zc706"

I can see that you are still using non-revision platform.

Please download revision platform from here https://github.com/Xilinx/reVISION-Getting-Started-Guide/blob/master/Docs/software-tools-system-requirements.md

After you download, extract it and use this platform for creating the hostogram application

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
meet.bais
Participant
Participant
1,514 Views
Registered: ‎10-22-2018

@nutang 

i am not using a non-reVISION platform.

is there a different process for the same?Capture.PNG

0 Kudos
nutang
Moderator
Moderator
1,489 Views
Registered: ‎08-20-2018

Hi @meet.bais 

Below is the example SYSROOT.

C:\reVISION_Platforms\zcu104-rv-ss-2018-3\zcu104_rv_ss\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux

zcu104-rv-ss-2018-3 is the downloaded reVision platform folder

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos