Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker multi-architecture build failing for PLC4X deviceShifu #996

Closed
tomqin93 opened this issue Oct 2, 2024 · 1 comment · Fixed by #1082
Closed

Docker multi-architecture build failing for PLC4X deviceShifu #996

tomqin93 opened this issue Oct 2, 2024 · 1 comment · Fixed by #1082
Labels
bug Something isn't working

Comments

@tomqin93
Copy link
Contributor

tomqin93 commented Oct 2, 2024

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):

  • Shifu Version: v0.54.0+
  • Kubernetes distro n/a
  • Version n/a
  • CPU Architecture arm building on amd64

Additional context

Seems to be a golang/docker issue
golang/go#68976

@tomqin93 tomqin93 added the bug Something isn't working label Oct 2, 2024
@tomqin93 tomqin93 changed the title Docker Multiarch building failing Docker multi-architecture build failing for PLC4X deviceShifu Oct 11, 2024
@tomqin93
Copy link
Contributor Author

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

tomqin93 added a commit that referenced this issue Dec 18, 2024
* [Issue #996] Bump Go version to fix pipeline building failure

* temporarily remove load from plc4x build

* add in multiarch arguments for test plc4x build

* remove build runs after successful pipeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant