fix(e2e): build libbpf for amd64 multi-arch e2e binary target#12614
Merged
radTuti merged 1 commit intoprojectcalico:masterfrom Apr 24, 2026
Merged
fix(e2e): build libbpf for amd64 multi-arch e2e binary target#12614radTuti merged 1 commit intoprojectcalico:masterfrom
radTuti merged 1 commit intoprojectcalico:masterfrom
Conversation
d37069f to
9df46b7
Compare
1cea8a5 to
e53742b
Compare
e53742b to
64da3a0
Compare
The multi-arch pattern rule bin/k8s/e2e-linux-%.test (added in projectcalico#12506) dropped the $(LIBBPF_A) prereq and DOCKER_RUN_CGO wiring. Only amd64 needs them -- other arches have CGO off and compile the //go:build !cgo stub. amd64 fails to link on a clean tree with "undefined reference to libbpf_strerror_r". Add an explicit bin/k8s/e2e-linux-amd64.test rule (CGO + libbpf) and have bin/k8s/e2e.test rename it for local use (mv, not ln).
64da3a0 to
bb7c7c1
Compare
caseydavenport
approved these changes
Apr 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The multi-arch pattern rule
bin/k8s/e2e-linux-%.test(added in #12506) dropped the$(LIBBPF_A)prereq andDOCKER_RUN_CGOwiring. Only amd64 needs them — other arches have CGO off and compile the//go:build !cgostub. amd64 fails to link on a clean tree withundefined reference to libbpf_strerror_r.Add an explicit
bin/k8s/e2e-linux-amd64.testrule (CGO + libbpf) and havebin/k8s/e2e.testrename it for local use (mv, notln).Release note: