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 dawn.paul
Visitor
393 Views
Registered: ‎01-14-2019

ChaiDNN build error

Following error is got while building Chaidnn for zcu104. I have followed the following link
 
Building file: ../src/software/swkernels/xi_eltwiseadd_top.cpp
Invoking: SDS++ Compiler
sds++ -sds-hw XiConvolutionTop  /home/ml1/guruprasad/dawn/chai2/CHaiDNN/design/conv/src/xi_convolution_top.cpp -clkid 1 -hls-tcl  /home/ml1/guruprasad/dawn/chai2/CHaiDNN/design/conv/scripts/config_core.tcl -sds-end -D__SDSOC -D__CONV_ENABLE__ -D__DSP48E2__ -D__SYNTHESIS__ -D__DECONV_ENABLE__ -D__POOL_ENABLE__ -Wall -O0 -g -I/home/ml1/guruprasad/dawn/chai2/CHaiDNN/SD_Card/opencv/arm64/include -I/home/ml1/guruprasad/dawn/chai2/CHaiDNN/SD_Card/protobuf/arm64/include -I/home/ml1/guruprasad/dawn/chai2/CHaiDNN/SD_Card/cblas/arm64/include -I/home/ml1/guruprasad/dawn/chai2/CHaiDNN/SD_Card/cblas/arm64/ -I/home/ml1/guruprasad/projects/sdk3/ChaiDNN3/src/design/conv/include -I/home/ml1/guruprasad/projects/sdk3/ChaiDNN3/src/design/conv/src -I/home/ml1/guruprasad/projects/sdk3/ChaiDNN3/src/design/pool/include -I/home/ml1/guruprasad/projects/sdk3/ChaiDNN3/src/design/pool/src -I/home/ml1/guruprasad/projects/sdk3/ChaiDNN3/src/design/deconv/include -I/home/ml1/guruprasad/projects/sdk3/ChaiDNN3/src/design/deconv/src -I"../src" -I/home/ml1/guruprasad/XilinxPackages/zcu104-rv-ss-2018-2/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -c -fmessage-length=0 -MT"src/software/swkernels/xi_eltwiseadd_top.o" -MMD -MP -MF"src/software/swkernels/xi_eltwiseadd_top.d" -MT"src/software/swkernels/xi_eltwiseadd_top.o" -o "src/software/swkernels/xi_eltwiseadd_top.o" "../src/software/swkernels/xi_eltwiseadd_top.cpp" -sds-hw PoolTop pooling_layer_dp_2xio_top.cpp  -clkid 2 -sds-end -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "/home/ml1/guruprasad/XilinxPackages/zcu104-rv-ss-2018-2/zcu104_rv_ss"
Create data motion intermediate representation
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:30:13: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma GCC push_options
            ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:31:13: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma GCC target ("+nothing+simd")
            ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:38:9: error: unknown type name '__Int8x8_t'
typedef __Int8x8_t int8x8_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:39:9: error: unknown type name '__Int16x4_t'
typedef __Int16x4_t int16x4_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:40:9: error: unknown type name '__Int32x2_t'; did you mean '__int32_t'?
typedef __Int32x2_t int32x2_t;
        ^~~~~~~~~~~
        __int32_t
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/bits/types.h:40:20: note: '__int32_t' declared here
typedef signed int __int32_t;
                   ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:41:9: error: unknown type name '__Int64x1_t'; did you mean '__int64_t'?
typedef __Int64x1_t int64x1_t;
        ^~~~~~~~~~~
        __int64_t
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/bits/types.h:43:25: note: '__int64_t' declared here
typedef signed long int __int64_t;
                        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:42:9: error: unknown type name '__Float16x4_t'
typedef __Float16x4_t float16x4_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:43:9: error: unknown type name '__Float32x2_t'
typedef __Float32x2_t float32x2_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:44:9: error: unknown type name '__Poly8x8_t'
typedef __Poly8x8_t poly8x8_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:45:9: error: unknown type name '__Poly16x4_t'
typedef __Poly16x4_t poly16x4_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:46:9: error: unknown type name '__Uint8x8_t'
typedef __Uint8x8_t uint8x8_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:47:9: error: unknown type name '__Uint16x4_t'
typedef __Uint16x4_t uint16x4_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:48:9: error: unknown type name '__Uint32x2_t'
typedef __Uint32x2_t uint32x2_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:49:9: error: unknown type name '__Float64x1_t'
typedef __Float64x1_t float64x1_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:50:9: error: unknown type name '__Uint64x1_t'
typedef __Uint64x1_t uint64x1_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:51:9: error: unknown type name '__Int8x16_t'; did you mean '__int16_t'?
typedef __Int8x16_t int8x16_t;
        ^~~~~~~~~~~
        __int16_t
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/bits/types.h:38:26: note: '__int16_t' declared here
typedef signed short int __int16_t;
                         ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:52:9: error: unknown type name '__Int16x8_t'
typedef __Int16x8_t int16x8_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:53:9: error: unknown type name '__Int32x4_t'; did you mean '__int32_t'?
typedef __Int32x4_t int32x4_t;
        ^~~~~~~~~~~
        __int32_t
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/bits/types.h:40:20: note: '__int32_t' declared here
typedef signed int __int32_t;
                   ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:54:9: error: unknown type name '__Int64x2_t'; did you mean '__int64_t'?
typedef __Int64x2_t int64x2_t;
        ^~~~~~~~~~~
        __int64_t
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/libc/usr/include/bits/types.h:43:25: note: '__int64_t' declared here
typedef signed long int __int64_t;
                        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:55:9: error: unknown type name '__Float16x8_t'
typedef __Float16x8_t float16x8_t;
        ^
/opt/pkt/xilinx_tools/SDK/2018.2/gnu/aarch64/lin/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.2.1/include/arm_neon.h:56:9: error: unknown type name '__Float32x4_t'
typedef __Float32x4_t float32x4_t;
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
ERROR: [SdsCompiler 83-5005] clang exited with non-zero code processing /home/ml1/guruprasad/projects/sdk3/ChaiDNN3/src/software/swkernels/xi_eltwiseadd_top.cpp
sds++ log file saved as /home/ml1/guruprasad/projects/sdk3/ChaiDNN3/Debug/_sds/reports/sds_xi_eltwiseadd_top.log
ERROR: [SdsCompiler 83-5004] Build failed
make: *** [src/software/swkernels/xi_eltwiseadd_top.o] Error 1
 
src/software/swkernels/subdir.mk:39: recipe for target 'src/software/swkernels/xi_eltwiseadd_top.o' failed
0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
344 Views
Registered: ‎08-20-2018

Re: ChaiDNN build error

Hi @dawn.paul

Please navigate to src/software/swkernels/xi_eltwiseadd_top.cpp line no.38

#ifdef __SDSOC

 

change it to

 

#ifndef __SDSOC

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

Re: ChaiDNN build error

Hi @dawn.paul

Please let me know if you could solve the issue

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