Edgenesis / shifu

Kubernetes-native IoT gateway
https://shifu.dev
Apache License 2.0
1.28k stars 115 forks source link

Docker multi-architecture build failing for PLC4X deviceShifu #996

Open tomqin93 opened 3 weeks ago

tomqin93 commented 3 weeks ago

Describe the bug

Docker multiarch building of PLC4X is failing in main branch

To Reproduce

Trigger pipeline building of PLC4X (via merge, tag)

Expected behavior

PLC4X image building should be working

Log Output

https://dev.azure.com/Edgenesis/baed62fa-1aad-4f02-bc6d-bc6cfd242fce/_build/results?buildId=13616&view=logs&jobId=0112d757-5591-5a73-051b-95347f32b3c6

 > [linux/arm64 builder 11/11] RUN CGO_ENABLED=1 GOOS=linux GOARCH=arm64 CGO_LDFLAGS="-static" go build -a -v -o /output/deviceshifu  cmd/deviceshifu/cmdplc4x/main.go:
10.03 go: error obtaining buildID for go tool compile: fork/exec /usr/local/go/pkg/tool/linux_arm64/compile: invalid argument
10.03 go: error obtaining buildID for go tool compile: fork/exec /usr/local/go/pkg/tool/linux_arm64/compile: invalid argument

Server (please complete the following information):

Additional context

Seems to be a golang/docker issue https://github.com/golang/go/issues/68976

tomqin93 commented 1 week ago

This only happens using QEMU emulation in pipeline builders, doing manual building for now