[opus] Pointer size bugs when compiling for android arm64?

Andrew P. Lentvorski bsder at allcaps.org
Tue May 8 09:54:22 UTC 2018


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



More information about the opus mailing list