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: 
Highlighted
Visitor frankzhao92
Visitor
471 Views

xfopencv make error using 2018.2 SDK

Jump to solution

Hello,

 

I am having trouble compiling xfopencv examples using SDK (SDSoC) 2018.2 on ubuntu 14.04 machine. Here are the errors I get when I run make:

 

==============================

aarch64-linux-gnu-g++ -E -I. -I/usr/include -I../../include -O0 -Wall -DHLS_NO_XIL_FPO_LIB -mstrict-align -D __SDSCC__ -I /opt/Xilinx/SDx/2018.2/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I /opt/Xilinx/Vivado/2018.2/include /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_image_accel.cpp -o /home/sftdev/xfopencv/examples/accumulate/_sds/.pp/xf_accumulate_image_accel.iix
In file included from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/cstdlib:75:0,
from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/ext/string_conversions.h:41,
from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/bits/basic_string.h:6349,
from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/string:52,
from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/bits/locale_classes.h:40,
from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/bits/ios_base.h:41,
from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/ios:42,
from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/ostream:38,
from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/iostream:39,
from /opt/Xilinx/Vivado/2018.2/include/hls_stream.h:80,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_config.h:34,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_image_accel.cpp:31:
/opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/stdlib.h:131:36: error: missing binary operator before token "("
#if __HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
^
/opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/stdlib.h:174:17: error: missing binary operator before token "("
#if __GLIBC_USE (IEC_60559_BFP_EXT)
^
/opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/stdlib.h:188:36: error: missing binary operator before token "("
#if __HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
^
In file included from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/cmath:45:0,
from /opt/Xilinx/Vivado/2018.2/include/hls_half.h:32,
from /opt/Xilinx/Vivado/2018.2/include/ap_int_sim.h:73,
from /opt/Xilinx/Vivado/2018.2/include/ap_int.h:65,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_config.h:35,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_image_accel.cpp:31:
/opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/math.h:44:36: error: missing binary operator before token "("
#if __HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
^
In file included from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/cmath:45:0,
from /opt/Xilinx/Vivado/2018.2/include/hls_half.h:32,
from /opt/Xilinx/Vivado/2018.2/include/ap_int_sim.h:73,
from /opt/Xilinx/Vivado/2018.2/include/ap_int.h:65,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_config.h:35,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_image_accel.cpp:31:
/opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/math.h:59:17: error: missing binary operator before token "("
#if __GLIBC_USE (IEC_60559_BFP_EXT)
^
/opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/math.h:67:36: error: missing binary operator before token "("
#if __HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
^
In file included from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/cmath:45:0,
from /opt/Xilinx/Vivado/2018.2/include/hls_half.h:32,
from /opt/Xilinx/Vivado/2018.2/include/ap_int_sim.h:73,
from /opt/Xilinx/Vivado/2018.2/include/ap_int.h:65,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_config.h:35,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_image_accel.cpp:31:
/opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/math.h:137:17: error: missing binary operator before token "("
#if __GLIBC_USE (IEC_60559_BFP_EXT)
^
In file included from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/cmath:45:0,
from /opt/Xilinx/Vivado/2018.2/include/hls_half.h:32,
from /opt/Xilinx/Vivado/2018.2/include/ap_int_sim.h:73,
from /opt/Xilinx/Vivado/2018.2/include/ap_int.h:65,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_config.h:35,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_image_accel.cpp:31:
/opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/math.h:169:17: error: missing binary operator before token "("
#if __GLIBC_USE (IEC_60559_BFP_EXT)
^
In file included from /opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.2.1/cmath:45:0,
from /opt/Xilinx/Vivado/2018.2/include/hls_half.h:32,
from /opt/Xilinx/Vivado/2018.2/include/ap_int_sim.h:73,
from /opt/Xilinx/Vivado/2018.2/include/ap_int.h:65,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_config.h:35,
from /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_image_accel.cpp:31:
/opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/math.h:488:17: error: missing binary operator before token "("
#if __GLIBC_USE (IEC_60559_BFP_EXT)
^
/opt/Xilinx/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/math.h:835:17: error: missing binary operator before token "("
#if __GLIBC_USE (IEC_60559_BFP_EXT)
^
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'aarch64-linux-gnu-g++ -E -I. -I/usr/include -I../../include -O0 -Wall -DHLS_NO_XIL_FPO_LIB -mstrict-align -D __SDSCC__ -I /opt/Xilinx/SDx/2018.2/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I /opt/Xilinx/Vivado/2018.2/include /home/sftdev/xfopencv/examples/accumulate/xf_accumulate_image_accel.cpp -o /home/sftdev/xfopencv/examples/accumulate/_sds/.pp/xf_accumulate_image_accel.iix'
sds++ log file saved as /home/sftdev/xfopencv/examples/accumulate/_sds/reports/sds_xf_accumulate_image_accel.log
ERROR: [SdsCompiler 83-5004] Build failed

==============================

 

If I use 2017.4 SDK (SDSoC) on the same build machine, the xfopencv examples compiles successfully. Also to note, the hardware synthesis and build works on both 2017.4 and 2018.2, only software cannot compile. 

 

Thanks in advance.

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
556 Views

Re: xfopencv make error using 2018.2 SDK

Jump to solution

Hi frankzhao92,

 

Looking at the log file, I am noticing that one of the include paths is point to your computer's include directory. Looking into your provided log files and matching it with the proper command in the Makefile, it looks like you're missing your SYSROOT path.

 

For the reVISION platform you would want to set an environment variable of SYSROOT to the sysroot directory to the specified platform (ZCU102 or ZCU104). This would be located in the zcu102_rv_ss/sw/sysroot location.

 

You can find more info here: https://github.com/Xilinx/Revision-Getting-Started-Guide/blob/master/tool-flow-tutorials.md

 

Thanks

Steve

 

 

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
557 Views

Re: xfopencv make error using 2018.2 SDK

Jump to solution

Hi frankzhao92,

 

Looking at the log file, I am noticing that one of the include paths is point to your computer's include directory. Looking into your provided log files and matching it with the proper command in the Makefile, it looks like you're missing your SYSROOT path.

 

For the reVISION platform you would want to set an environment variable of SYSROOT to the sysroot directory to the specified platform (ZCU102 or ZCU104). This would be located in the zcu102_rv_ss/sw/sysroot location.

 

You can find more info here: https://github.com/Xilinx/Revision-Getting-Started-Guide/blob/master/tool-flow-tutorials.md

 

Thanks

Steve

 

 

0 Kudos
Visitor frankzhao92
Visitor
322 Views

Re: xfopencv make error using 2018.2 SDK

Jump to solution

Using the correct SYSPATH value fixed this problem. Thanks Steve!

0 Kudos