Bug 272028 - lang/go120: Fails to build sysutils/gotop: x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
Summary: lang/go120: Fails to build sysutils/gotop: x/sys/unix/syscall.go:83:16: unsaf...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Golang Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-16 16:19 UTC by Yuri Victorovich
Modified: 2023-06-16 16:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2023-06-16 16:19:59 UTC
After updating sysutils/gotop to 4.2.0 and 'make makesum' the build fails:
> vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
> vendor/golang.org/x/sys/unix/syscall_unix.go:118:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)

go.mk doesn't seem to set -lang as the message says.
Correcting the version in go.mod causes build failures.