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.

Linux/TDA2: -mfpu=neon where to add

Part Number: TDA2

Tool/software: Linux

/home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/lib/gcc/arm-linux-gnueabihf/5.3.1/include/arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
 #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h

 -mfpu=neon  where  to add?

  • Hi Shuai ,

    Are you getting this error while building vision sdk or linux . ?

    What build stage you have this error . ? 

    Regards

    Chetan.M

  • Hi Chetan.M
    make -s -j i add some code use neon so error !
    so -mfpu=neon where to add?
  • if its in bios cores i.e ipu , dsp , eve then add it in corresponding make rules
    vision_sdk\build\rtos\makerules

    for hlos cores
    vision_sdk\build\hlos\makerules\linux

    Regards
    Chetan.M
  • Hi Chetan.M
    for hlos cores PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/build/hlos/makerules/linux$ common_header_a15.mk ??
    How can it ,please specific?
    BESTWISHES
    SHUAI
  • Hi Shuai ,

    CC_OPTS=-c -Wall -Warray-bounds -fPIC -mfpu=neon

    Regards
    Chetan.M
  • i find in SDK_VISION_03_02_00_00\vision_sdk\apps\src\hlos\MAKEFILE_adam_car.MK have -mfpu=neon and i add -mfloat-abi=softfp here ,but still error
    /home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/lib/gcc/arm-linux-gnueabihf/5.3.1/include/arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
    #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h

    how to solve this ?
    BESTWISHES
    SHUAI
  • Hi Chetan.M
    this (-mfloat-abi=softfp ) is not need??
    thanks
    shuai
  • Hi Chetan.M

    i add like this CC_OPTS=-c -Wall -Warray-bounds -fPIC -mfpu=neon
    stille error, neon is not support?


    /home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/lib/gcc/arm-linux-gnueabihf/5.3.1/include/arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
    #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
    BESTWISHES
    SHUAI
  • Shuai ,

    CC_OPTS is the compiler c flags location .
    if you add the flags required here it is used while compilation .

    if you build without -s option you can see the expansion of all compiler option and macro .

    Regards
    Chetan.M
  • HI Chetan.M
    help me please
    /home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/lib/gcc/arm-linux-gnueabihf/5.3.1/include/arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
    #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
    i add CC_OPTS=-c -Wall -Warray-bounds -fPIC -mfloat-abi=softfp -mfpu=neon but no done!
    how can i solve it?
    BESTWISHES
    SHUAI
  • Hi Shuai ,

    i am not sure if its looking for flags in linking stage ,
    you can add the flags at
    LD_OPTS=-lpthread
    and try ,

    Else please look at arm compiler documentation

    Regards
    Chetan.M
  • "CC_OPTS="-c -Wall -Warray-bounds -fPIC -mfloat-abi=hard -mfpu=neon -w
    "CC_OPTS="-c -Wall -Warray-bounds -fPIC -mfloat-abi=hard -mfpu=neon -w
    In file included from conv11.h:2:0,
    from Arcsoft_AHD_Config.h:68,
    from Arcsoft_AHD_Utils.h:13,
    from Arcsoft_AHD_Net.h:4,
    from Arcsoft_AHD_Net.c:1:
    /home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/lib/gcc/arm-linux-gnueabihf/5.3.1/include/arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
    #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h