On Tue, Sep 3, 2024 at 9:03 AM Martin Stiemerling
<mstiemerl...@gmail.com> wrote:
>
> FreeBSD has since a while also support for the netlink facility, similar to 
> Linux. For Linux there is support in go via the syscall pkg for working with 
> Linux's netlink, but not yet for FreeBSD
>
> I have started to add the FreeBSD part to go's syscall package and fixed some 
> errors, but run into troubles when compiling go. Though my approach is by now 
> copying a lot form syscall_linux, as a first naive approach. :-)
>
> When using make.bash these steps work:
> Building Go cmd/dist using /usr/local/go122. (go1.22.6 freebsd/amd64)
> Building Go toolchain1 using /usr/local/go122.
> Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1
>
> However, after "Building Go toolchain2 using go_bootstrap and Go toolchain1" 
> this error turns out:
> "go: cannot find GOROOT directory: /home/mls/goworks
> go tool dist: FAILED: /home/mls/goworks/pkg/tool/freebsd_amd64/go_bootstrap 
> install -pgo=off cmd/asm cmd/cgo cmd/compile cmd/link cmd/preprofile: exit 
> status 2"

Where does the directory /home/mls/goworks come from?  Does it exist?

Do you have GOROOT set in the environment?

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXxSys1KkjvNCRtOV-F%3DXVRDhN_bvvzuJDV_K5wr_DQOg%40mail.gmail.com.

Reply via email to