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.

AM5728: ti-sgx-ddk-km recipe build failed with TI SDK 06.03

Part Number: AM5728

Hello

I'm trying to build pvrsrvkm.ko which should be an outcome of ti-sgx-ddk-km recipe.  The build fails with the following error:


tisdk-0603/tisdk/build$ bitbake ti-sgx-ddk-km
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-korund should set LAYERSERIES_COMPAT_meta-korund in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-korund should set LAYERSERIES_COMPAT_meta-korund in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |################################################################| Time: 0:00:01
Loaded 4674 entries from dependency cache.
Parsing recipes: 100% |##############################################################| Time: 0:00:17
Parsing of 3540 .bb files complete (3538 cached, 2 parsed). 4676 targets, 542 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/fominykh/__projects/korund/tisdk-0603/tisdk/sources/meta-arago/meta-arago-distro/recipes-browser/chromium/chromium-wayland_%.bbappend
/home/fominykh/__projects/korund/tisdk-0603/tisdk/sources/meta-processor-sdk/recipes-ros/navigation/move-base_1.12.14.bbappend
/home/fominykh/__projects/korund/tisdk-0603/tisdk/sources/meta-processor-sdk/recipes-ros/navigation/rotate-recovery_1.12.14.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-linux-gnueabi"
MACHINE = "am57xx-evm"
DISTRO = "arago"
DISTRO_VERSION = "2019.11"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta-processor-sdk = "HEAD:56d9d47f18eeec31a1086ca29e54b5956c46de84"
meta-aws = "HEAD:6432f1b38b9dcbbb55020167f5b1cfe55e858c6d"
meta-ros = "HEAD:72068b17e4192b51e09c8dc633805a35edac8701"
meta-arago-distro
meta-arago-extras = "HEAD:70436496d2617b281c51390faa3d421814055cd6"
meta-browser = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"
meta-qt5 = "HEAD:e6e464c9ed9266ce46452f953c1bdcb0e7b2d95f"
meta-virtualization = "HEAD:7685c7d415e0002c448007960837ae8898cd57a5"
meta-networking
meta-python
meta-oe
meta-gnome
meta-multimedia
meta-filesystems = "HEAD:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta-ti = "HEAD:b27317ab4f9be931a66344ca502c7e3f4ec780e5"
meta-linaro-toolchain
meta-optee = "HEAD:615ea7561b844a3867cee4299d83d605c10b02ab"
meta = "HEAD:e68991ceb5933f7d03b96697e8a0ba0829feb320"
meta-korund = "tisdk0603:adca90e4420f07b80a36cab8ff507c5b197cad33"
workspace = "master:8bc0da807918d9330d7aa12f3fa9195fd24dad03"

Initialising tasks: 100% |###########################################################| Time: 0:00:00
Sstate summary: Wanted 5 Found 0 Missed 5 Current 154 (0% match, 96% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: ti-sgx-ddk-km-1.17.4948957-r7s do_compile: oe_runmake failed
ERROR: ti-sgx-ddk-km-1.17.4948957-r7s do_compile: Function failed: do_compile (log file is located at /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-r7s/temp/log.do_compile.11920)
ERROR: Logfile of failure stored in: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-r7s/temp/log.do_compile.11920
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 3 KERNEL_SRC=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source KERNELDIR=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source TARGET_PRODUCT=jacinto6evm WINDOW_SYSTEM=nulldrmws KERNEL_PATH=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source KERNEL_VERSION= CC=arm-linux-gnueabihf-gcc -mno-thumb-interwork -marm -fuse-ld=bfd -fdebug-prefix-map=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-r7s=/usr/src/debug/ti-sgx-ddk-km/1.17.4948957-r7s -fdebug-prefix-map=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-r7s/recipe-sysroot= -fdebug-prefix-map=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-r7s/recipe-sysroot-native= -fdebug-prefix-map=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source=/usr/src/kernel LD=arm-linux-gnueabihf-ld.bfd AR=arm-linux-gnueabihf-ar O=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/amba: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/avf: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/bcma: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/byteorder: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/can: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/ceph: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/clk: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/crush: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/decompress: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/dma: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/dsa: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/extcon: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/firmware: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/fpga: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/fsl: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/gpio: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/hsi: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/iio: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/input: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/irqchip: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/isdn: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/lockd: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/mailbox: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/mfd: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/mlx4: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/mlx5: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/mmc: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/mtd: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/mux: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/netfilter: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/netfilter_arp: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/netfilter_bridge: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/netfilter_ipv4: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/netfilter_ipv6: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/perf: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/phy: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/pinctrl: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/platform_data: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/power: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/qed: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/raid: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/regulator: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/remoteproc: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/reset: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/rpmsg: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/rpmsg-remotedev: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/rtc: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/sched: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/soc: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/soundwire: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/spi: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/ssb: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/sunrpc: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/ulpi: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/unaligned: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/usb: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/uwb: Is a directory
| grep: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/include/linux/wimax: Is a directory
| ../config/compiler.mk:96: host gcc
| ../config/compiler.mk:185: target arm-linux-gnueabihf-gcc -mno-thumb-interwork -marm -fuse-ld=bfd -fdebug-prefix-map=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-r7s=/usr/src/debug/ti-sgx-ddk-km/1.17.4948957-r7s -fdebug-prefix-map=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-r7s/recipe-sysroot= -fdebug-prefix-map=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-r7s/recipe-sysroot-native= -fdebug-prefix-map=/home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source=/usr/src/kernel
| ******* Multiarch build: no
| ******* Primary arch: target_armhf
| ******* Secondary arch: none
| ../config/core.mk:513: $(KERNELDIR)/vmlinux does not exist. Kbuild may fail.
| /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/Makefile:590: include/config/auto.conf: No such file or directory
|
| ERROR: Kernel configuration is invalid.
| include/generated/autoconf.h or include/config/auto.conf are missing.
| Run 'make oldconfig && make prepare' on kernel src to fix it.
|
| /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work-shared/am57xx-evm/kernel-source/Makefile:641: recipe for target 'include/config/auto.conf' failed
| make[3]: *** [include/config/auto.conf] Error 1
| Makefile:146: recipe for target 'sub-make' failed
| make[2]: *** [sub-make] Error 2
| eurasiacon/build/linux2/kbuild/kbuild.mk:56: recipe for target 'kbuild' failed
| make[1]: *** [kbuild] Error 2
| ../config/core.mk:789: recipe for target 'build' failed
| make: *** [build] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-r7s/temp/run.do_compile.11920:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/fominykh/__projects/korund/tisdk-0603/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-r7s/temp/log.do_compile.11920)
ERROR: Task (/home/fominykh/__projects/korund/tisdk-0603/tisdk/sources/meta-ti/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 843 tasks of which 842 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/fominykh/__projects/korund/tisdk-0603/tisdk/sources/meta-ti/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb:do_compile
Summary: There were 5 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.


I'm using Ubuntu 16.04, all required packages are installed. The interesting thing is that this recipe builds without any issue with SDK 05.03. Both buildlogs attached.

ti-sgx-ddk-km_build_sdk603.log

ti-sgx-ddk-km_build_sdk503.log

  • Hi Andrei,

    The SDK 6.03 requires Ubuntu 18.04, would you be able to retry your build with the recommended Ubuntu version?

    You can also ensure that you have installed all the required prerequisites, refer to the SDK documentation for the same. When I previously debugged an issue with Ubuntu package installations being an issue, I had made this cheat sheet, please refer to this post and ensure that you have done all the steps: https://e2e.ti.com/support/processors/f/791/p/901334/3352199#3352199 

    Finally, it would be good to know if you made any changes to the recipes/kernel or you are attempting to build the default.

    Regards

    Karthik

  • Hello Karthik,

    Thank you for your reply!

    According to the documentation https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Overview_Building_the_SDK.html , Ubuntu 16.04 is in recommended list. Anyway, thanks for a hint, I'll try to find a way to test with 18.04.

    I've checked the cheat sheet, only one thing was missing comparing to the documentation: g++-multilib. I installed that, did -c cleanssate and rebuilt the recipe, but it didn't help.

    BTW, what shell script did you intend in "15. ./setup.sh". Did you mean <tisdk_dir>/oe-layertool-setup.sh or smth different?

    Best regards,

    Andrei

  • Hi Andrei,

    There is a toplevel script in the base of the install folder called setup.sh - the Step 15 is referring to that.

    It would be great if you can test with 18.04 and provide feedback with all the host tools installed. g++-multilib is a needed package.

    I will wait your update with 18.04 unless you have any other questions.

    Regards

    Karthik