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.

tda4 vh:sdk9.0 version ,Error encountered during Yocto source code compilation while building 'websocketd'.

Hi teams,

When I compile using Yocto from the SDK 9.0 source code, everything else compiles successfully. However, I encounter an error specifically when compiling 'websocketd'. I'm not sure how to resolve this issue. Can you help me troubleshoot this problem?

The error log during compilation is as follows:

NOTE: Deferred task mc:k3r5:virtual:native:/pscd2/weiqiang/build/tda-yocto/sources/oe-core/meta/recipes-devtools/python/python3-jsonschema_4.4.0.bb:do_populate_sysroot now buildable
NOTE: Deferred task mc:k3r5:virtual:native:/pscd2/weiqiang/build/tda-yocto/sources/oe-core/meta/recipes-support/lzop/lzop_1.04.bb:do_populate_sysroot now buildable
ERROR: websocketd-0.4.1-r0 do_compile: ExecutionError('/pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/run.do_compile.3788325', 1, None, None)
ERROR: Logfile of failure stored in: /pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/log.do_compile.3788325
Log data follows:
| DEBUG: Executing shell function do_compile
| go: github.com/gorilla/websocket@v1.4.0: Get "https://proxy.golang.org/github.com/gorilla/websocket/@v/v1.4.0.mod": dial tcp: lookup proxy.golang.org: Temporary failure in name resolution
| go: downloading github.com/gorilla/websocket v1.4.0
| go: github.com/gorilla/websocket@v1.4.0: Get "https://proxy.golang.org/github.com/gorilla/websocket/@v/v1.4.0.mod": dial tcp: lookup proxy.golang.org: Temporary failure in name resolution
| go: github.com/gorilla/websocket@v1.4.0: Get "https://proxy.golang.org/github.com/gorilla/websocket/@v/v1.4.0.mod": dial tcp: lookup proxy.golang.org: Temporary failure in name resolution
| go: downloading github.com/gorilla/websocket v1.4.0
| go: github.com/gorilla/websocket@v1.4.0: Get "https://proxy.golang.org/github.com/gorilla/websocket/@v/v1.4.0.mod": dial tcp: lookup proxy.golang.org: Temporary failure in name resolution
| WARNING: /pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/run.do_compile.3788325:171 exit 1 from 'aarch64-oe-linux-go install -p 10 -v -ldflags="-r /usr/lib/go/pkg/linux_arm64_dynlink   -extldflags ' --sysroot=/pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/recipe-sysroot -Wl,-rpath-link=/pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/recipe-sysroot/usr/lib/go/pkg/linux_arm64_dynlink -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=/pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0=/usr/src/debug/websocketd/0.4.1-r0                      -fdebug-prefix-map=/pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0=/usr/src/debug/websocketd/0.4.1-r0                      -fdebug-prefix-map=/pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/recipe-sysroot=                      -fdebug-prefix-map=/pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/recipe-sysroot-native= '" -trimpath -modcacherw -buildmode=pie `go_list_packages`'
| WARNING: Backtrace (BB generated script):
|       #1: go_do_compile, /pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/run.do_compile.3788325, line 171
|       #2: do_compile, /pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/run.do_compile.3788325, line 163
|       #3: main, /pscd2/weiqiang/build/tda-yocto/build/arago-tmp-default-glibc/work/aarch64-oe-linux/websocketd/0.4.1-r0/temp/run.do_compile.3788325, line 185
ERROR: Task (/pscd2/weiqiang/build/tda-yocto/sources/meta-arago/meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb:do_compile) failed with exit code '1'

Best Regards,

Jocc