On Tue, Sep 3, 2024 at 10:07 AM Martin Stiemerling
<mstiemerl...@gmail.com> wrote:
>
>
>
> > Am 03.09.2024 um 18:50 schrieb Ian Lance Taylor <i...@golang.org>:
> >
> > 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?
>
> /home/mls/goworks exists and under /home/mls/goworks/src is the go source 
> code.
>
> >
> > Do you have GOROOT set in the environment?
>
> Nope, no environment set, as described under 
> https://go.dev/doc/install/source#environment.
>
> Interestingly does the whole process just run through, with the same setting, 
> i.e., no GOROOT set, without my modifications (master branch).
>
> I guess something goes wrong and the binaries under /home/mls/goworks/bin are 
> not generated.
>
> Thus the assumed GOROOT of the build process, i.e., /home/mls/goworks and 
> $GOROOT/bin, doesn’t work.
>
> However, I cannot see any error message or warning...

Thanks.  My conclusion is that this must have something to do with
your changes.  I saw that you posted your complete tree, but is there
an easy way to see only what you changed?

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/CAOyqgcWYtcGU9HYFvqzVuEu0v-QtXC7HPQCtYEFcA9dUN2qW4A%40mail.gmail.com.

Reply via email to