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: 
Visitor frankzhao92
Visitor
480 Views
Registered: ‎07-05-2018

xfopencv make error using 2018.2 petalinux

Hello,

 

I am having trouble compiling xfopencv examples using petalinux 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 petalinux, the xfopencv compiles successfully. Also to note, the hardware synthesis and build works on both 2017.4 and 2018.2.

 

Thanks in advance.

0 Kudos
2 Replies
Highlighted
Visitor frankzhao92
Visitor
432 Views
Registered: ‎07-05-2018

Re: xfopencv make error using 2018.2 petalinux

Sorry I made a mistake with the post, it should be 2018.2 SDK, not petalinux. Please close this thread, I will make a new one.

0 Kudos
Moderator
Moderator
413 Views
Registered: ‎10-06-2016

Re: xfopencv make error using 2018.2 petalinux

Hi @frankzhao92,

We do not close threads :) Please just post a message with the link to the new thread and mark it as solution.

Regards
Ibai

Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos