bingqi 发表于 2019-3-17 12:32:43

SourceCode build error

Log as follows,Help~~~

In file included from external/libpng/arm/filter_neon_intrinsics.c:20:
prebuilts/clang/linux-x86/host/3.5/lib/clang/3.5/include/arm_neon.h:10261:2: error: unterminated conditional directive
#ifdef __LITTLE_ENDIAN__
^
prebuilts/clang/linux-x86/host/3.5/lib/clang/3.5/include/arm_neon.h:24:2: error: unterminated conditional directive
#ifndef __ARM_NEON_H
^
external/libpng/arm/filter_neon_intrinsics.c:56:7: warning: implicit declaration of function 'vst1q_u8' [-Wimplicit-function-declaration]
      vst1q_u8(rp, qrp);
      ^
external/libpng/arm/filter_neon_intrinsics.c:92:7: warning: implicit declaration of function 'vst1_lane_u32' [-Wimplicit-function-declaration]
      vst1_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2_t,&vdest.val), 0);
      ^
external/libpng/arm/filter_neon_intrinsics.c:117:27: warning: implicit declaration of function 'vld4_u32' [-Wimplicit-function-declaration]
      uint32x2x4_t vtmp = vld4_u32(png_ptr(uint32_t,rp));
                        ^
external/libpng/arm/filter_neon_intrinsics.c:117:20: error: initializing 'uint32x2x4_t' (aka 'struct uint32x2x4_t') with an expression of incompatible type 'int'
      uint32x2x4_t vtmp = vld4_u32(png_ptr(uint32_t,rp));
                   ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/libpng/arm/filter_neon_intrinsics.c:126:7: warning: implicit declaration of function 'vst4_lane_u32' [-Wimplicit-function-declaration]
      vst4_lane_u32(png_ptr(uint32_t,rp), png_ldr(uint32x2x4_t,&vdest), 0);
      ^
external/libpng/arm/filter_neon_intrinsics.c:216:12: error: assigning to 'uint32x2x4_t' (aka 'struct uint32x2x4_t') from incompatible type 'int'
      vtmp = vld4_u32(png_ptr(uint32_t,rp));
         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/libpng/arm/filter_neon_intrinsics.c:219:12: error: assigning to 'uint32x2x4_t' (aka 'struct uint32x2x4_t') from incompatible type 'int'
      vtmp = vld4_u32(png_ptrc(uint32_t,pp));
         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/libpng/arm/filter_neon_intrinsics.c:242:9: warning: implicit declaration of function 'vaddl_u8' [-Wimplicit-function-declaration]
   p1 = vaddl_u8(a, b); /* a + b */
      ^
external/libpng/arm/filter_neon_intrinsics.c:242:7: error: assigning to 'uint16x8_t' (vector of 8 'uint16_t' values) from incompatible type 'int'
   p1 = vaddl_u8(a, b); /* a + b */
      ^ ~~~~~~~~~~~~~~
external/libpng/arm/filter_neon_intrinsics.c:243:7: error: assigning to 'uint16x8_t' (vector of 8 'uint16_t' values) from incompatible type 'int'
   pc = vaddl_u8(c, c); /* c * 2 */
      ^ ~~~~~~~~~~~~~~
external/libpng/arm/filter_neon_intrinsics.c:244:9: warning: implicit declaration of function 'vabdl_u8' [-Wimplicit-function-declaration]
   pa = vabdl_u8(b, c); /* pa */
      ^
external/libpng/arm/filter_neon_intrinsics.c:244:7: error: assigning to 'uint16x8_t' (vector of 8 'uint16_t' values) from incompatible type 'int'
   pa = vabdl_u8(b, c); /* pa */
      ^ ~~~~~~~~~~~~~~
external/libpng/arm/filter_neon_intrinsics.c:245:7: error: assigning to 'uint16x8_t' (vector of 8 'uint16_t' values) from incompatible type 'int'
   pb = vabdl_u8(a, c); /* pb */
      ^ ~~~~~~~~~~~~~~
external/libpng/arm/filter_neon_intrinsics.c:254:8: warning: implicit declaration of function 'vmovn_u16' [-Wimplicit-function-declaration]
   d = vmovn_u16(pb);
       ^
external/libpng/arm/filter_neon_intrinsics.c:254:6: error: assigning to 'uint8x8_t' (vector of 8 'uint8_t' values) from incompatible type 'int'
   d = vmovn_u16(pb);
   ^ ~~~~~~~~~~~~~
external/libpng/arm/filter_neon_intrinsics.c:255:6: error: assigning to 'uint8x8_t' (vector of 8 'uint8_t' values) from incompatible type 'int'
   e = vmovn_u16(p1);
   ^ ~~~~~~~~~~~~~
external/libpng/arm/filter_neon_intrinsics.c:348:12: error: assigning to 'uint32x2x4_t' (aka 'struct uint32x2x4_t') from incompatible type 'int'
      vtmp = vld4_u32(png_ptr(uint32_t,rp));
         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/libpng/arm/filter_neon_intrinsics.c:351:12: error: assigning to 'uint32x2x4_t' (aka 'struct uint32x2x4_t') from incompatible type 'int'
      vtmp = vld4_u32(png_ptrc(uint32_t,pp));
         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 warnings and 13 errors generated.
make: *** Error 1
make: *** Waiting for unfinished jobs....



飞凌-chongzi 发表于 2019-3-18 17:06:15

是缺少“#endif ” 吗?您在做什么

bingqi 发表于 2019-3-18 21:40:38

飞凌-chongzi 发表于 2019-3-18 17:06
是缺少“#endif ” 吗?您在做什么

我就是按照教程里的指导编译了一下,就出现这个错误。没有修改任何代码

bingqi 发表于 2019-3-18 22:39:06

飞凌-chongzi 发表于 2019-3-18 17:06
是缺少“#endif ” 吗?您在做什么

然后打开提示报错的这个文件prebuilts/clang/linux-x86/host/3.5/lib/clang/3.5/include/arm_neon.h来看的话,到后面已经是乱码了(好像回帖上传不了图片,需要的话,可以邮箱发你)。好像是文件已经有损坏了。我跟另一个同事各自下载的代码都出现了这个问题,怀疑是百度云上的源里面就是这样的。麻烦帮忙排查一下:handshake

飞凌-chongzi 发表于 2019-3-19 10:51:52

您是编译android源码吗?有可能是百度云上的源码有问题,已经更新源码了,您重新下载一下吧

bingqi 发表于 2019-3-19 11:01:39

飞凌-chongzi 发表于 2019-3-19 10:51
您是编译android源码吗?有可能是百度云上的源码有问题,已经更新源码了,您重新下载一下吧

Hello,能否给个链接地址?我看到的【OK4418/6818-C用户资料】帖子中的附件并没有更新呀 ,最后的更新时间是2019-03-08 11:50。 是这个吗?

飞凌-chongzi 发表于 2019-3-20 15:11:47

论坛上已经更新了

页: [1]
查看完整版本: SourceCode build error