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.

K2l linux build with Yocto

Hi,

I'm trying to build linux image using the steps given here for Yocto build. However I get following error:

| make[3]: Leaving directory `/home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/gas'
| make[2]: Leaving directory `/home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/binut
ils'
| make[2]: Leaving directory `/home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/gas'
| /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo:7524: unknown command `colophon'
| /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo:7535: unknown command `cygnus'
| /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo:5833: warning: node next `i960' in menu `ARM' and i
n sectioning `M68HC11/68HC12' differ
| /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo:5902: warning: node next `M68HC11/68HC12' in menu `
PowerPC ELF32' and in sectioning `ARM' differ
| /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo:5902: warning: node prev `M68HC11/68HC12' in menu `
MSP430' and in sectioning `i960' differ
| /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo:5948: warning: node prev `ARM' in menu `i960' and i
n sectioning `M68HC11/68HC12' differ
| /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo:6248: warning: node next `MSP430' in menu `M68HC11/
68HC12' and in sectioning `PowerPC ELF32' differ
| /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo:6289: warning: node prev `PowerPC ELF32' in menu `M68HC11/68HC12' and in sectioning `MSP430' differ
| make[4]: *** [ld.info] Error 1
| make[4]: Leaving directory `/home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/ld'
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/ld'
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/ld'
| make[1]: *** [all-ld] Error 2
| make[1]: Leaving directory `/home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/temp/log.do_compile.25527 for further information)
ERROR: Task 714 (virtual:native:/home/ti/oe-layersetup/sources/meta-arago/meta-arago-extras/recipes-devtools/binutils/binutils_2.20.1.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 311 tasks of which 303 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
virtual:native:/home/ti/oe-layersetup/sources/meta-arago/meta-arago-extras/recipes-devtools/binutils/binutils_2.20.1.bb, do_compile

I see that the error is coming from binutils package and there are instances of this mentioned on TI forum (like this one) There are suggestions to download mcsdk-3_01_03_06.arago.src.tar.gz  but the link is broken (latest mcsdk available for download is 3.1.4.7 which too gives the same error). Can anyone please point how to resolve this build failure?

I'm using 64-bit Ubuntu 14.04 system for build

-Makarand

  • Hello Makarand,

    This command would resolve this issue.

    sed -i -e 's/@colophon/@@colophon/' \
    -e 's/doc@cygnus.com/doc@@cygnus.com/' \
    /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/bfd/doc/bfd.texinfo \
    /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo \
    /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-linux-gnueabi/binutils-native/2.20.1-r9/binutils-2.20.1/bfd/doc/bfd.texinfo \
    /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-linux-gnueabi/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo

    Best regards,
    Kemal

  • Hi Kemal,

    Thanks! it resolved the issue, I don't think the last 2 files need to be patched, should they? I couldn't find these 

    /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/binutils-native/2.20.1-r9/binutils-2.20.1/bfd/doc/bfd.texinfo \
    /home/ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/binutils-native/2.20.1-r9/binutils-2.20.1/ld/ld.texinfo

    Shouldn't these be there when the toolchain is running on arm?

    Many  thanks,

    Makarand

  • Yes, if you later meet the same errors from the arm side, you'll need to patch them too.

  • 2870.k2l-build-0313-2030.txtHi Kemal,

    Is there any version that will build just out of the box after checkout? I got past the one above (would generate a patch for the same) and several others (SRC_URI pointing to wrong locations, jdk build issues etc..) but  still I'm stuck with failures of these 3 packages:

    Summary: 3 tasks failed:

     /home/ti/oe-layersetup/sources/meta-arago/meta-arago-extras/recipes-devtools/dt/dt_17.07.bb, do_configure

     /home/ti/oe-layersetup/sources/meta-openembedded/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb, do_compile

     /home/ti/oe-layersetup/sources/meta-mcsdk/meta-arago-extras/recipes-bsp/ti-securestore/ti-securestore_git.bb, do_configure

    I'm including the logs here, but curious to know if there is anything that just builds while I try to find how to fix these failures.

    Any help appreciated

    Thanks,

    Makarand

  • Hi Makarand,

    The latest Processor SDK config (processor-sdk-02.00.01.07-config.txt) should build with no errors through these steps.
    Which SDK config are you using?

    Best regards,
    Kemal

  • Hi Kemal,
    I'm trying mcsdk config 3.1.4.7 (This seems to be the latest one as per software-dl.ti.com/.../index_FDS.html)

    Thanks,
    Makarand

  • Hi Makarand,
    For Keystone devices also, we released processor SDK.
    Please checkout the following link.

    www.ti.com/lsds/ti/tools-software/processor_sw.page?keyMatch=processor%20sdk&tisearch=Search-EN-Everything