0

I'm trying to cross comple a bunch of C files from SMP Debian 3.2.46-1 i686 GNU/Linux to ARM Coretex-A9 platform. Linaro linaro-alip 3.0.35-02828-g5cedf96 is running on the ARM board.

Problems

  1. <arm_neon.h> is missing.
  2. NEON data types like float32x4_t, uint32x4_t, float32x4x2_t throws error Type float32x4x2_t could not be resolved.

My attempts

  1. I manually downloaded <arm_neon.h> and placed in the same directory as my C files. Also made sure that the compiler options -mfloat-abi=softfp -mfpu=neon are present in the cross compiler toolchain. Now the header file issue is solved.

  2. Still the second issue persist.

Some of the referred fixes: [1], [2].

Could anyone pass some light on this. Thanks in advance.

5
  • 1
    If the cross-compiler doesn't provide arm_neon.h itself, I'd take that as a hint it doesn't support NEON intrinsics. What are the details of the cross-compiler you're trying to use (version, configuration, etc.)? Jul 20, 2015 at 9:45
  • Cross compiler: gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux, prefix arm-linux-gnueabihf-. Jul 20, 2015 at 11:42
  • 1
    If you're using NEON you should be using -mfloat-abi=hard not softfp surely?. I checked gcc-linaro-arm-linux-gnueabihf-4.8-2013.10 on windows and it does have arm_neon.h Jul 20, 2015 at 15:54
  • 1
    Odd. The closest Linaro toolchain I have to hand is the 13.08 release, and that has arm_neon.h as expected. Also those typedefs are right there in the very same file. It would help to see a minimal example of your code and compiler settings that can reproduce this. Jul 20, 2015 at 20:45
  • [SOLVED]: @BrianSidebotham You were right (+1) . I was mislead by the preamble in arm_neon.h file, that says You must enable NEON instructions... @Notikethat: Thanks for your time and inputs that steer to the right direction(+1). Related Q&A can be found here Jul 21, 2015 at 11:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.