Open Guokr1991 opened 7 years ago
@Guokr1991 , since this issue is still open I should mention this is a bug in older version of the GCC toolchain. For instance, using the following GCC has this issue:
"aarch64-linux-gnu-gcc (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04) 4.8.3 20140401 (prerelease)"
However using a newer version such as the following fixes the issue and completes the build: "aarch64-linux-gnu-gcc (Linaro GCC 7.4-2019.02) 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4]"
@mdupuy and @joesavage you can close this issue.
When followed the building documentation, I get some errors:
In file included from /home/tim/GitRep/projectNe10/modules/imgproc/NE10_resize.neon.c:28:0: /home/tim/GitRep/projectNe10/modules/imgproc/NE10_resize.neon.c: In function ‘ne10_img_vresize_linear_neon’: /home/tim/GitRep/projectNe10/modules/imgproc/NE10_resize.neon.c:174:19: error: incompatible types when initializing type ‘int32x4_t’ using type ‘int32x2_t’ qT_0123 = vmlaq_lane_s32 (qT_0123, qS1_0123, dBeta, 1); ^ /home/tim/GitRep/projectNe10/modules/imgproc/NE10_resize.neon.c:175:19: error: incompatible types when initializing type ‘int32x4_t’ using type ‘int32x2_t’ qT_4567 = vmlaq_lane_s32 (qT_4567, qS1_4567, dBeta, 1); ^ /home/tim/GitRep/projectNe10/modules/imgproc/NE10_resize.neon.c:209:19: error: incompatible types when initializing type ‘int32x4_t’ using type ‘int32x2_t’ qT_0123 = vmlaq_lane_s32 (qT_0123, qS1_0123, dBeta, 1); ^ /home/tim/GitRep/projectNe10/modules/imgproc/NE10_resize.neon.c:210:19: error: incompatible types when initializing type ‘int32x4_t’ using type ‘int32x2_t’ qT_4567 = vmlaq_lane_s32 (qT_4567, qS1_4567, dBeta, 1); ^ make[2]: [modules/CMakeFiles/NE10.dir/imgproc/NE10_resize.neon.c.o] Error 1 make[1]: [modules/CMakeFiles/NE10.dir/all] Error 2 make: *** [all] Error 2
So, how to solve this issue? Thanks.