v1.34.3: cross-platform build failed for OpenBSD
Same code works with v1.34.2, but failed with v1.34.3 (both amd64 and arm64).
- OS: macOS 15.1.1
- CPU: Apple M3 Pro
GOOS=openbsd GOARCH=amd64 CGO_ENABLED=0 go build -buildvcs=false -trimpath -ldflags="-s -w" -o myprogram ./cmd/myprogram
# modernc.org/sqlite/lib
../../../.go/pkg/mod/modernc.org/sqlite@v1.34.3/lib/hooks.go:29:23: undefined: _aSyscall
../../../.go/pkg/mod/modernc.org/sqlite@v1.34.3/lib/hooks.go:30:36: undefined: __ccgo_fp
make[1]: *** [openbsd-amd64] Error 1
make: *** [pack-openbsd-amd64] Error 255
Edited by Zhang Huangbin