This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NEON intrinsics CCS semantic errors.

Dear E2E community,

I am working on linux user application for Sitara AM335x processors and I am using external compiler arm-linux-gnueabihf-gcc (Linaro GCC 4.9-2015.05) 4.9.3 20150413 which was provided with mainline linux sdk from TI.

I would like to involve NEON intrinsics. 

Here are copilation flags -O3 -time -g3 -Wall -c -mcpu=cortex-a8 -mfloat-abi=hard -mfpu=neon.

My code compiles but I still get semantic errors e.g. "Type int16x4_t could not be resolved".

Any ideas?

Best regards,

Ilja.

  • Hi,

    I will ask the software team to look at this.
  • Hi Ilja,

    Can you verify that /ti-processor-sdk-linux-am335x-evm-02.00.01.07/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/gcc/arm-linux-gnueabihf/4.9.3/include/ is included in your cc paths (this should be CCS(eclipse) setting)?

    AFAIK, those kind of errors occur, when a pat to .h file is missing. In your case you need arm_neon.h, which is located in the above poitned path.

    Best Regards,
    Yordan
  • Hi Yordan,

    Thank you very much for fast reply.

    If I look in my CCS project explorer, and expand project folder I can see "Include" folder. If I expand it, I can see 4 paths included:
    /ti-processor-sdk-linux-am335x-evm-02.00.00.00/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/gcc/arm-linux-gnueabihf/4.9.3/include/
    /ti-processor-sdk-linux-am335x-evm-02.00.00.00/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/gcc/arm-linux-gnueabihf/4.9.3/include-fixed
    /ti-processor-sdk-linux-am335x-evm-02.00.00.00/linux-devkit/sysroots/cortexa8hf-vfp-neon-linux-gnueabi/include
    /ti-processor-sdk-linux-am335x-evm-02.00.00.00/linux-devkit/sysroots/cortexa8hf-vfp-neon-linux-gnueabi/usr/include

    If I expand the include path you specified I can see arm_neon.h and I can see the types that are not resolved there.
    Project builds fine, but still those semantic error persist.

    Maybe there is a project property in CCS that must also include this path? or special library?

    Best regards,
    Ilja.
  • Hi Ilja, 

    Ilja Fursov said:
    Maybe there is a project property in CCS that must also include this path? or special library?

    AFAIK, there shouldn't be any special setting/library. Maybe it is a good idea to post in the CCS forum, as well (I am not an expert on building sources with CCS). 

    I have one more suggestion. Have you added the correct path to point the linaro toolchain: ~/ti-processor-sdk-linux-am57xx-evm-02.00.00.00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/

    Best Regards, 
    Yordan

  • Yes, I have exactly the same path to the toolchain.

    I will write on CCS forum. Thank you very much for your time.

    BR,
    Ilja.