Andrew P. Lentvorski
2018-May-08 09:54 UTC
[opus] Pointer size bugs when compiling for android arm64?
I'm trying to do a standalone build of Opus and I get the following messages when compiling for android arm64 using clang: CC silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.lo silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c:43:37: warning: incompatible pointer types assigning to 'const long *' from 'long long *' [-Wincompatible-pointer-types] corr_QC_s64x2[ 0 ] = vld1q_s64( corr_QC + offset + 0 ); ^~~~~~~~~~~~~~~~~~~~ /Users/andrewl/android/toolchain-r16b-arm64-v8a/lib64/clang/5.0.300080/include/arm_neon.h:7628:46: note: expanded from macro 'vld1q_s64' __ret = (int64x2_t) __builtin_neon_vld1q_v(__p0, 35); \ ^~~~ silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c:44:37: warning: incompatible pointer types assigning to 'const long *' from 'long long *' [-Wincompatible-pointer-types] corr_QC_s64x2[ 1 ] = vld1q_s64( corr_QC + offset + 2 ); ^~~~~~~~~~~~~~~~~~~~ /Users/andrewl/android/toolchain-r16b-arm64-v8a/lib64/clang/5.0.300080/include/arm_neon.h:7628:46: note: expanded from macro 'vld1q_s64' __ret = (int64x2_t) __builtin_neon_vld1q_v(__p0, 35); \ ^~~~ silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c:49:16: warning: incompatible pointer types assigning to 'long *' from 'long long *' [-Wincompatible-pointer-types] vst1q_s64( corr_QC + offset + 0, corr_QC_s64x2[ 0 ] ); ^~~~~~~~~~~~~~~~~~~~ /Users/andrewl/android/toolchain-r16b-arm64-v8a/lib64/clang/5.0.300080/include/arm_neon.h:25122:26: note: expanded from macro 'vst1q_s64' __builtin_neon_vst1q_v(__p0, (int8x16_t)__s1, 35); \ ^~~~ silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c:50:16: warning: incompatible pointer types assigning to 'long *' from 'long long *' [-Wincompatible-pointer-types] vst1q_s64( corr_QC + offset + 2, corr_QC_s64x2[ 1 ] ); ^~~~~~~~~~~~~~~~~~~~ /Users/andrewl/android/toolchain-r16b-arm64-v8a/lib64/clang/5.0.300080/include/arm_neon.h:25122:26: note: expanded from macro 'vst1q_s64' __builtin_neon_vst1q_v(__p0, (int8x16_t)__s1, 35); \ ^~~~ silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c:230:41: warning: incompatible pointer types assigning to 'const long *' from 'long long *' [-Wincompatible-pointer-types] corr_QC0_s64x2 = vld1q_s64( corr_QCT + i ); ^~~~~~~~~~~~ /Users/andrewl/android/toolchain-r16b-arm64-v8a/lib64/clang/5.0.300080/include/arm_neon.h:7628:46: note: expanded from macro 'vld1q_s64' __ret = (int64x2_t) __builtin_neon_vld1q_v(__p0, 35); \ ^~~~ silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c:231:41: warning: incompatible pointer types assigning to 'const long *' from 'long long *' [-Wincompatible-pointer-types] corr_QC1_s64x2 = vld1q_s64( corr_QCT + i + 2 ); ^~~~~~~~~~~~~~~~ /Users/andrewl/android/toolchain-r16b-arm64-v8a/lib64/clang/5.0.300080/include/arm_neon.h:7628:46: note: expanded from macro 'vld1q_s64' __ret = (int64x2_t) __builtin_neon_vld1q_v(__p0, 35); \ ^~~~ 6 warnings generated. Could someone check these? Thanks, -a
Timothy B. Terriberry
2018-May-08 15:48 UTC
[opus] Pointer size bugs when compiling for android arm64?
Andrew P. Lentvorski wrote:> I'm trying to do a standalone build of Opus and I get the following > messages when compiling for android arm64 using clang:What version?
Andrew P. Lentvorski
2018-May-09 05:30 UTC
[opus] Pointer size bugs when compiling for android arm64?
Opus 1.2.1 $ android/toolchain-r16b-arm64-v8a/bin/aarch64-linux-android-clang --version Android clang version 5.0.300080 (based on LLVM 5.0.300080) Target: aarch64-none-linux-android Thread model: posix -a On 5/8/18 8:48 AM, Timothy B. Terriberry wrote:> Andrew P. Lentvorski wrote: >> I'm trying to do a standalone build of Opus and I get the following >> messages when compiling for android arm64 using clang: > > What version? >