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

[0.11 backport] hack/test: allow ALPINE_VERSION to be set from env #4542

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Jan 10, 2024

@thaJeztah thaJeztah added this to the v0.11.7 milestone Jan 10, 2024
@thaJeztah
Copy link
Member Author

Hm... is cross in this branch still broken?

 > [linux/amd64->riscv64 runc 3/3] RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc:
#38 80.09 # github.com/opencontainers/runc
#38 80.09 /usr/local/go/pkg/tool/linux_amd64/link: running riscv64-alpine-linux-musl-clang failed: exit status 1
#38 80.09 clang-15: error: unable to execute command: Segmentation fault (core dumped)
#38 80.09 clang-15: error: linker command failed due to signal (use -v to see invocation)
#38 80.09 
------
Dockerfile:65
--------------------
  64 |       [ "$(xx-info arch)" != "ppc64le" ] || XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
  65 | >>> RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache \
  66 | >>>   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ && \
  67 | >>>   xx-verify --static /usr/bin/runc
  68 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc" did not complete successfully: exit code: 1
Error: Process completed with exit code 1.

@thaJeztah thaJeztah self-assigned this Jan 10, 2024
@crazy-max
Copy link
Member

Hm... is cross in this branch still broken?

 > [linux/amd64->riscv64 runc 3/3] RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc:
#38 80.09 # github.com/opencontainers/runc
#38 80.09 /usr/local/go/pkg/tool/linux_amd64/link: running riscv64-alpine-linux-musl-clang failed: exit status 1
#38 80.09 clang-15: error: unable to execute command: Segmentation fault (core dumped)
#38 80.09 clang-15: error: linker command failed due to signal (use -v to see invocation)
#38 80.09 
------
Dockerfile:65
--------------------
  64 |       [ "$(xx-info arch)" != "ppc64le" ] || XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
  65 | >>> RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache \
  66 | >>>   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ && \
  67 | >>>   xx-verify --static /usr/bin/runc
  68 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc" did not complete successfully: exit code: 1
Error: Process completed with exit code 1.

Hum yeah I think it needs xx update in the Dockerfile

crazy-max and others added 3 commits January 10, 2024 14:36
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit 5955ccf)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit bb18da8)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 295c899)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

Added 5955ccf 🤞

@crazy-max crazy-max merged commit d080776 into moby:v0.11 Jan 10, 2024
41 checks passed
@thaJeztah thaJeztah deleted the 0.11_alpine_version_buildarg branch January 10, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants