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: 
Contributor
Contributor
896 Views
Registered: ‎08-02-2016

Problem with SDx project on non-reVISION platform [SdsCompiler 83-5031]

hi, folks

 

I am new to SDx. It is failed when using xfopencv library on a non-reVISION platform according to ug1233 for non-reVISION part.

My working environment is SDX 2018.2 on WIN 10.

I create project on zcu102 platform(non-reVISION) and using opencv library in zcu102_rv_ss_2018.2 (reVISION platform pakcage).

The project settings are as below:

 

1.PNG

 

2.PNG

 

3.PNG

 

when I build the project I got the error log as below:

 

D:\SDSoC_workspace\zcu102_non_reVISION\xfopencv_test1\Release>exit /b 0 
INFO: [PragmaGen 83-3231] Successfully generated tcl script: D:/SDSoC_workspace/zcu102_non_reVISION/xfopencv_test1/Release/_sds/vhls/w0_xf_accumulate.tcl
Moving function w0_xf_accumulate to Programmable Logic
ERROR: [SdsCompiler 83-5031] Problem detected in Vivado HLS run - unable to find solution implementation directory for w0_xf_accumulate D:/SDSoC_workspace/zcu102_non_reVISION/xfopencv_test1/Release/_sds/vhls/w0_xf_accumulate/solution/impl/ip. For possible causes, review D:/SDSoC_workspace/zcu102_non_reVISION/xfopencv_test1/Release/_sds/vhls/w0_xf_accumulate/solution/solution.log or D:/SDSoC_workspace/zcu102_non_reVISION/xfopencv_test1/Release/_sds/vhls/w0_xf_accumulate_vivado_hls.log.
D:/SDSoC_workspace/zcu102_non_reVISION/xfopencv_test1/Release/_sds/vhls/w0_xf_accumulate_vivado_hls.log (last 20 lines):
D:/SDSoC_workspace/zcu102-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:/SDSoC_workspace/zcu102-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 D:/SDSoC_workspace/zcu102_non_reVISION/xfopencv_test1/Release/_sds/vhls/w0_xf_accumulate_run.tcl"
    invoked from within
"hls::main D:/SDSoC_workspace/zcu102_non_reVISION/xfopencv_test1/Release/_sds/vhls/w0_xf_accumulate_run.tcl -l w0_xf_accumulate_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 Thu Nov  1 17:10:45 2018...
sds++ log file saved as D:/SDSoC_workspace/zcu102_non_reVISION/xfopencv_test1/Release/_sds/reports/sds_xf_accumulate_image_accel.log
ERROR: [SdsCompiler 83-5004] Build failed

and the log in w0_xf_accumulate_vivado_hls.log as below:

 

In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:
D:/SDSoC_workspace/zcu102-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include\bits/wordsize.h:32:10: error: #include nested too deeply
#include <bits/wordsize.h>
         ^
D:/SDSoC_workspace/zcu102-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:/SDSoC_workspace/zcu102-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"
 ^

Any suggestions are welcomed !

0 Kudos
6 Replies
Xilinx Employee
Xilinx Employee
861 Views
Registered: ‎10-28-2013

Re: Problem with SDx project on non-reVISION platform [SdsCompiler 83-5031]

Hi @mcggoal,

 

If you want to stay with non-reVISION platform, while targetting reVISION libraries, you'll want to reduce the SYSROOT you're targeting to the bare includes and libraries needed for compilation. This means you should not use the --sysroot flag and only target the -L to the lib directory. Also, on Windows, it's a good idea to reduce path length to not potentially run into odd behavior related to the character limit.

 

Steve

 

0 Kudos
Contributor
Contributor
847 Views
Registered: ‎08-02-2016

Re: Problem with SDx project on non-reVISION platform [SdsCompiler 83-5031]

@sgrace I come back with the same error. and I have updated library -L as below:

 

4.PNG

 

5.PNG

the build log as below:

17:01:01 **** Build of configuration Release for project zcu102_rv_test1 ****
make pre-build main-build 
sdsoc_make_clean Release
' '
'Building file: ../src/xf_accumulate_image_accel.cpp'
'Invoking: SDS++ Compiler'
sds++ -Wall -O3 -I"../src" -I"C:\Users\chgma\.Xilinx\SDx\2018.2\xfopencv\include" -I"D:\SDSoC_workspace\sysroot\usr\include" -c -fmessage-length=0 -MT"src/xf_accumulate_image_accel.o" -MMD -MP -MF"src/xf_accumulate_image_accel.d" -MT"src/xf_accumulate_image_accel.o" -o "src/xf_accumulate_image_accel.o" "../src/xf_accumulate_image_accel.cpp" -sds-hw "xf::accumulate<0,1,2160,3840,1>" xf_accumulate_image_accel.cpp  -files C:/Users/chgma/.Xilinx/SDx/2018.2/xfopencv/include/imgproc/xf_accumulate_image.hpp  -clkid 1 -sds-end -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "zcu102"
Processing -sds-hw block for xf::accumulate<0,1,2160,3840,1>
Create data motion intermediate representation

D:\SDSoC_workspace\zcu102_non_reVISION\zcu102_rv_test1\Release>D:\Xilinx\SDx\2018.2\llvm-clang\win64\llvm\bin\clang.exe -I../src -IC:\Users\chgma\.Xilinx\SDx\2018.2\xfopencv\include -ID:\SDSoC_workspace\sysroot\usr\include -Wall -fmessage-length=0 -MMD -MP -D __SDSCC__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -I D:/Xilinx/SDx/2018.2/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I D:/Xilinx/Vivado/2018.2/include -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1 -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/aarch64-linux-gnu -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/backward -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include-fixed -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 -emit-llvm -S D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/src/xf_accumulate_image_accel.cpp -o D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/Release/_sds/.llvm/src/xf_accumulate_image_accel.s 
D:/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> > {
^
D:/Xilinx/Vivado/2018.2/include/ap_int_special.h:71:24: note: did you mean struct here?
template<typename _Tp> class complex;
                       ^~~~~
                       struct
D:/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> > {
^
D:/Xilinx/Vivado/2018.2/include/ap_fixed_special.h:71:24: note: did you mean struct here?
template<typename _Tp> class complex;
                       ^~~~~
                       struct
D:/Xilinx/Vivado/2018.2/include/ap_int_special.h:71:24: note: did you mean struct here?
template<typename _Tp> class complex;
                       ^~~~~
                       struct
C:\Users\chgma\.Xilinx\SDx\2018.2\xfopencv\include\common/xf_utility.h:71:2: warning: unused label 'Extract_pixels_loop' [-Wunused-label]
        Extract_pixels_loop:
        ^~~~~~~~~~~~~~~~~~~~
C:\Users\chgma\.Xilinx\SDx\2018.2\xfopencv\include\imgproc/xf_accumulate_image.hpp:65:8: warning: unused variable 'y' [-Wunused-variable]
                        int y;
                            ^
C:\Users\chgma\.Xilinx\SDx\2018.2\xfopencv\include\imgproc/xf_accumulate_image.hpp:68:4: warning: unused label 'ProcLoop' [-Wunused-label]
                        ProcLoop:
                        ^~~~~~~~~
C:\Users\chgma\.Xilinx\SDx\2018.2\xfopencv\include\imgproc/xf_accumulate_image.hpp:60:3: warning: unused label 'ColLoop' [-Wunused-label]
                ColLoop:
                ^~~~~~~~
C:\Users\chgma\.Xilinx\SDx\2018.2\xfopencv\include\imgproc/xf_accumulate_image.hpp:55:2: warning: unused label 'RowLoop' [-Wunused-label]
        RowLoop:
        ^~~~~~~~

D:\SDSoC_workspace\zcu102_non_reVISION\zcu102_rv_test1\Release>exit /b 0 
Performing accelerator source linting for w0_xf_accumulate
Performing pragma generation

D:\SDSoC_workspace\zcu102_non_reVISION\zcu102_rv_test1\Release>D:\Xilinx\SDx\2018.2\llvm-clang\win64\llvm\bin\clang.exe -E -ID:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/src -IC:/Users/chgma/.Xilinx/SDx/2018.2/xfopencv/include -ID:/SDSoC_workspace/sysroot/usr/include -Wall -fmessage-length=0 -MMD -MP -D __SDSCC__ -m64 -D HLS_NO_XIL_FPO_LIB -I D:/Xilinx/SDx/2018.2/target/aarch64-linux/include -ID:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/src -D __SDSVHLS__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -w -I D:/Xilinx/SDx/2018.2/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I D:/Xilinx/Vivado/2018.2/include -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1 -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/aarch64-linux-gnu -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/backward -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include-fixed -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -ID:/Xilinx/SDK/2018.2/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/src/xf_accumulate_image_accel.cpp -o D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/Release/_sds/vhls/xf_accumulate_image_accel_pp.cpp 

D:\SDSoC_workspace\zcu102_non_reVISION\zcu102_rv_test1\Release>exit /b 0 
INFO: [PragmaGen 83-3231] Successfully generated tcl script: D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/Release/_sds/vhls/w0_xf_accumulate.tcl
Moving function w0_xf_accumulate to Programmable Logic
ERROR: [SdsCompiler 83-5031] Problem detected in Vivado HLS run - unable to find solution implementation directory for w0_xf_accumulate D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/Release/_sds/vhls/w0_xf_accumulate/solution/impl/ip. For possible causes, review D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/Release/_sds/vhls/w0_xf_accumulate/solution/solution.log or D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/Release/_sds/vhls/w0_xf_accumulate_vivado_hls.log.
D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/Release/_sds/vhls/w0_xf_accumulate_vivado_hls.log (last 20 lines):
D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:36:2: error: "__WORDSIZE is not defined"
#error "__WORDSIZE is not defined"
 ^
D:/SDSoC_workspace/sysroot/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 D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/Release/_sds/vhls/w0_xf_accumulate_run.tcl"
    invoked from within
"hls::main D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/Release/_sds/vhls/w0_xf_accumulate_run.tcl -l w0_xf_accumulate_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 Fri Nov  2 17:01:14 2018...
sds++ log file saved as D:/SDSoC_workspace/zcu102_non_reVISION/zcu102_rv_test1/Release/_sds/reports/sds_xf_accumulate_image_accel.log
ERROR: [SdsCompiler 83-5004] Build failed

make: *** [src/xf_accumulate_image_accel.o] 错误 1

17:01:14 Build Finished (took 13s.71ms)

 

and the "sds_xf_accumulate_image_accel.log" says below fault:

 

In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
In file included from D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:
D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:32:10: error: #include nested too deeply
#include <bits/wordsize.h>
^
D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:36:2: error: "__WORDSIZE is not defined"
#error "__WORDSIZE is not defined"
^
D:/SDSoC_workspace/sysroot/usr/include\bits/wordsize.h:59:2: error: "Unknown __WORDSIZE detected"
#error "Unknown __WORDSIZE detected"
^

Appreciated for your reply!

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

Re: Problem with SDx project on non-reVISION platform [SdsCompiler 83-5031]

Hi @mcggoal

A very important note mentioned in UG1233 is,

Note: The OpenCV library is not provided by Xilinx for custom platforms. You are required to provide the library. Use the reVISION platform in order to use the OpenCV library provided by Xilinx.

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Xilinx Employee
Xilinx Employee
619 Views
Registered: ‎08-18-2017

Re: Problem with SDx project on non-reVISION platform [SdsCompiler 83-5031]

Please add "-hls-target 1" to the sds++ command options. You can right click on project, C/C++ build settings->SDS++ Compiler -> Miscellaneous, and add "-hls-target 1" as other flags.

0 Kudos
464 Views
Registered: ‎08-08-2017

Re: Problem with SDx project on non-reVISION platform [SdsCompiler 83-5031]

Hello, I am using SDx18.1 and working through the tutorial at "https://github.com/Xilinx/SDSoC-Tutorials/tree/master/opencv-to-xfopencv-migration-tutorial" do you have any insight as to why I would get the following error when trying to add to command options as you suggested suggested? clang.exe: error: unknown argument: '-hls-target'
The entire sds++ command options for other flags is "-c -fmessage-length=0 -MT"$@" -hls-target 1" as suggested

0 Kudos
Scholar xilinxacct
Scholar
462 Views
Registered: ‎10-23-2018

Re: Problem with SDx project on non-reVISION platform [SdsCompiler 83-5031]

@mcggoal

One problem you seem to have (which may not have anything to do with the original problem)....

It looks like you have a circular reference of your include file (and it doesn't look like it protects itself from multiple inclusion.

Add something like

#ifndef WORDSIZE_H

#define WORDSIZE_H

// include file contents

#endif

Hope that Helps

0 Kudos