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/TCIEVMK2X: error in building processor sdk

Part Number: TCIEVMK2X


Tool/software: Linux

Hi ,

I am trying to build processor sdk for TCIEVMK2X board using following link as reference

http://processors.wiki.ti.com/index.php/Processor_SDK_Building_The_SDK

I am running it on ubuntu 16.04

As i reach to the folowing step

MACHINE=k2hk-evm bitbake arago-core-tisdk-image

 following error is coming

ti/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/rm-lld-rtos/02.02.00.02-r1.1/temp/run.do_compile.3044: 217: [: 1: unexpected operator

What i found was at line no.217 of file run.do_compile.3044 i need to change == to =

but if i again run after making the changes

MACHINE=k2hk-evm bitbake arago-core-tisdk-image

a new file is generated with name like run.do_compile.5550

so there is no use of manually editing the error

How to resolve the issue.

 

 

Regards

  • Hi,

    Can you share the full log of your build?

    Also please share the steps you took to setup your build environment.

    Best Regards,
    Yordan
  • i have followed steps from following link
    processors.wiki.ti.com/.../Processor_SDK_Building_The_SDK

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.02.00.09-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE= k2hk-evm bitbake arago-core-tisdk-image

    Log

    administrator@R15PC123:~/ti/tisdk/build$ MACHINE=k2hk-evm bitbake arago-core-tisdk-image
    Loading cache: 100% |############################################| Time: 0:00:00
    Loaded 3797 entries from dependency cache.
    Parsing recipes: 100% |##########################################| Time: 0:00:01
    Parsing of 3033 .bb files complete (3030 cached, 3 parsed). 3800 targets, 527 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
    /home/administrator/ti/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 = "k2hk-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2017.10"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:eaac60268857bc56bf89625df93935a272b63341"
    meta-ros = "HEAD:e01c6ace0d4f9d700449edad3781e9cd505b5e10"
    meta-arago-distro
    meta-arago-extras = "HEAD:d34c861f846f35d089e1caf224ec43079be7b202"
    meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-openamp = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"
    meta-qt5 = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
    meta-networking
    meta-ruby
    meta-python
    meta-oe
    meta-gnome
    meta-multimedia = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6"
    meta-ti = "HEAD:351ccf1928a18c2b69fd19b09b980c9aa3af2e26"
    meta-linaro-toolchain
    meta-optee = "HEAD:5d2cb685217794293ea2bab18d7e62019c329d06"
    meta = "HEAD:1718f0a6c1de9c23660a9bebfd4420e3c4ed37e6"

    Initialising tasks: 100% |#######################################| Time: 0:00:19
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    ERROR: rm-lld-rtos-02.02.00.02-r1.1 do_compile: Function failed: do_compile (log file is located at /home/administrator/ti/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/rm-lld-rtos/02.02.00.02-r1.1/temp/log.do_compile.3044)
    ERROR: Logfile of failure stored in: /home/administrator/ti/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/rm-lld-rtos/02.02.00.02-r1.1/temp/log.do_compile.3044
    Log data follows:
    | DEBUG: Executing shell function do_compile
    | /home/administrator/ti/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/rm-lld-rtos/02.02.00.02-r1.1/temp/run.do_compile.3044: 217: [: 1: unexpected operator
    | make: *** No rule to make target 'release'. Stop.
    | WARNING: exit code 2 from a shell command.
    | ERROR: Function failed: do_compile (log file is located at /home/administrator/ti/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/rm-lld-rtos/02.02.00.02-r1.1/temp/log.do_compile.3044)
    ERROR: Task (/home/administrator/ti/tisdk/sources/meta-ti/recipes-bsp/rm-lld/rm-lld-rtos_git.bb:do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 1065 tasks of which 1062 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
    /home/administrator/ti/tisdk/sources/meta-ti/recipes-bsp/rm-lld/rm-lld-rtos_git.bb:do_compile
    Summary: There was 1 WARNING message shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    administrator@R15PC123:~/ti/tisdk/build$ MACHINE=k2hk-evm bitbake arago-core-tisdk-image
    Loading cache: 100% |#################################################################################################| Time: 0:00:00
    Loaded 3797 entries from dependency cache.
    Parsing recipes: 100% |###############################################################################################| Time: 0:00:01
    Parsing of 3033 .bb files complete (3030 cached, 3 parsed). 3800 targets, 527 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
    /home/administrator/ti/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 = "k2hk-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2017.10"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:eaac60268857bc56bf89625df93935a272b63341"
    meta-ros = "HEAD:e01c6ace0d4f9d700449edad3781e9cd505b5e10"
    meta-arago-distro
    meta-arago-extras = "HEAD:d34c861f846f35d089e1caf224ec43079be7b202"
    meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-openamp = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"
    meta-qt5 = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
    meta-networking
    meta-ruby
    meta-python
    meta-oe
    meta-gnome
    meta-multimedia = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6"
    meta-ti = "HEAD:351ccf1928a18c2b69fd19b09b980c9aa3af2e26"
    meta-linaro-toolchain
    meta-optee = "HEAD:5d2cb685217794293ea2bab18d7e62019c329d06"
    meta = "HEAD:1718f0a6c1de9c23660a9bebfd4420e3c4ed37e6"

    Initialising tasks: 100% |############################################################################################| Time: 0:00:19
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    ERROR: rm-lld-rtos-02.02.00.02-r1.1 do_compile: Function failed: do_compile (log file is located at /home/administrator/ti/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/rm-lld-rtos/02.02.00.02-r1.1/temp/log.do_compile.5550)
    ERROR: Logfile of failure stored in: /home/administrator/ti/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/rm-lld-rtos/02.02.00.02-r1.1/temp/log.do_compile.5550
    Log data follows:
    | DEBUG: Executing shell function do_compile
    | /home/administrator/ti/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/rm-lld-rtos/02.02.00.02-r1.1/temp/run.do_compile.5550: 217: [: 1: unexpected operator
    | make: *** No rule to make target 'release'. Stop.
    | WARNING: exit code 2 from a shell command.
    | ERROR: Function failed: do_compile (log file is located at /home/administrator/ti/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/rm-lld-rtos/02.02.00.02-r1.1/temp/log.do_compile.5550)
    ERROR: Task (/home/administrator/ti/tisdk/sources/meta-ti/recipes-bsp/rm-lld/rm-lld-rtos_git.bb:do_compile) failed with exit code '1'
    WARNING: icu-native-57.1-r0 do_fetch: Checksum mismatch for local file /home/administrator/ti/tisdk/downloads/icu4c-57_1-src.tgz
    Cleaning and trying again.
    WARNING: icu-native-57.1-r0 do_fetch: Renaming /home/administrator/ti/tisdk/downloads/icu4c-57_1-src.tgz to /home/administrator/ti/tisdk/downloads/icu4c-57_1-src.tgz_bad-checksum_4b2e92c075e5f70bbb3cc2d6f95fc16b
    WARNING: icu-native-57.1-r0 do_fetch: Checksum failure encountered with download of download.icu-project.org/.../icu4c-57_1-src.tgz - will attempt other sources if available
    NOTE: Tasks Summary: Attempted 1069 tasks of which 1064 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
    /home/administrator/ti/tisdk/sources/meta-ti/recipes-bsp/rm-lld/rm-lld-rtos_git.bb:do_compile
    Summary: There were 4 WARNING messages shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
  • Hi,

    We're looking into this.

    Best Regards,
    Yordan
  • Hi ,
    Problem resolved
    ran the command
    sudo dpkg-reconfigure dash
    and selected 'NO'

    but now new error is coming

    WARNING: netapi-01.01.00.08-r0.1 do_fetch: Failed to fetch URL git://git.ti.com/keystone-rtos/netapi.git;protocol=git;branch=master, attempting MIRRORS if available
    ERROR: netapi-01.01.00.08-r0.1 do_fetch: Fetcher failure: Unable to find revision 50026020384737d253668c4be80745a3653106f8 in branch master even from upstream
    ERROR: netapi-01.01.00.08-r0.1 do_fetch: Fetcher failure for URL: 'git://git.ti.com/keystone-rtos/netapi.git;protocol=git;branch=master'. Unable to fetch URL from any source.
    ERROR: netapi-01.01.00.08-r0.1 do_fetch: Function failed: base_do_fetch
    ERROR: Logfile of failure stored in: /home/administrator/ti/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/netapi/01.01.00.08-r0.1/temp/log.do_fetch.9042
    ERROR: Task (/home/administrator/ti/tisdk/sources/meta-ti/recipes-ti/netapi/netapi_git.bb:do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 2549 tasks of which 1124 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
    /home/administrator/ti/tisdk/sources/meta-ti/recipes-ti/netapi/netapi_git.bb:do_fetch
    Summary: There were 7 WARNING messages shown.
    Summary: There were 3 ERROR messages shown, returning a non-zero exit code.


    Regards
    Sameer
  • What I can suggest is open git.ti.com/.../master and check what is the latest commit in the master branch.
    Then replace the revision with the latest commit in the corresponding recipe (.bb file).

    Best Regards,
    Yordan