Fails to build from source on 32-bit platforms #298

Closed
opened 2025-12-29 01:26:21 +01:00 by adam · 2 comments
Owner

Originally created by @ptrcnull on GitHub (Aug 2, 2022).

Bug description

fails to build from source on 32-bit platforms:

# github.com/puzpuzpuz/xsync
/home/buildozer/go/pkg/mod/github.com/puzpuzpuz/xsync@v1.2.1/util.go:20:24: 0xff51afd7ed558ccd (untyped int constant 18397679294719823053) overflows uintptr
/home/buildozer/go/pkg/mod/github.com/puzpuzpuz/xsync@v1.2.1/util.go:21:24: 0xc4ceb9fe1a85ec53 (untyped int constant 14181476777654086739) overflows uintptr

To Reproduce

$ GOARCH=386 go build

Proposed solution
can be fixed by bumping xsync version to 1.4.1, where this was fixed; it doesn't look like there have been any breaking changes since 1.2.1: https://github.com/puzpuzpuz/xsync/releases

Originally created by @ptrcnull on GitHub (Aug 2, 2022). **Bug description** fails to build from source on 32-bit platforms: ``` # github.com/puzpuzpuz/xsync /home/buildozer/go/pkg/mod/github.com/puzpuzpuz/xsync@v1.2.1/util.go:20:24: 0xff51afd7ed558ccd (untyped int constant 18397679294719823053) overflows uintptr /home/buildozer/go/pkg/mod/github.com/puzpuzpuz/xsync@v1.2.1/util.go:21:24: 0xc4ceb9fe1a85ec53 (untyped int constant 14181476777654086739) overflows uintptr ``` **To Reproduce** ``` $ GOARCH=386 go build ``` **Proposed solution** can be fixed by bumping xsync version to 1.4.1, where this was [fixed][1]; it doesn't look like there have been any breaking changes since 1.2.1: https://github.com/puzpuzpuz/xsync/releases [1]: https://github.com/puzpuzpuz/xsync/releases/tag/v1.4.1
adam added the bug label 2025-12-29 01:26:21 +01:00
adam closed this issue 2025-12-29 01:26:22 +01:00
Author
Owner

@juanfont commented on GitHub (Aug 11, 2022):

This has been fixed in HEAD in #722.

@juanfont commented on GitHub (Aug 11, 2022): This has been fixed in HEAD in #722.
Author
Owner

@ptrcnull commented on GitHub (Aug 11, 2022):

thanks!

@ptrcnull commented on GitHub (Aug 11, 2022): thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#298