Other Parts Discussed in Thread: CSD
We’re trying to build Qt 5.9.x against TI processor SDK version 3 or 4 (tried both) but are experiencing a build error in the Qt chromium stuff.
Here is the build error we're getting (a sample of actual build output is pasted below):
error: inlining failed in call to always_inline someFunctionName: target specific option mismatch
We get a whole slew of these errors, all for different functions.
We think this is telling us there is a problem with some ARM-specific -m compiler option, that we're either missing one or have one that isn't valid. But we're not sure which option.
Here are the compiler options that the build output shows are being given to the files that are failing to compile:
-Wno-\#pragma-messages -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -march=armv7-a -mfloat-abi=hard -mtune=generic-armv7-a -mfpu=vfpv3-d16 -mthumb -g0 --sysroot=../../../../../../ti-processor-sdk-linux-am335x-evm-04.01.00.06/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi -fvisibility=hidden -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -O3 -fno-ident -fdata-sections -ffunction-sections
Anyone have any idea which option we're missing or giving that we shouldn't be?
Thanks in advance!
[5348/17331] CC obj/third_party/opus/bundled_opus/warped_autocorrelation_FIX.o
[5349/17331] CC obj/third_party/opus/bundled_opus/celt_neon_intr.o
FAILED: obj/third_party/opus/bundled_opus/celt_neon_intr.o
/home/user//ti-processor-sdk-linux-am335x-evm-04.01.00.06/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -MMD -MF obj/third_party/opus/bundled_opus/celt_neon_intr.o.d -DOPUS_BUILD -DOPUS_EXPORT= -DHAVE_LRINT -DHAVE_LRINTF -DVAR_ARRAYS -DFIXED_POINT -DOPUS_ARM_ASM -DOPUS_ARM_INLINE_ASM -DOPUS_ARM_INLINE_EDSP -DOPUS_ARM_MAY_HAVE_EDSP -DOPUS_ARM_MAY_HAVE_MEDIA -DOPUS_ARM_MAY_HAVE_NEON -DOPUS_ARM_MAY_HAVE_NEON_INTR -DOPUS_HAVE_RTCD -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_OPENSSL_CERTS=1 -DUSE_OZONE=1 -DNO_TCMALLOC -DDISABLE_NACL -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DOPUS_FIXED_POINT -I../../3rdparty/chromium/third_party/opus/src/celt -I../../3rdparty/chromium/third_party/opus/src/silk -I../../3rdparty/chromium/third_party/opus/src/silk/fixed -I../../3rdparty/chromium/third_party/opus/src -Igen -I../../3rdparty/chromium -I../../3rdparty/chromium/third_party/opus/src/include -Wno-\#pragma-messages -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -march=armv7-a -mfloat-abi=hard -mtune=generic-armv7-a -mfpu=vfpv3-d16 -mthumb -g0 --sysroot=../../../../../../ti-processor-sdk-linux-am335x-evm-04.01.00.06/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi -fvisibility=hidden -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -O3 -fno-ident -fdata-sections -ffunction-sections -c ../../3rdparty/chromium/third_party/opus/src/celt/arm/celt_neon_intr.c -o obj/third_party/opus/bundled_opus/celt_neon_intr.o
In file included from ../../3rdparty/chromium/third_party/opus/src/celt/arm/celt_neon_intr.c:37:0:
../../3rdparty/chromium/third_party/opus/src/celt/arm/celt_neon_intr.c: In function 'xcorr_kernel_neon_fixed':
/home/user/ti-processor-sdk-linux-am335x-evm-04.01.00.06/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/gcc/arm-linux-gnueabihf/6.2.1/include/arm_neon.h:8921:1: error: inlining failed in call to always_inline 'vld1_s16': target specific option mismatch
vld1_s16 (const int16_t * __a)
^~~~~~~~
../../3rdparty/chromium/third_party/opus/src/celt/arm/celt_neon_intr.c:47:14: note: called from here
int16x4_t y0 = vld1_s16(y);
^~
In file included from ../../3rdparty/chromium/third_party/opus/src/celt/arm/celt_neon_intr.c:37:0:
/home/user/ti-processor-sdk-linux-am335x-evm-04.01.00.06/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/gcc/arm-linux-gnueabihf/6.2.1/include/arm_neon.h:9010:1: error: inlining failed in call to always_inline 'vld1q_s32': target specific option mismatch
vld1q_s32 (const int32_t * __a)
^~~~~~~~~
../../3rdparty/chromium/third_party/opus/src/celt/arm/celt_neon_intr.c:44:14: note: called from here
int32x4_t a = vld1q_s32(sum);
And so on (many more of the same error).