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/PROCESSOR-SDK-AM335X: Bitbake fails with missing recipe

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

I have been trying to build the latest version of the processor SDK for some days now. I am building 04.01.00.06 for AM335x-evm.

I am stuck in the linux-ti-staging-4.9.41 failing at different stages.

My quess is that the first warning I get is the cause of the problem (as it is included in the bb for Linux-ti-staging).

WARNING: No recipes available for:
  /home/tm/tisdk/sources/meta-openamp/recipes-bsp/device-tree/device-tree-generation_%.bbappend

Is the first problem I get, I cannot figure out how to resolve it.

The final result is 

ERROR: Task (/home/tm/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.9.bb:do_compile) failed with exit code '1'

  • Hello Thomas,

    I get the same warning like you but the linux-ti-staging-4.9.41 builds fine. Can you attach the complete log?

    Best regards,
    Kemal
  • This is what I currently get:

    tm@ubuntu:~/tisdk/build$ bitbake arago-core-tisdk-image
    Loading cache: 100% |###########################################################################################| Time: 0:00:01
    Loaded 3257 entries from dependency cache.
    WARNING: No recipes available for:
    /home/tm/tisdk/sources/meta-openamp/recipes-bsp/device-tree/device-tree-generation_%.bbappend
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION = "1.32.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-16.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am335x-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2017.06"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:2b7f7b00654eb3faaea7c66271ebe508b9ffc019"
    meta-arago-distro
    meta-arago-extras = "HEAD:8f49ed67d0627a04ac72fd388fda7756273ba2d7"
    meta-browser = "HEAD:08576b03af624b65ad949c410d84c11c7d1f2e39"
    meta-openamp = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"
    meta-qt5 = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
    meta-networking
    meta-ruby
    meta-python
    meta-oe
    meta-gnome = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
    meta-ti = "HEAD:a18d57af8384ced25996739bb66d197c69efb77b"
    meta-linaro-toolchain
    meta-optee = "HEAD:49b0f32d7e955f250b0022d1b2f403f45a2c2d9c"
    meta = "HEAD:e3911133ee9aad7cc3ae89faea80a097f6614fab"

    Initialising tasks: 100% |######################################################################################| Time: 0:00:17
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    ERROR: linux-ti-staging-4.9.41+gitAUTOINC+e3a80a1c5c-r22c.arago5.tisdk9 do_compile: oe_runmake failed
    ERROR: linux-ti-staging-4.9.41+gitAUTOINC+e3a80a1c5c-r22c.arago5.tisdk9 do_compile: Function failed: do_compile (log file is located at /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.41+gitAUTOINC+e3a80a1c5c-r22c.arago5.tisdk9/temp/log.do_compile.34819)
    ERROR: Logfile of failure stored in: /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.41+gitAUTOINC+e3a80a1c5c-r22c.arago5.tisdk9/temp/log.do_compile.34819
    Log data follows:
    | DEBUG: Executing shell function do_compile
    | NOTE: make -j 8 HOSTCC=gcc HOSTCPP=gcc -E zImage CC=arm-linux-gnueabihf-gcc -mno-thumb-interwork -marm -fuse-ld=bfd LD=arm-linux-gnueabihf-ld.bfd LOADADDR=0x80008000
    | NOTE: make -j 8 HOSTCC=gcc HOSTCPP=gcc -E am335x-evm.dtb
    | NOTE: make -j 8 HOSTCC=gcc HOSTCPP=gcc -E am335x-evmsk.dtb
    | NOTE: make -j 8 HOSTCC=gcc HOSTCPP=gcc -E am335x-bone.dtb
    | NOTE: make -j 8 HOSTCC=gcc HOSTCPP=gcc -E am335x-boneblack.dtb
    | NOTE: make -j 8 HOSTCC=gcc HOSTCPP=gcc -E am335x-bonegreen.dtb
    | NOTE: make -j 8 HOSTCC=gcc HOSTCPP=gcc -E am335x-icev2.dtb
    | NOTE: make -j 8 HOSTCC=gcc HOSTCPP=gcc -E am335x-icev2-pru-excl-uio.dtb
    | ERROR: oe_runmake failed
    | CHK include/config/kernel.release
    | GEN ./Makefile
    | CHK include/generated/uapi/linux/version.h
    | CHK include/generated/utsrelease.h
    | Using /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work-shared/am335x-evm/kernel-source as source for kernel
    | CC scripts/mod/empty.o
    | CC scripts/mod/devicetable-offsets.s
    | MKELF scripts/mod/elfconfig.h
    | HOSTCC scripts/mod/modpost.o
    | HOSTCC scripts/mod/sumversion.o
    | GEN scripts/mod/devicetable-offsets.h
    | HOSTCC scripts/mod/file2alias.o
    | CHK include/generated/timeconst.h
    | CHK include/generated/bounds.h
    | CHK include/generated/asm-offsets.h
    | CALL /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work-shared/am335x-evm/kernel-source/scripts/checksyscalls.sh
    | HOSTLD scripts/mod/modpost
    | CHK include/generated/compile.h
    | CHK kernel/config_data.h
    | DTC drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb
    | DTB drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.S
    | AS drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.o
    | LD drivers/gpu/drm/tilcdc/built-in.o
    | rm drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.S
    | LD drivers/gpu/drm/built-in.o
    | LD drivers/gpu/built-in.o
    | LD drivers/built-in.o
    | LD vmlinux.o
    | MODPOST vmlinux.o
    | GEN .version
    | CHK include/generated/compile.h
    | UPD include/generated/compile.h
    | CC init/version.o
    | LD init/built-in.o
    | KSYM .tmp_kallsyms1.o
    | KSYM .tmp_kallsyms2.o
    | LD vmlinux
    | SORTEX vmlinux
    | SYSMAP System.map
    | OBJCOPY arch/arm/boot/Image
    | Kernel: arch/arm/boot/Image is ready
    | LZMA arch/arm/boot/compressed/piggy_data
    | AS arch/arm/boot/compressed/piggy.o
    | LD arch/arm/boot/compressed/vmlinux
    | OBJCOPY arch/arm/boot/zImage
    | Kernel: arch/arm/boot/zImage is ready
    | CC scripts/mod/devicetable-offsets.s
    | CC scripts/mod/empty.o
    | MKELF scripts/mod/elfconfig.h
    | HOSTCC scripts/mod/modpost.o
    | HOSTCC scripts/mod/sumversion.o
    | GEN scripts/mod/devicetable-offsets.h
    | HOSTCC scripts/mod/file2alias.o
    | HOSTLD scripts/mod/modpost
    | make[3]: *** No rule to make target 'arch/arm/boot/dts/am335x-icev2-pru-excl-uio.dtb'. Stop.
    | arch/arm/Makefile:336: recipe for target 'am335x-icev2-pru-excl-uio.dtb' failed
    | make[2]: *** [am335x-icev2-pru-excl-uio.dtb] Error 2
    | Makefile:150: recipe for target 'sub-make' failed
    | make[1]: *** [sub-make] Error 2
    | Makefile:24: recipe for target '__sub-make' failed
    | make: *** [__sub-make] Error 2
    | WARNING: /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.41+gitAUTOINC+e3a80a1c5c-r22c.arago5.tisdk9/temp/run.do_compile.34819:1 exit 1 from 'exit 1'
    | ERROR: Function failed: do_compile (log file is located at /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.41+gitAUTOINC+e3a80a1c5c-r22c.arago5.tisdk9/temp/log.do_compile.34819)
    ERROR: Task (/home/tm/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.9.bb:do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 1619 tasks of which 1342 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
    /home/tm/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.9.bb:do_compile
    Summary: There was 1 WARNING message shown.
    Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
  • I have tried the suggested modification.

    I get the following error followed by hundreds of lines (so this is just the beginning)
    (Note: on first try I ran out of disk space; there is a small chance that this has left some unwanted states on some files)

    tm@ubuntu:~/tisdk/build$ bitbake arago-core-tisdk-image
    Loading cache: 100% |###################################################################################################| Time: 0:00:03
    Loaded 3257 entries from dependency cache.
    WARNING: No recipes available for:
      /home/tm/tisdk/sources/meta-openamp/recipes-bsp/device-tree/device-tree-generation_%.bbappend
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION        = "1.32.0"
    BUILD_SYS         = "x86_64-linux"
    NATIVELSBSTRING   = "Ubuntu-16.04"
    TARGET_SYS        = "arm-linux-gnueabi"
    MACHINE           = "am335x-evm"
    DISTRO            = "arago"
    DISTRO_VERSION    = "2017.06"
    TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard"
    TARGET_FPU        = "hard"
    meta-processor-sdk = "HEAD:2b7f7b00654eb3faaea7c66271ebe508b9ffc019"
    meta-arago-distro
    meta-arago-extras = "HEAD:8f49ed67d0627a04ac72fd388fda7756273ba2d7"
    meta-browser      = "HEAD:08576b03af624b65ad949c410d84c11c7d1f2e39"
    meta-openamp      = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"
    meta-qt5          = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
    meta-networking  
    meta-ruby        
    meta-python      
    meta-oe          
    meta-gnome        = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
    meta-ti           = "HEAD:a18d57af8384ced25996739bb66d197c69efb77b"
    meta-linaro-toolchain
    meta-optee        = "HEAD:49b0f32d7e955f250b0022d1b2f403f45a2c2d9c"
    meta              = "HEAD:e3911133ee9aad7cc3ae89faea80a097f6614fab"

    Initialising tasks: 100% |##############################################################################################| Time: 0:00:16
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    ERROR: nativesdk-glibc-2.24-r0 do_compile: oe_runmake failed
    ERROR: nativesdk-glibc-2.24-r0 do_compile: Function failed: do_compile (log file is located at /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-glibc/2.24-r0/temp/log.do_compile.3226)
    ERROR: Logfile of failure stored in: /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-glibc/2.24-r0/temp/log.do_compile.3226
    Log data follows:
    | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
    | DEBUG: Executing shell function do_compile
    | NOTE: make PARALLELMFLAGS=-j 8 SHELL=/bin/bash
    | make -r PARALLELMFLAGS="-j 8" -C ../git objdir=`pwd` all
    | make[1]: Entering directory '/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-glibc/2.24-r0/git'
    | make -j 8 subdir=csu -C csu ..=../ subdir_lib
    | make[2]: Entering directory '/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-glibc/2.24-r0/git/csu'
    | make[2]: Leaving directory '/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-glibc/2.24-r0/git/csu'
    | make -j 8 subdir=iconv -C iconv ..=../ subdir_lib
    | make[2]: Entering directory '/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-glibc/2.24-r0/git/iconv'
    | make[2]: Leaving directory '/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-glibc/2.24-r0/git/iconv'
    | make -j 8 subdir=locale -C locale ..=../ subdir_lib
    | make[2]: Entering directory '/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-glibc/2.24-r0/git/locale'
    | /usr/bin/perl gen-translit.pl < C-translit.h.in > C-translit.h.tmp
    | mv -f C-translit.h.tmp C-translit.h

  • Next error after the previous log was traced:

    ERROR: Task (virtual:nativesdk:/home/tm/tisdk/sources/oe-core/meta/recipes-core/glibc/glibc_2.24.bb:do_compile) failed with exit code '1'
    ERROR: gstreamer1.0-plugins-bad-1.8.3-r5 do_install: oe_runmake failed
    ERROR: gstreamer1.0-plugins-bad-1.8.3-r5 do_install: Function failed: do_install (log file is located at /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/gstreamer1.0-plugins-bad/1.8.3-r5/temp/log.do_install.18583)
    ERROR: Logfile of failure stored in: /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/gstreamer1.0-plugins-bad/1.8.3-r5/temp/log.do_install.18583
    Log data follows:
    | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
    | DEBUG: Executing shell function do_install
    | NOTE: make -j 8 DESTDIR=/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/gstreamer1.0-plugins-bad/1.8.3-r5/image install
    | Making install in gst-libs
    | make[1]: Entering directory '/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/gstreamer1.0-plugins-bad/1.8.3-r5/build/gst-libs'
    | Making install in gst
    | make[2]: Entering directory '/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/gstreamer1.0-plugins-bad/1.8.3-r5/build/gst-libs/gst'
    | Making install in uridownloader
  • Finally i get the following result:

    inux-gnueabi/gstreamer1.0-plugins-bad/1.8.3-r5/temp/log.do_install.18583)
    ERROR: Task (/home/tm/tisdk/sources/oe-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.3.bb:do_install) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 2030 tasks of which 2019 didn't need to be rerun and 2 failed.

    Summary: 2 tasks failed:
    virtual:nativesdk:/home/tm/tisdk/sources/oe-core/meta/recipes-core/glibc/glibc_2.24.bb:do_compile
    /home/tm/tisdk/sources/oe-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.3.bb:do_install
    Summary: There was 1 WARNING message shown.
    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
  • It is possible to have some files in unwanted state. Clean the sstates and retry.

    bitbake nativesdk-glibc -c cleansstate
    bitbake glibc -c cleansstate
    bitbake gstreamer1.0-plugins-bad -c cleansstate
    bitbake arago-core-tisdk-image
  • First attempt following your suggestion did not work. I still get strange errors. Now I am trying to do the -c cleansstate on the ones that fail.
    (have just cleaned qtdeclarative and is waiting on next build)
  • I am now ending up with the nativesdk-ti-llvm3.6 failing.

    First i tried to bitbake the complete arago-core-tisdk-image but it failed in nativesdk-ti-llvm3.6

    So i did a cleansstate for the nativesdk-ti-llvm3.6 and tried to bitbake this one on it's own. But I do get an error:

    | make: *** [all] Error 1
    | ERROR: Function failed: do_compile (log file is located at /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-ti-llvm3.6/3.6-r6/temp/log.do_compile.129305)
    ERROR: Task (virtual:nativesdk:/home/tm/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb:do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 640 tasks of which 498 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
    virtual:nativesdk:/home/tm/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb:do_compile
    Summary: There was 1 WARNING message shown.
    Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
  • Can you post the /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-ti-llvm3.6/3.6-r6/temp/log.do_compile.129305 log?

  • There is no :do_compile log fil.
    The ti-llvm3.6_3.6.bb file is there.
  • I have tried to scroll backwards in the terminal windows, but there is so much trace that I cannot se the log filename.

    But I find the following in the trace.

    lvm3.6/3.6-r6/llvm-3.6.build/tools/clang/lib'
    | /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-ti-llvm3.6/3.6-r6/git/Makefile.rules:873: recipe for target 'all' failed
    | make[2]: *** [all] Error 1
    | make[2]: Leaving directory '/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-ti-llvm3.6/3.6-r6/llvm-3.6.build/tools/clang'
    | /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-ti-llvm3.6/3.6-r6/git/Makefile.rules:932: recipe for target 'clang/.makeall' failed
    | make[1]: *** [clang/.makeall] Error 2
    | make[1]: Leaving directory '/home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-ti-llvm3.6/3.6-r6/llvm-3.6.build/tools'
    | /home/tm/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-nativesdk-arago-linux/nativesdk-ti-llvm3.6/3.6-r6/git/Makefile.rules:873: recipe for target 'all' failed
    | make: *** [all] Error 1
  • Can you post the output of these two commands executed on your terminal?

    ls -al /bin/sh
    echo $SECONDS

  • tm@ubuntu:~/tisdk/build$ ls -l /bin/sh
    lrwxrwxrwx 1 root root 4 okt 10 15:11 /bin/sh -> bash
    tm@ubuntu:~/tisdk/build$ echo $SECONDS
    10970
  • Here's the file from the build yesterday.

    Yesterday evening I have also created a new build machine with Ubunto 16.04, installed the Processor SDK according to description using snapshot packages from the SDK release.

    Sadly this new machine is also unable to build the SDK. Here I'm currently ending in chromium-wayland not succeeding.

  • See this error: x86_64-arago-linux-g++: internal compiler error: Killed (program cc1plus). You are out of memory, try to build with less jobs.
    The main cause of that you need to remove this line is that the default system shell is not switched to bash. While executing the kernel run.do_setup_uio task which has #!/bin/sh in the beginning and your default system shell points to dash, the do_setup_uio() function will not be executed and am335x-icev2-pru-excl-uio.dts will not be included in the kernel source and later the kernel device tree compilation will fail with No rule to make target 'arch/arm/boot/dts/am335x-icev2-pru-excl-uio.dtb'. Stop. error.