Open anuraaga opened 1 day ago
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Until this is fixed, you should be able to build your program by setting CGO_LDFLAGS_ALLOW=-Wl,--push-state.*
in the environment.
Change https://go.dev/cl/622238 mentions this issue: cmd/go: permit linker flag -Wl,--push-state,--as-needed
Go version
go1.23.2 linux/arm64
Output of
go env
in your module/workspace:What did you do?
Try to compile https://github.com/wasilibs/go-re2 in cgo mode linking to ubuntu 24.10 provided libre2-dev, which works in other ubuntu versions.
What did you see happen?
Failure with ld flag, which seems to be something new with the ubuntu 24.10 build chain / built packages.
https://github.com/wasilibs/go-re2/blob/d9666878a10b4e2eee30a133fa4673c1e56ee1dd/internal/cre2/cre2_re2_cgo.go#L6
What did you expect to see?
Tests pass.