You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import "go.opentelemetry.io/otel"
func main() {}
Building with GOARCH=386 (e.g. GOPATH=wherever GO111MODULE=off GOARCH=386 test.go ) fails with:
src/go/src/go.opentelemetry.io/auto/sdk/tracer.go:79:38: math.MaxUint32 (untyped int constant 4294967295) overflows int
src/go/src/go.opentelemetry.io/auto/sdk/tracer.go:84:38: math.MaxUint32 (untyped int constant 4294967295) overflows int
It looks like len() returns a signed int, causing min to compare signed ints, and MaxUint32 is too big to be a signed int in 32-bit mode.
This is happening on Ubuntu 22.04.4 with go 1.21.0 and go 1.23.5; I suspect any version of go that supports min will have this problem.
The text was updated successfully, but these errors were encountered:
Thank you for your interest in the project. We do not currently support this architecture. If you would like to submit a PR to fix this, and the other build issues for this architecture, we can help review them. However, we do not plan to prioritize this in the near future.
Here's the shortest failing program I can make:
Building with GOARCH=386 (e.g.
GOPATH=wherever GO111MODULE=off GOARCH=386 test.go
) fails with:src/go/src/go.opentelemetry.io/auto/sdk/tracer.go:79:38: math.MaxUint32 (untyped int constant 4294967295) overflows int
src/go/src/go.opentelemetry.io/auto/sdk/tracer.go:84:38: math.MaxUint32 (untyped int constant 4294967295) overflows int
It looks like len() returns a signed int, causing min to compare signed ints, and MaxUint32 is too big to be a signed int in 32-bit mode.
This is happening on Ubuntu 22.04.4 with go 1.21.0 and go 1.23.5; I suspect any version of go that supports min will have this problem.
The text was updated successfully, but these errors were encountered: