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: 
Observer swordwest
Observer
774 Views
Registered: ‎05-17-2018

a xfOpenCV error

when I Build xfOpenCV  in the windows 10 OS,I meet this error.

11:44:38 **** Incremental Build of configuration Release for project harris ****
make pre-build main-build
sdsoc_make_clean Release
' '
'Building target: harris.elf'
'Invoking: SDS++ Linker'
sds++ -L/lib -L/usr/lib -L"D:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux\lib" -L"D:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux\usr\lib" --sysroot= -L=/lib -L=/usr/lib -Wl,-rpath-link=/lib,-rpath-link=/usr/lib -sdcard ../data --sysroot= -Wl,-rpath-link=/lib,-rpath-link=/usr/lib -sdcard ../src/data --remote_ip_cache C:/xf/ip_cache -o "harris.elf"  ./src/xf_harris_accel.o ./src/xf_harris_tb.o   -lopencv_videoio -lglib-2.0 -ldrm -lv4l2subdev -lmediactl -llzma -ltiff -lpng16 -lz -ljpeg -ldl -lrt -lwebp -lopencv_features2d -lopencv_flann -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -dmclkid 2  -mno-boot-files  -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "D:\download\fpga\zcu104-rv-ss-2018-2\zcu104_rv_ss"
ERROR: [SdsCompiler 83-5086] -sdcard ../data specified earlier, ignoring -sdscard ../src/data
Removing implementation files from previous run
Analyzing object files
... C:/xf/harris/Release/src/xf_harris_accel.o
... C:/xf/harris/Release/src/xf_harris_tb.o
Generating data motion network
C:\xf\harris\Release>C:\Xilinx\SDx\2018.2\llvm-clang\win64\llvm\bin\llvm-link.exe -o C:/xf/harris/Release/_sds/.llvm/sds_all.o C:/xf/harris/Release/_sds/.llvm/./src/xf_harris_accel.s C:/xf/harris/Release/_sds/.llvm/./src/xf_harris_tb.s
C:\xf\harris\Release>exit /b 0
C:\xf\harris\Release\_sds\.llvm>opt -disable-output -mem2reg -basicaa -XidanePass --platform zcu104_rv_ss --dmclkid 2 --repo C:/xf/harris/Release/_sds/.cdb/xd_ip_db.xml --dmdb C:/Xilinx/SDx/2018.2/data/DM.db -os linux -processor cortex-a53 -partition 0  0<sds_all.o
INFO: [DMAnalysis 83-4494] Analyzing hardware accelerators...
INFO: [DMAnalysis 83-4497] Analyzing callers to hardware accelerators...
INFO: [DMAnalysis 83-4444] Scheduling data transfer graph for partition 0
INFO: [DMAnalysis 83-4446] Creating data motion network hardware for partition 0
INFO: [DMAnalysis 83-4448] Creating software stub functions for partition 0
INFO: [DMAnalysis 83-4450] Generating data motion network report for partition 0
INFO: [DMAnalysis 83-4454] Rewriting caller code
Removing implementation files from previous run C:/xf/harris/Release/_sds/p0/vpl
Creating block diagram (BD)
Creating top.bd.tcl
Rewrite caller functions
Compile caller rewrite file C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp
                 from C:/xf/harris/src/xf_harris_config.h:37,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/src/xf_harris_config.h:39,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/src/xf_harris_config.h:39,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/src/xf_harris_config.h:39,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/src/xf_harris_config.h:39,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/src/xf_harris_config.h:39,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/src/xf_harris_config.h:39,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/src/xf_harris_config.h:39,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/src/xf_harris_config.h:39,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/src/xf_harris_config.h:39,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/src/xf_harris_config.h:39,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
                 from C:/Xilinx/Vivado/2018.2/include/ap_int.h:65,
                 from C:/xf/harris/src/xf_harris_config.h:36,
                 from C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.cpp:30:
C:/Xilinx/Vivado/2018.2/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 = true]':
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:1593:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(bool) [with int _AP_W = 1; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4295:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
         VAL = (ValType)(_AP_S ? ((((int64_t)VAL)<<(excess_bits))>> (excess_bits)) : (excess_bits ? (((uint64_t)VAL)<<(excess_bits))>>(excess_bits) : (uint64_t)VAL));
                                                                                     ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Xilinx/Vivado/2018.2/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.2/include/etc/ap_private.h:1593:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(bool) [with int _AP_W = 1; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4295:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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 = true]':
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:1594:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(signed char) [with int _AP_W = 8; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4296:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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.2/include/etc/ap_private.h:1594:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(signed char) [with int _AP_W = 8; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4296:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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 = true]':
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:1596:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(short int) [with int _AP_W = 16; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4298:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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.2/include/etc/ap_private.h:1596:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(short int) [with int _AP_W = 16; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4298:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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.2/include/etc/ap_private.h:1592:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(int) [with int _AP_W = 32; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4300:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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.2/include/etc/ap_private.h:1592:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(int) [with int _AP_W = 32; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4300:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
cc1plus.exe: warning: unrecognized command line option '-Wno-unknown-attributes'
cc1plus.exe: warning: unrecognized command line option '-Wno-unknown-attributes'
Prepare hardware access API functions
Create accelerator stub functions
Compile hardware access API functions
Compile accelerator stub functions
                 from xf_harris_hpp.cpp:40:
                 from C:/Xilinx/Vivado/2018.2/include/ap_int.h:65,
                 from D:/download/fpga/zcu104-rv-ss-2018-2/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv/common/xf_types.h:37,
                 from D:/download/fpga/zcu104-rv-ss-2018-2/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv/common/xf_structs.h:40,
                 from D:/download/fpga/zcu104-rv-ss-2018-2/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv/common/xf_common.h:34,
                 from xf_harris_hpp.cpp:40:
C:/Xilinx/Vivado/2018.2/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 = true]':
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:1593:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(bool) [with int _AP_W = 1; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4295:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
         VAL = (ValType)(_AP_S ? ((((int64_t)VAL)<<(excess_bits))>> (excess_bits)) : (excess_bits ? (((uint64_t)VAL)<<(excess_bits))>>(excess_bits) : (uint64_t)VAL));
                                                                                     ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Xilinx/Vivado/2018.2/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.2/include/etc/ap_private.h:1593:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(bool) [with int _AP_W = 1; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4295:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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 = true]':
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:1594:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(signed char) [with int _AP_W = 8; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4296:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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.2/include/etc/ap_private.h:1594:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(signed char) [with int _AP_W = 8; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4296:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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 = true]':
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:1596:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(short int) [with int _AP_W = 16; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4298:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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.2/include/etc/ap_private.h:1596:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(short int) [with int _AP_W = 16; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4298:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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.2/include/etc/ap_private.h:1592:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(int) [with int _AP_W = 32; bool _AP_S = true]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4300:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
C:/Xilinx/Vivado/2018.2/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.2/include/etc/ap_private.h:1592:5:   required from 'ap_private<_AP_W, _AP_S, true>::ap_private(int) [with int _AP_W = 32; bool _AP_S = false]'
C:/Xilinx/Vivado/2018.2/include/ap_int_sim.h:4300:1:   required from here
C:/Xilinx/Vivado/2018.2/include/etc/ap_private.h:2057:98: warning: enum constant in boolean context [-Wint-in-bool-context]
cc1plus.exe: warning: unrecognized command line option '-Wno-unknown-attributes'
cc1plus.exe: warning: unrecognized command line option '-Wno-unknown-attributes'
Preliminary link application ELF
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find crt1.o: No such file or directory
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find crti.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'aarch64-linux-gnu-g++    C:/xf/harris/Release/_sds/swstubs/xf_harris_hpp.o C:/xf/harris/Release/src/xf_harris_tb.o C:/xf/harris/Release/_sds/swstubs/xf_harris_accel.o C:/xf/harris/Release/_sds/swstubs/portinfo.o -L/lib -L/usr/lib {-LD:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux\lib} {-LD:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux\usr\lib} --sysroot= -L=/lib -L=/usr/lib -Wl,-rpath-link=/lib,-rpath-link=/usr/lib --sysroot= -Wl,-rpath-link=/lib,-rpath-link=/usr/lib -lopencv_videoio -lglib-2.0 -ldrm -lv4l2subdev -lmediactl -llzma -ltiff -lpng16 -lz -ljpeg -ldl -lrt -lwebp -lopencv_features2d -lopencv_flann -lopencv_core -lopencv_imgcodecs -lopencv_imgproc   -L C:/Xilinx/SDx/2018.2/target/aarch64-linux/lib -LC:/xf/harris/Release/_sds/swstubs -Wl,--start-group  -Wl,--end-group -Wl,--start-group    -lpthread -lsds_lib -lxlnk_stub  -Wl,--end-group -o C:/xf/harris/Release/_sds/swstubs/harris.elf'
sds++ log file saved as C:/xf/harris/Release/_sds/reports/sds.log
ERROR: [SdsCompiler 83-5004] Build failed
make: *** [harris.elf] 错误 1

 

0 Kudos
6 Replies
Xilinx Employee
Xilinx Employee
755 Views
Registered: ‎08-20-2018

Re: a xfOpenCV error

 

@swordwest

 

I can see two issues:

1. -sdcard flag :

          a. It is required to be set it in SDS++ Linker

          b. If you add two folders here then first will be ignored and only second will be considered.

    In such cases it is better you have a top folder containing all other folders and then set -sdacrd <top folder>

    all additional folders, files will be added.

 

-sdcard flag

 

2. Sysroot path: From log it looks like this path is not set properly. Please set this path before launching SDx

Linux: export SYSROOT=<platform>/petalinux/sdk/sysroots/aarch64-xilinx-linux
Windows: Start->Control Panel->System->Advanced->Environment Variables Create environment variable SYSROOT with value <platform>/petalinux/sdk/sysroots/aarch64-xilinx-linux

 

 

Best Regards,

Nutan

 

--------------------------
Don't forget to reply, kudo, and accept as a solution.

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Observer swordwest
Observer
737 Views
Registered: ‎05-17-2018

Re: a xfOpenCV error

I add  link flag -sdcard ../src/data and set up sysroot system variable,but still get the error.

thank you .

0 Kudos
Xilinx Employee
Xilinx Employee
735 Views
Registered: ‎08-20-2018

Re: a xfOpenCV error

@swordwest

 

Please share the latest log again

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Highlighted
Observer swordwest
Observer
703 Views
Registered: ‎05-17-2018

Re: a xfOpenCV error

19:24:40 **** Incremental Build of configuration Release for project Fast ****
make pre-build main-build
sdsoc_make_clean Release
找不到 C:\xf\Fast\Release\src\xf_fast_accel.o
' '
'Building file: ../src/xf_fast_accel.cpp'
'Invoking: SDS++ Compiler'
sds++ -DHLS_NO_XIL_FPO_LIB -Wall -O3 -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include/c++/6.2.1 -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include/c++/6.2.1/aarch64-xilinx-linux -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include/c++/6.2.1/backward -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include/features -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include/glib-2.0 -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/lib/glib-2.0/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1 -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1/aarch64-linux-gnu -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1/backward -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/6.2.1/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/6.2.1/include-fixed -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -I"../src" -ID:\download\fpga\zcu104-rv-ss-2018-2\zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -c -fmessage-length=0 -MT"src/xf_fast_accel.o" -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -Wno-sign-compare -MMD -MP -MF"src/xf_fast_accel.d" -MT"src/xf_fast_accel.o" -o "src/xf_fast_accel.o" "../src/xf_fast_accel.cpp" -sds-hw fast_accel xf_fast_accel.cpp  -clkid 2 -sds-end -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "D:\download\fpga\zcu104-rv-ss-2018-2\zcu104_rv_ss"
Processing -sds-hw block for fast_accel
Create data motion intermediate representation
C:\xf\Fast\Release>C:\Xilinx\SDx\2018.2\llvm-clang\win64\llvm\bin\clang.exe -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include/c++/6.2.1 -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include/c++/6.2.1/aarch64-xilinx-linux -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include/c++/6.2.1/backward -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include/features -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/include/glib-2.0 -ID:\download\fpga\zcu104-rv-ss-2018-2\petalinux\sdk\sysroots\aarch64-xilinx-linux/usr/lib/glib-2.0/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1 -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1/aarch64-linux-gnu -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1/backward -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/6.2.1/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/6.2.1/include-fixed -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -I../src -ID:\download\fpga\zcu104-rv-ss-2018-2\zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -DHLS_NO_XIL_FPO_LIB -Wall -fmessage-length=0 -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -Wno-sign-compare -MMD -MP -D __SDSCC__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -I D:/download/fpga/zcu104-rv-ss-2018-2/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -I C:/Xilinx/SDx/2018.2/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I C:/Xilinx/Vivado/2018.2/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1 -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/aarch64-linux-gnu -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/backward -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include-fixed -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 -emit-llvm -S C:/xf/Fast/src/xf_fast_accel.cpp -o C:/xf/Fast/Release/_sds/.llvm/src/xf_fast_accel.s
C:/Xilinx/Vivado/2018.2/include/ap_int_special.h:99: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.2/include/ap_int_special.h:71:24: note: did you mean struct here?
template<typename _Tp> class complex;
                       ^~~~~
                       struct
C:/Xilinx/Vivado/2018.2/include/ap_fixed_special.h:99: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.2/include/ap_fixed_special.h:71:24: note: did you mean struct here?
template<typename _Tp> class complex;
                       ^~~~~
                       struct
C:/Xilinx/Vivado/2018.2/include/ap_int_special.h:71:24: note: did you mean struct here?
template<typename _Tp> class complex;
                       ^~~~~
                       struct
D:\download\fpga\zcu104-rv-ss-2018-2\zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\features/xf_fast.hpp:133:52: warning: suggest braces around initialization of subobject [-Wmissing-braces]
        short int flag_d[(1 << XF_BITSHIFT(NPC))][NUM] = {0}, flag_val[(1 << XF_BITSHIFT(NPC))][NUM] = {0};
                                                          ^
                                                          {}
D:\download\fpga\zcu104-rv-ss-2018-2\zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\features/xf_fast.hpp:364:6: note: in instantiation of function template specialization 'xf::xFfastProc<1, 0, 0, 7, 49>' requested here
                                        xFfastProc<NPC, WORDWIDTH,DEPTH, WIN_SZ, WIN_SZ_SQ>(OutputValues_percycle,src_buf_temp_med_apply, WIN_SZ,_threshold,pack_corners);
                                        ^
D:\download\fpga\zcu104-rv-ss-2018-2\zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\features/xf_fast.hpp:542:3: note: in instantiation of function template specialization 'xf::ProcessFast<2160, 3840, 0, 1, 0, 3843, 7, 49>' requested here
                ProcessFast<ROWS, COLS, DEPTH, NPC, WORDWIDTH, TC, WIN_SZ, WIN_SZ_SQ>(_src_mat, _out_mat, buf, src_buf,OutputValues, P0, img_width, img_height, shift_x, row_ind, row,win_size,_threshold,pack_corners);
                ^
D:\download\fpga\zcu104-rv-ss-2018-2\zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\features/xf_fast.hpp:907:3: note: in instantiation of function template specialization 'xf::xFfast7x7<2160, 3840, 0, 1, 0, 3843, 7, 49>' requested here
                xFfast7x7<ROWS,COLS,DEPTH,NPC,WORDWIDTH_SRC,(COLS>>XF_BITSHIFT(NPC))+(7>>1),7, 7*7>(_strm_in, _dst,7,_image_height,_image_width,_threshold);
                ^
D:\download\fpga\zcu104-rv-ss-2018-2\zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\features/xf_fast.hpp:955:2: note: in instantiation of function template specialization 'xf::xFFastCornerDetection<2160, 3840, 0, 1, 0, 9, 1>' requested here
        xFFastCornerDetection<ROWS,COLS,XF_DEPTH(SRC_T,NPC),NPC,XF_WORDWIDTH(SRC_T,NPC),XF_32UW,NMS>(_src,_dst,_src_mat.rows,_src_mat.cols,_threshold);
        ^
C:/xf/Fast/src/xf_fast_accel.cpp:35:6: note: in instantiation of function template specialization 'xf::fast<1, 0, 2160, 3840, 1>' requested here
        xf::fast<NMS,XF_8UC1,HEIGHT,WIDTH,NPC1>(_src,_dst,threshold);
            ^
D:\download\fpga\zcu104-rv-ss-2018-2\zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\features/xf_fast.hpp:133:98: warning: suggest braces around initialization of subobject [-Wmissing-braces]
        short int flag_d[(1 << XF_BITSHIFT(NPC))][NUM] = {0}, flag_val[(1 << XF_BITSHIFT(NPC))][NUM] = {0};
                                                                                                        ^
                                                                                                        {}
C:\xf\Fast\Release>exit /b 0
Performing accelerator source linting for fast_accel
Performing pragma generation
C:\xf\Fast\Release>C:\Xilinx\SDx\2018.2\llvm-clang\win64\llvm\bin\clang.exe -E -ID:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include/c++/6.2.1 -ID:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include/c++/6.2.1/aarch64-xilinx-linux -ID:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include/c++/6.2.1/backward -ID:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include -ID:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include/features -ID:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include/glib-2.0 -ID:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/lib/glib-2.0/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1 -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1/aarch64-linux-gnu -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/6.2.1/backward -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/6.2.1/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/6.2.1/include-fixed -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -IC:/xf/Fast/src -ID:/download/fpga/zcu104-rv-ss-2018-2/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -DHLS_NO_XIL_FPO_LIB -Wall -fmessage-length=0 -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -Wno-sign-compare -MMD -MP -D __SDSCC__ -m64 -I D:/download/fpga/zcu104-rv-ss-2018-2/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -D HLS_NO_XIL_FPO_LIB -I C:/Xilinx/SDx/2018.2/target/aarch64-linux/include -IC:/xf/Fast/src -D __SDSVHLS__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -w -I D:/download/fpga/zcu104-rv-ss-2018-2/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -I C:/Xilinx/SDx/2018.2/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I C:/Xilinx/Vivado/2018.2/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1 -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/aarch64-linux-gnu -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/backward -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include-fixed -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -IC:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 C:/xf/Fast/src/xf_fast_accel.cpp -o C:/xf/Fast/Release/_sds/vhls/xf_fast_accel_pp.cpp
C:\xf\Fast\Release>exit /b 0
INFO: [PragmaGen 83-3231] Successfully generated tcl script: C:/xf/Fast/Release/_sds/vhls/fast_accel.tcl
Moving function fast_accel to Programmable Logic
ERROR: [SdsCompiler 83-5031] Problem detected in Vivado HLS run - unable to find solution implementation directory for fast_accel C:/xf/Fast/Release/_sds/vhls/fast_accel/solution/impl/ip. For possible causes, review C:/xf/Fast/Release/_sds/vhls/fast_accel/solution/solution.log or C:/xf/Fast/Release/_sds/vhls/fast_accel_vivado_hls.log.
C:/xf/Fast/Release/_sds/vhls/fast_accel_vivado_hls.log (last 20 lines):
D:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:36:2: error: "__WORDSIZE is not defined"
#error "__WORDSIZE is not defined"
 ^
D:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:59:2: error: "Unknown __WORDSIZE detected"
#error "Unknown __WORDSIZE detected"
 ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
C preprocessor failed.
    while executing
"source C:/xf/Fast/Release/_sds/vhls/fast_accel_run.tcl"
    invoked from within
"hls::main C:/xf/Fast/Release/_sds/vhls/fast_accel_run.tcl -l fast_accel_vivado_hls.log"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 hls::main {*}$args"
    (procedure "hls_proc" line 5)
    invoked from within
"hls_proc $argv"
INFO: [Common 17-206] Exiting vivado_hls at Mon Jul 30 19:24:58 2018...
sds++ log file saved as C:/xf/Fast/Release/_sds/reports/sds_xf_fast_accel.log
ERROR: [SdsCompiler 83-5004] Build failed
make: *** [src/xf_fast_accel.o] 错误 1
19:24:58 Build Finished (took 18s.344ms)
 
0 Kudos
Adventurer
Adventurer
576 Views
Registered: ‎06-05-2018

Re: a xfOpenCV error

You have the wrong include file like 'D:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h' ! you see ? The right may be is 'D:/download/fpga/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include/bits/wordsize.h' !
0 Kudos
Xilinx Employee
Xilinx Employee
284 Views
Registered: ‎08-20-2018

Re: a xfOpenCV error

@swordwest

Are you still facing this error?

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