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.

The config.h is not found when build the TIDL enviroment

Hi team,

Here's an issue from the customer may need your help:

When run the command "make TARGET_BUILD=debug TARGET_PLATFORM=PC", encountering the problem first.

OS:Ubuntu20.04

Opencv:3.1.0

flatterbuffer:1.12.0

protobuf:3.11.0

gcc/g++:5.4.0

======== MAKING CUSTOM LIB =================
make -C ./ti_dl/custom -f makefile
make[1]: Entering directory '/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/custom'
compiling tidl_custom_maxpooling.c
In file included from tidl_custom_maxpooling.c:82:0:
tidsp/tidl_custom_maxpool_ixX_oxX.h:25:17: fatal error: c7x.h: No such file or directory
compilation terminated.
make[1]: *** [/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/makerules/rules.mk:465: /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/out/PC/dsp/algo/debug/ti_dl/custom/tidl_custom_maxpooling.obj] Error 1
make[1]: Leaving directory '/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/custom'
make: *** [makefile:333: custom] Error 2

The problem was solved it by export a lot of paths. But get another error shows below.

======== MAKING CUSTOM LIB =================
make -C ./ti_dl/custom -f makefile
make[1]: Entering directory '/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/custom'
compiling tidl_custom_maxpooling.c
In file included from /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../bios_6_83_02_07/packages/gnu/targets/arm/libs/install-native/aarch64-none-elf/include/sys/unistd.h:8:0,
from /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../bios_6_83_02_07/packages/gnu/targets/arm/libs/install-native/aarch64-none-elf/include/unistd.h:4,
from /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../bios_6_83_02_07/packages/gnu/targets/arm/libs/install-native/aarch64-none-elf/include/pthread.h:25,
from /usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/5/bits/gthr.h:148,
from /usr/include/c++/5/ext/atomicity.h:35,
from /usr/include/c++/5/bits/basic_string.h:39,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/bitset:47,
from /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../ti-cgt-c7000_1.4.2.LTS/host_emulation/include/C7100/ti_he_impl/vector.h:40,
from /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../ti-cgt-c7000_1.4.2.LTS/host_emulation/include/C7100/c7x.h:74,
from tidsp/tidl_custom_maxpool_ixX_oxX.h:25,
from tidl_custom_maxpooling.c:82:
/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/../bios_6_83_02_07/packages/gnu/targets/arm/libs/install-native/aarch64-none-elf/include/_ansi.h:11:24: fatal error: sys/config.h: No such file or directory
compilation terminated.
make[1]: *** [/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/makerules/rules.mk:465: /root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/out/PC/dsp/algo/debug/ti_dl/custom/tidl_custom_maxpooling.obj] Error 1
make[1]: Leaving directory '/root/workspace/ti-processor-sdk-rtos-j721e-evm-08_00_00_12/tidl_j7_08_00_00_10/ti_dl/custom'
make: *** [makefile:333: custom] Error 2

Could you help check this case? Thanks.

Best Regards,

Cherry

  • Hi Cherry,

    The problem was solved it by export a lot of paths. But get another error shows below.

      If you are using PSDK RTOS as it is then most of the dependency should already be taken care so I am not sure why you got error because of c7x compiler header.

      Regarding rest of the errors, are you trying to build TIDL in host emulation mode? If yes then we haven't tried host emulation build on Ubuntu 18.04 and I am suspecting may be Ubuntu 20.04 is causing the issue.


    Regards,

    Anshu

  • Hi Anshu,

    Yes, they tried to build TIDL in host emulation on Ubuntu 20.04.

    Thanks for your suggests and they will try again on Ubuntu 16.04 unless you have another recommendation.

    Thanks and Best Regards,

    Cherry

  • Hi Cherry,

         We have validated it on Ubuntu 18.04 and that's our recommended version to use.

    Regards,

    Anshu