Build for Arm9V5 errors

Use the C++ library method to port to the arm9v5 platform, but the following error will appear when you execute build.sh. Are there any compilation parameters to be added? Thank you !

#example-standalone-inferencing$ sh build.sh

Functions/arm_negate_q31.o
Assembler messages:
/tmp/ccaAbQDd.s:62: Error: selected processor does not support ARM mode qsub16 r4,r6,r5' make: *** [Makefile:72: edge-impulse-sdk/CMSIS/DSP/Source/BasicMathFunctions/arm_abs_q15.o] Error 1 make: *** Waiting for unfinished jobs.... /tmp/cc314NDZ.s: Assembler messages: /tmp/cc314NDZ.s:59: Error: selected processor does not support ARM mode qsub8 ip,r5,r4’
make: *** [Makefile:72: edge-impulse-sdk/CMSIS/DSP/Source/BasicMathFunctions/arm_abs_q7.o] Error 1

@cs007a Could you in edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h comment this out and try again?

/* evaluate ARM DSP feature */
#if (defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1))
  #define ARM_MATH_DSP                   1
#endif

Also which target is this? Would love to dive deeper into this…

cpu-target is Arm926ej-s

$ arm-anykav200-linux-uclibcgnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=/adisk/anyka/opt/arm-anykav200-crosstool/usr/bin/arm-anykav200-linux-uclibcgnueabi-gcc.br_real
COLLECT_LTO_WRAPPER=/adisk/anyka/opt/arm-anykav200-crosstool/usr/bin/…/libexec/gcc/arm-anykav200-linux-uclibcgnueabi/4.8.5/lto-wrapper
Target: arm-anykav200-linux-uclibcgnueabi
Configured with: ./configure --prefix=/opt/arm-anykav200-crosstool/usr --sysconfdir=/opt/arm-anykav200-crosstool/etc --enable-static --target=arm-anykav200-linux-uclibcgnueabi --with-sysroot=/opt/arm-anykav200-crosstool/usr/arm-anykav200-linux-uclibcgnueabi/sysroot --disable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --with-gmp=/opt/arm-anykav200-crosstool/usr --with-mpfr=/opt/arm-anykav200-crosstool/usr --with-pkgversion=‘anyka (gcc-4.8.5 + binutils-2.24 + ulcibc-0.9.33.2)(20170223)’ --with-bugurl=http://bugs.anyka.net/ --disable-libsanitizer --enable-tls --disable-libmudflap --enable-threads --with-mpc=/opt/arm-anykav200-crosstool/usr --without-isl --without-cloog --with-float=soft --disable-decimal-float --with-abi=aapcs-linux --with-cpu=arm926ej-s --with-float=soft --with-mode=arm --enable-languages=c,c++ --with-build-time-tools=/opt/arm-anykav200-crosstool/usr/arm-anykav200-linux-uclibcgnueabi/bin --enable-shared --disable-libgomp
Thread model: posix
gcc version 4.8.5 (anyka (gcc-4.8.5 + binutils-2.24 + ulcibc-0.9.33.2)(20170223))

I had comment #define ARM_MATH_DSP ,
After commenting this line of code, you can continue to execute, but a new error message is encountered

then I disable comment Related code 【#ifdef ARM_MATH_DSP … #endif 】 in “edge-impulse-sdk/CMSIS/DSP/Source/BasicMathFunctions/arm_xxx_xx.c”

it works,Thanks!

2 Likes