pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GO on macOS Monterrey



On 3/4/22 13:09, Adam wrote:
Has anyone looked into the possibility of using a newer GO package than 1.4 for bootstrapping?  Apparently go 1.10 and earlier depend on a kernel feature that has been removed from Monterrey.

go/build
cmd/go
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x3ea895)
        /Users/bacon/Pkgsrc/pkg/go14/src/runtime/panic.go:491 +0xad fp=0x7ff7bfefe390 sp=0x7ff7bfefe360
runtime.goenvs()
        /Users/bacon/Pkgsrc/pkg/go14/src/runtime/os_darwin.c:104 +0x70 fp=0x7ff7bfefe3a8 sp=0x7ff7bfefe390
runtime.schedinit()
        /Users/bacon/Pkgsrc/pkg/go14/src/runtime/proc.c:144 +0x5f fp=0x7ff7bfefe3d0 sp=0x7ff7bfefe3a8
runtime.rt0_go(0x7ff7bfefe408, 0x4, 0x7ff7bfefe408, 0x0, 0x1000, 0x4, 0x7ff7bfefe880, 0x7ff7bfefe8d0, 0x7ff7bfefe8d6, 0x7ff7bfefe8d9, ...)
        /Users/bacon/Pkgsrc/pkg/go14/src/runtime/asm_amd64.s:95 +0x116 fp=0x7ff7bfefe3d8 sp=0x7ff7bfefe3d0
*** Error code 2

You have to install lang/go-bin and add

GOROOT_BOOTSTRAP=	${LOCALBASE}/go-bin

to your mk.conf.

Kind regards,
Adam

That worked, thanks.


Home | Main Index | Thread Index | Old Index