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.

MMWCAS-DSP-EVM: Yocto Buld Failed : ERROR iso-codes for dra7xx-evm

Part Number: MMWCAS-DSP-EVM

I am seeing a build error when building the dra7xx-evm

many warnings, but an error specifically on iso-codes-4.1-r0:

[PSDKLA]>
[PSDKLA]> Current Directory is /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers
[PSDKLA]> PATH is /home/wcram/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin:/home/wcram/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
[PSDKLA]> Building on radar-ubuntu-01 running Linux radar-ubuntu-01 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[PSDKLA]> Starting Yocto build at Tue 30 Nov 2021 01:33:37 PM CST
[PSDKLA]>
[PSDKLA]> cd build
[PSDKLA]> . conf/setenv
[PSDKLA]> cp conf/local.conf conf/local.conf.pristine
[PSDKLA]> MACHINE=dra7xx-evm bitbake tisdk-rootfs-image
/home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/bitbake/lib/bb/fetch2/clearcase.py:159: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if command is 'mkview':
/home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/bitbake/lib/bb/fetch2/clearcase.py:166: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif command is 'rmview':
/home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/bitbake/lib/bb/fetch2/clearcase.py:170: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif command is 'setcs':
WARNING: Layer meta-glsdk should set LAYERSERIES_COMPAT_meta-glsdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with.
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: Layer meta-glsdk should set LAYERSERIES_COMPAT_meta-glsdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with.
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: Layer meta-glsdk should set LAYERSERIES_COMPAT_meta-glsdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with.
NOTE: Started PRServer with DBfile: /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 44331, PID: 36346
WARNING: Layer meta-glsdk should set LAYERSERIES_COMPAT_meta-glsdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer browser-layer should set LAYERSERIES_COMPAT_browser-layer in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/meta-arago/meta-arago-distro/recipes-core/meta/external-linaro-secondary-sdk-toolchain.bb: Variable key PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} (external-arm-sdk-toolchain) replaces original key PREFERRED_PROVIDER_binutils-cross-canadian- (external-arm-secondary-sdk-toolchain).
WARNING: /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/meta-arago/meta-arago-distro/recipes-core/meta/external-linaro-secondary-sdk-toolchain.bb: Variable key PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} (external-arm-sdk-toolchain) replaces original key PREFERRED_PROVIDER_gcc-cross-canadian- (external-arm-secondary-sdk-toolchain).
WARNING: /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/meta-arago/meta-arago-distro/recipes-core/meta/external-arm-secondary-sdk-toolchain.bb: Variable key PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} (external-arm-sdk-toolchain) replaces original key PREFERRED_PROVIDER_binutils-cross-canadian- (external-arm-secondary-sdk-toolchain).
WARNING: /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/meta-arago/meta-arago-distro/recipes-core/meta/external-arm-secondary-sdk-toolchain.bb: Variable key PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} (external-arm-sdk-toolchain) replaces original key PREFERRED_PROVIDER_gcc-cross-canadian- (external-arm-secondary-sdk-toolchain).
Parsing recipes: 100% |###############################################################################################################################################################################| Time: 0:00:16
Parsing of 3008 .bb files complete (0 cached, 3008 parsed). 4093 targets, 519 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "arm-linux-gnueabi"
MACHINE              = "dra7xx-evm"
DISTRO               = "arago"
DISTRO_VERSION       = "2019.09"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-glsdk           = "HEAD:d45b286767c9ec019f1d145a357503789aa5bb1f"
meta-arago-distro    
meta-arago-extras    = "HEAD:58a4ee58736465d242fed59becacb7649fd9d265"
meta-browser         = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
meta-qt5             = "HEAD:1520d5b2b2beec5e1c3209d3178219e93ef08bca"
meta-virtualization  = "HEAD:7685c7d415e0002c448007960837ae8898cd57a5"
meta-networking      
meta-python          
meta-oe              
meta-gnome           
meta-filesystems     = "HEAD:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta-ti              = "HEAD:727411f95ef1f66034beac08702f21b30a1b84c9"
meta-linaro-toolchain
meta-optee           = "HEAD:615ea7561b844a3867cee4299d83d605c10b02ab"
meta                 = "HEAD:cd7cf933b3235560ec71576d8f3836dff736a39f"

Initialising tasks: 100% |############################################################################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 3461 Found 0 Missed 3461 Current 0 (0% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: expat-native-2.2.6-r0 do_fetch: Failed to fetch URL downloads.sourceforge.net/.../expat-2.2.6.tar.bz2, attempting MIRRORS if available
WARNING: popt-native-1.16-r3 do_fetch: Failed to fetch URL fossies.org/.../popt-1.16.tar.gz, attempting MIRRORS if available
WARNING: icu-native-62.1-r0 do_fetch: Checksum mismatch for local file /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/downloads/icu4c-62_1-src.tgz
Cleaning and trying again.
WARNING: icu-native-62.1-r0 do_fetch: Renaming /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/downloads/icu4c-62_1-src.tgz to /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/downloads/icu4c-62_1-src.tgz_bad-checksum_df38c5c7883bb12918ce2e3bacbbcc71
WARNING: icu-native-62.1-r0 do_fetch: Checksum failure encountered with download of download.icu-project.org/.../icu4c-62_1-src.tgz - will attempt other sources if available
WARNING: doxygen-native-1.8.9.1-r0 do_fetch: Failed to fetch URL ftp.stack.nl/.../doxygen-1.8.9.1.src.tar.gz, attempting MIRRORS if available
WARNING: libpcre-native-8.42-r0 do_fetch: Failed to fetch URL ftp.pcre.org/.../pcre-8.42.tar.bz2, attempting MIRRORS if available
WARNING: systemd-1_239-r0.arago6 do_fetch: Failed to fetch URL git://github.com/systemd/systemd.git;protocol=git, attempting MIRRORS if available
WARNING: valgrind-3.14.0-r0 do_fetch: Failed to fetch URL www.valgrind.org/.../valgrind-3.14.0.tar.bz2, attempting MIRRORS if available
WARNING: libloki-0.1.7-r0 do_fetch: Failed to fetch URL libloki.sourcearchive.com/.../libloki_0.1.7.orig.tar.gz, attempting MIRRORS if available
WARNING: iso-codes-4.1-r0 do_fetch: Failed to fetch URL git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=http, attempting MIRRORS if available
WARNING: ti-ipc-3.50.04.07-r0.2.psdkla do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
lists.openembedded.org/.../148675.html
bugzilla.yoctoproject.org/show_bug.cgi
Details:
Applying patch 0001-Add-kernel-build-dir.patch
patching file configure.ac
Hunk #1 succeeded at 71 with fuzz 1.
Hunk #2 succeeded at 114 (offset 2 lines).
Hunk #3 succeeded at 132 (offset 3 lines).
Hunk #4 succeeded at 163 (offset 3 lines).
patching file ipc-linux.mak
patching file linux/src/mm/Makefile.am
patching file packages/ti/ipc/mm/MmRpc.c

Now at patch 0001-Add-kernel-build-dir.patch
WARNING: openmp-rtos-2_06_03_00-r0 do_fetch: Failed to fetch URL git://git.ti.com/openmp/ti-openmp-dsp-runtime.git;protocol=git;branch=master, attempting MIRRORS if available
WARNING: ti-llvm3.6-native-3.6-r7 do_fetch: Failed to fetch URL git://git.ti.com/opencl/llvm.git;protocol=git;branch=release_36_ti;destsuffix=git;name=llvm, attempting MIRRORS if available
WARNING: opencl-tidl-fw-01.01.19.02-r0 do_fetch: Failed to fetch URL git://git.ti.com/opencl/opencl-firmware.git;protocol=git;branch=master, attempting MIRRORS if available
ERROR: iso-codes-4.1-r0 do_fetch: Fetcher failure: Unable to find revision 164802d5fd8c7a8167816fd86a62b286680619f0 in branch master even from upstream
ERROR: iso-codes-4.1-r0 do_fetch: Fetcher failure for URL: 'git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=http'. Unable to fetch URL from any source.
ERROR: iso-codes-4.1-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/build/arago-tmp-external-arm-toolchain/work/all-linux/iso-codes/4.1-r0/temp/log.do_fetch.372374
ERROR: Task (/home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/recipes-support/iso-codes/iso-codes_4.1.bb:do_fetch) failed with exit code '1'
WARNING: edma3-lld-rtos-2.12.05.30E-r1.1 do_fetch: Failed to fetch URL git://git.ti.com/keystone-rtos/edma3_lld.git;protocol=git;branch=master, attempting MIRRORS if available
WARNING: gdbserver-c6x-1.1.0-r6.0 do_fetch: Failed to fetch URL git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=master, attempting MIRRORS if available
WARNING: libaet-4.19.0.0-r0 do_fetch: Failed to fetch URL git://git.ti.com/sdo-emu/ctoolslib.git;protocol=git;branch=opencl_aetlib_build, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 1091 tasks of which 0 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/wcram/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/recipes-support/iso-codes/iso-codes_4.1.bb:do_fetch
Summary: There were 30 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
[PSDKLA]>
[PSDKLA]> Completed Yocto build at Tue 30 Nov 2021 01:43:35 PM CST
[PSDKLA]>

  • Yes, I tried that, and while it fixed fetching for iso-codes, there were other packages that it could not find and I was getting compiler errors:

    I am not sure how far this rabbit hole goes, i.e. if I fix the above issue will another one pop up, and I am wondering if I can get some one-on-one help, as it seems there is some disconnect with the install manual, my understanding, and what I am seeing. 

    Also, all this "success" I am seeing is due to me using Ubuntu 20.04, If I use Ubuntu 14.04, I get stuck on the ./setup that is run and the repo tool complains about repo using python 2 versus python 3 (greater than 3.5).  However going down that rabbit hole, once I have installed pytho3 (specifically 3.6) I get another error altogether.

    Command Step Run:

    Error Output:

    I am mentioning this because the help I have received on another thread said to follow the 14.04 route, but that is broken too, and I cannot seem to find the documentation that gets that working, and the 20.04 route seem to get me further along, where I am dying in the bitbake / yocto build instead of the sdk setup.

  • Ok, I had to completely delete the ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03 directory and re-install, then right before I ran ./build-core-sdk.sh dra7xx-evm, I modified the iso-codes_4.1.bb with the solution mentioned above, this time it got further, but still ended in error.

    Here is the error result:

    build_core_sdk_error.txt

  • Hi William,

    Yes, it is a bit of a challenge especially for older SDK.

    Please use the recommended version of the host tools - recommended Ubuntu version, python etc.

    This one seems specific to your host machine. I'm unable to help further on this error.

    Regards

    Karthik

  • Yes, I have a separate thread on this issue, the issue I am seeing when trying to install on 14.04, the called out version of the SDK install documents:

    https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1056346/mmwcas-dsp-evm-repo-sync-giving-connection-refused

    When attempting to use 14.04, I am getting a repo problem because it is defaulted to python 2.7, and I was made aware that this has been marked for EOL, but I have not received a response on how to go forward.  I cannot move forward on 14.04 until I can get the repo issue resolved, but the repo is the one that is pulled down from the TI install, and I am trying to follow the documentation and not deviate from the literature.

    I did this thread because I was able to get further in the SDK install by deviating from using version 14.04, but now I am getting bitbake errors that I dont completely understand, and the only documentation for this was written for Ubuntu 14.04 and I have not found any other documentation for more modern Ubuntu versions.

    Would you be able to make comment on my other thread?  The one that followed the document that calls out the 14.04?

    Thank you