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: yocto build errors

Part Number: TDA4VM
Other Parts Discussed in Thread: TDA4VL

Hi Ti experts,

I have encoutered build errors while build rootfs with yocoto, could you show me how to fix it?

1、protobuf fetch failed.

WARNING: protobuf-native-3.11.4-r0_psdkla do_fetch: Failed to fetch URL git://github.com/google/protobuf.git;branch=master;protocol=https, attempting MIRRORS if available

2、onnxruntime fetch failed.

WARNING: onnxruntime-1.7.0-r0_psdkla_4 do_fetch: Failed to fetch URL git://github.com/jarro2783/cxxopts;protocol=https;branch=master;destsuffix=/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/git/cmake/external/cxxopts;name=cmake-external-cxxopts, attempting MIRRORS if available

Initialising tasks: 100% |#################################################################################################################################################| Time: 0:00:08
Sstate summary: Wanted 30 Found 0 Missed 30 Current 3283 (0% match, 99% complete)
NOTE: Executing Tasks
WARNING: protobuf-native-3.11.4-r0_psdkla do_fetch: Failed to fetch URL git://github.com/google/protobuf.git;branch=master;protocol=https, attempting MIRRORS if available
ERROR: websocketd-0.4.1-r0 do_compile: Execution of '/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/temp/run.do_compile.21328' failed with exit code 1
ERROR: Logfile of failure stored in: /home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/temp/log.do_compile.21328
Log data follows:
| DEBUG: Executing shell function do_compile
| go: github.com/gorilla/websocket@v1.4.0: Get "">proxy.golang.org/.../v1.4.0.mod": dial tcp 108.177.125.141:443: i/o timeout
| go: github.com/gorilla/websocket@v1.4.0: Get "">proxy.golang.org/.../v1.4.0.mod": dial tcp 108.177.125.141:443: i/o timeout
| WARNING: /home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/temp/run.do_compile.21328:1 exit 1 from 'aarch64-none-linux-gnu-go install -p 24 -v -ldflags="-r /usr/lib/go/pkg/linux_arm64_dynlink -extldflags ' --sysroot=/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/recipe-sysroot -Wl,-rpath-link=/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/recipe-sysroot/usr/lib/go/pkg/linux_arm64_dynlink -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed'" -modcacherw -buildmode=pie `go_list_packages`'
| ERROR: Execution of '/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/temp/run.do_compile.21328' failed with exit code 1
ERROR: Task (/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/sources/meta-arago/meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb:do_compile) failed with exit code '1'
WARNING: onnxruntime-1.7.0-r0_psdkla_4 do_fetch: Failed to fetch URL git://github.com/jarro2783/cxxopts;protocol=https;branch=master;destsuffix=/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/git/cmake/external/cxxopts;name=cmake-external-cxxopts, attempting MIRRORS if available
ERROR: onnxruntime-1.7.0-r0_psdkla_4 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/recipe-sysroot-native/usr/bin/python3-native:/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/sources/oe-core/scripts:/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/recipe-sysroot-native/usr/bin/aarch64-linux:/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/recipe-sysroot/usr/bin/crossscripts:/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/recipe-sysroot-native/usr/sbin:/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/recipe-sysroot-native/usr/bin:/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/recipe-sysroot-native/sbin:/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/recipe-sysroot-native/bin:/home/CN/yongfeng.liu/tda4vl/rtos//gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin:/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/sources/bitbake/bin:/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/hosttools"; export HOME="/home/CN/yongfeng.liu"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror "">github.com/.../cxxopts" /home/CN/yongfeng.liu/tda4vl/linux/yocto-build/downloads/git2/github.com.jarro2783.cxxopts --progress failed with exit code 128, no output
ERROR: onnxruntime-1.7.0-r0_psdkla_4 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/jarro2783/cxxopts;protocol=https;branch=master;destsuffix=/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/git/cmake/external/cxxopts;name=cmake-external-cxxopts')
ERROR: Logfile of failure stored in: /home/CN/yongfeng.liu/tda4vl/linux/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_4/temp/log.do_fetch.21321
ERROR: Task (/home/CN/yongfeng.liu/tda4vl/linux/yocto-build/sources/meta-psdkla/recipes-core/packagegroups/onnxruntime.bb:do_fetch) failed with exit code '1'
Currently 2 running tasks (3348 of 9618) 34% |############################################### |
0: protobuf-native-3.11.4-r0_psdkla do_fetch (pid 21301) 2% |## | 8.05K/s
1: protobuf-3.11.4-r0_psdkla do_fetch - 8m50s (pid 21394)

  • my sdk verson : ti-processor-sdk-linux-j721s2-evm-08_00_04_05

  • Hi karthik

    I have followed the instrctions on that post. indeed, it fixed part of my issues. there are still some errors as below:

    Currently 2 running tasks (9569 of 9618) 99% |######################################################################################################################################## |
    0: onnxruntime-1.7.0-r0_psdkla_4 do_fetch (pid 28461) | <=> |
    1: websocketd-0.4.1-r0 do_compile - 26s (pid 6363)

    ERROR: websocketd-0.4.1-r0 do_compile: Execution of '/home/CN/yongfeng.liu/ti-processor-sdk-linux-j721s2-evm-08_00_04_05/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/temp/run.do_compile.6363' failed with exit code 1
    ERROR: Logfile of failure stored in: /home/CN/yongfeng.liu/ti-processor-sdk-linux-j721s2-evm-08_00_04_05/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/temp/log.do_compile.6363
    Log data follows:
    | DEBUG: Executing shell function do_compile
    | go: github.com/gorilla/websocket@v1.4.0: Get "">proxy.golang.org/.../v1.4.0.mod": dial tcp 108.177.125.141:443: i/o timeout
    | go: github.com/gorilla/websocket@v1.4.0: Get "">proxy.golang.org/.../v1.4.0.mod": dial tcp 108.177.125.141:443: i/o timeout
    | WARNING: /home/CN/yongfeng.liu/ti-processor-sdk-linux-j721s2-evm-08_00_04_05/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/temp/run.do_compile.6363:1 exit 1 from 'aarch64-none-linux-gnu-go install -p 24 -v -ldflags="-r /usr/lib/go/pkg/linux_arm64_dynlink -extldflags ' --sysroot=/home/CN/yongfeng.liu/ti-processor-sdk-linux-j721s2-evm-08_00_04_05/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/recipe-sysroot -Wl,-rpath-link=/home/CN/yongfeng.liu/ti-processor-sdk-linux-j721s2-evm-08_00_04_05/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/recipe-sysroot/usr/lib/go/pkg/linux_arm64_dynlink -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed'" -modcacherw -buildmode=pie `go_list_packages`'
    | ERROR: Execution of '/home/CN/yongfeng.liu/ti-processor-sdk-linux-j721s2-evm-08_00_04_05/yocto-build/build/arago-tmp-external-arm-glibc/work/aarch64-linux/websocketd/0.4.1-r0/temp/run.do_compile.6363' failed with exit code 1
    ERROR: Task (/home/CN/yongfeng.liu/ti-processor-sdk-linux-j721s2-evm-08_00_04_05/yocto-build/sources/meta-arago/meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb:do_compile) failed with exit code '1'
    Currently 1 running tasks (9569 of 9618) 99% |######################################################################################################################################## |
    0: onnxruntime-1.7.0-r0_psdkla_4 do_fetch (pid 28461) 30% |################################# | 99.00 KiB/s

  • Alex,

    I'm not able to recreate the issue at my end and it appears that this is related to the proxy configuration on your machine.

    The latest SDK 8.4 has removed dependencies with some of these onnxruntime recipes etc.. do you still see the issue with SDk 8.4 and have you taken care of the proxy related settings on your side?

    Regards

    Karthik