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.

TDA4VM: RTOS SDK0900 yocto package image failed .

Part Number: TDA4VM

RTOS SDK : ti-processor-sdk-linux-adas-j721e-evm-09_00_01_03

Ubuntu : 22.04

cmd : MACHINE=j721e-evm bitbake -k tisdk-default-image

---------------------------------------------------------------------------------------------------------------------------------------------------------

When I was using yocto to package images, download websocketd-0.4.1-r0 failed. How should I solve this problem?

ERROR: websocketd-0.4.1-r0 do_compile: ExecutionError('/home/pingbinwang/Hirain_Os/TDA4/SDK/SDK-0900/sdk-linux/ti-processor-sdk-linux-adas-j721e-evm-09_00_01_03/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/run.do_compile.202768', 1, None, None)
ERROR: Logfile of failure stored in: /home/pingbinwang/Hirain_Os/TDA4/SDK/SDK-0900/sdk-linux/ti-processor-sdk-linux-adas-j721e-evm-09_00_01_03/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/log.do_compile.202768
Log data follows:
| DEBUG: Executing shell function do_compile
| go: github.com/gorilla/websocket@v0.4.1 Get "https://proxy.golang.org/github.com/gorilla/websocket/@v/v1.4.0.mod": dial tcp 142.251.42.241:443: i/o timeout
| go: downloading github.com/gorilla/websocket v0.4.1
| go: github.com/gorilla/websocket@v0.4.1: Get "https://proxy.golang.org/github.com/gorilla/websocket/@v/v1.4.0.mod": dial tcp 142.251.42.241:443: i/o timeout
| go: github.com/gorilla/websocket@v0.4.1: Get "https://proxy.golang.org/github.com/gorilla/websocket/@v/v1.4.0.mod": dial tcp 142.251.42.241:443: i/o timeout
| go: downloading github.com/gorilla/websocket v0.4.1

| WARNING: Backtrace (BB generated script):
| 	#1: go_do_compile, /home/pingbinwang/Hirain_Os/TDA4/SDK/SDK-0900/sdk-linux/ti-processor-sdk-linux-adas-j721e-evm-09_00_01_03/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/run.do_compile.202768, line 171
| 	#2: do_compile, /home/pingbinwang/Hirain_Os/TDA4/SDK/SDK-0900/sdk-linux/ti-processor-sdk-linux-adas-j721e-evm-09_00_01_03/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/run.do_compile.202768, line 163
| 	#3: main, /home/pingbinwang/Hirain_Os/TDA4/SDK/SDK-0900/sdk-linux/ti-processor-sdk-linux-adas-j721e-evm-09_00_01_03/yocto-build/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/run.do_compile.202768, line 185
ERROR: Task (/home/pingbinwang/Hirain_Os/TDA4/SDK/SDK-0900/sdk-linux/ti-processor-sdk-linux-adas-j721e-evm-09_00_01_03/yocto-build/sources/meta-arago/meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 11064 tasks of which 11063 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 5 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds

Summary: 1 task failed:
  /home/pingbinwang/Hirain_Os/TDA4/SDK/SDK-0900/sdk-linux/ti-processor-sdk-linux-adas-j721e-evm-09_00_01_03/yocto-build/sources/meta-arago/meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb:do_compile

  • Hello,

    This looks like a network connectivity issue. Can you check if you can clone the repository locally, not through Yocto? Just to check that you are able to reach their git repo?

    git clone https://github.com/gorilla/websocket.git
    Cloning into 'websocket'...
    remote: Enumerating objects: 1475, done.
    remote: Counting objects: 100% (192/192), done.
    remote: Compressing objects: 100% (132/132), done.
    remote: Total 1475 (delta 92), reused 115 (delta 52), pack-reused 1283
    Receiving objects: 100% (1475/1475), 575.92 KiB | 6.86 MiB/s, done.
    Resolving deltas: 100% (839/839), done.

    Regards,

    Erick

  • When I only run "git clone https://github.com/gorilla/websocket.git",it will be pass.But when I download websocket by linux-sdk , the phenomenon is the same as before.

    remote: Enumerating objects: 1475, done.
    remote: Counting objects: 100% (192/192), done.
    remote: Compressing objects: 100% (126/126), done.
    remote: Total 1475 (delta 92), reused 122 (delta 58), pack-reused 1283
    

  • This looks like a proxy issue. For your proxy settings, do you have the following variables exported? "http_proxy" and "https_proxy"?

    This will be used by Go in the do_compile() step when it is fetching other modules.

    ./meta-arago/meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb

      1 SUMMARY = "Application for routing native applications via websockets"
      2 HOMEPAGE = "http://websocketd.com/"
      3 LICENSE = "BSD-2-Clause"
      4 LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=a14d7befdbee1290ac5c472cd85d66f2"
      5 
      6 inherit go-mod
      7 
      8 GO_IMPORT = "github.com/joewalnes/websocketd"
      9 
     10 SRC_URI = "git://${GO_IMPORT};protocol=https;branch=master"
     11 SRCREV = "035c18cc3e6962dabd5ea2ad8845260726a4a99e"
     12 
     13 # bitbake only exports proxy variables during fetching, but go handles
     14 # module fetching on its own during compile and needs proxy settings
     15 # along with network access for the task
     16 export http_proxy
     17 export https_proxy
     18 do_compile[network] = "1"
     19 
     20 # Development package contains all the examples in different languages
     21 INSANE_SKIP:${PN}-dev = "file-rdeps"
    

    Regards,

    Erick