Skip to content

Conversation

devodev
Copy link
Contributor

@devodev devodev commented Oct 30, 2024

Fix the following error when compiling binaries on linux/386:

Error: ../pkg/datapath/linux/probes/probes.go:498:19: constant 4294967295 overflows int

Related to: #35551
For some reason, the Hubble-cli compile test did not fail in the linked PR, but it did in mine after a rebase here: https://github.com/cilium/cilium/actions/runs/11596542377/job/32288046467?pr=35483

cc @borkmann for validation

Repro when compiling hubble-cli:

$ cd hubble
$ env GOARCH=386 GOOS=linux make
GOOS=linux GOARCH=386 CGO_ENABLED=0 go build  -mod=vendor -ldflags ' -X "github.com/cilium/cilium/pkg/version.ciliumVersion=1.17.0-dev 24a858c572 2024-10-21T19:16:19-04:00" -s -w -X "github.com/cilium/cilium/pkg/envoy.requiredEnvoyVersionSHA=0fdfdb63f28d1701595e9374931c4c570a7f8771" ' -tags=osusergo   -ldflags "-w -s -X 'github.com/cilium/cilium/hubble/pkg.GitBranch=pr/devodev/hubble-auto-port-forward-native' -X 'github.com/cilium/cilium/hubble/pkg.GitHash=24a858c572' -X 'github.com/cilium/cilium/hubble/pkg.Version=1.17.0-dev'" -o ./hubble .
# github.com/cilium/cilium/pkg/datapath/linux/probes
../pkg/datapath/linux/probes/probes.go:498:19: constant 4294967295 overflows int

make: *** [hubble] Error 1

Fix the following error when compiling binaries on linux/386:
Error: ../pkg/datapath/linux/probes/probes.go:498:19: constant 4294967295 overflows int

Signed-off-by: Alexandre Barone <abalexandrebarone@gmail.com>
@devodev devodev requested a review from a team as a code owner October 30, 2024 18:33
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Oct 30, 2024
@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Oct 30, 2024
Copy link
Member

@borkmann borkmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@borkmann
Copy link
Member

/test

@borkmann borkmann requested a review from rgo3 October 30, 2024 19:27
Copy link
Contributor

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

regardin hubble-cli, we stopped releasing 32-bit binaries at some point https://github.com/cilium/hubble/releases so we probably don't need to build them anymore in the CI 🔧

@michi-covalent michi-covalent added the release-note/minor This PR changes functionality that users may find relevant to operating Cilium. label Oct 30, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Oct 30, 2024
@michi-covalent
Copy link
Contributor

/test

@michi-covalent michi-covalent added this pull request to the merge queue Oct 31, 2024
Merged via the queue into cilium:main with commit a802f91 Oct 31, 2024
72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/community-contribution This was a contribution made by a community member. release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants