Thanks for the tip!

I resolved the issue.  I needed to update new files in
“src/internal/platform”.


On Sun, Nov 9, 2025 at 5:09 PM Def Ceb <[email protected]> wrote:

> This is a bit of a wild guess, but do you not have procfs mounted? If not,
> try it with.
>
> On Sun, Nov 9, 2025, 23:05 Curtis Hamilton <[email protected]> wrote:
>
>> I'm attempting to build a newer version of go on freebsd/ppc64.  I've
>> been successful in building versions up to go1.19.  However, I'm unable to
>> build any newer release version.  The newly built "go_boostrap" reports it
>> cannot find "GOROOT" (See below).
>>
>> Can anyone provide any tips/hints on what I've done wrong?
>>
>> root@blackbird-powerpc64:~/Devel2/go-go1.20.14/src # env GOOS=freebsd
>> GOARCH=ppc64 ./bootstrap.bash
>> #### Copying to ../../go-freebsd-ppc64-bootstrap
>>
>> #### Cleaning ../../go-freebsd-ppc64-bootstrap
>>
>> #### Building ../../go-freebsd-ppc64-bootstrap
>>
>> Building Go cmd/dist using /usr/local/go. (go1.19.13 freebsd/ppc64)
>> Building Go toolchain1 using /usr/local/go.
>> Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
>> Building Go toolchain2 using go_bootstrap and Go toolchain1.
>> go: cannot find GOROOT directory: /root/Devel2/go-freebsd-ppc64-bootstrap
>> go tool dist: FAILED:
>> /root/Devel2/go-freebsd-ppc64-bootstrap/pkg/tool/freebsd_ppc64/go_bootstrap
>> install cmd/asm cmd/cgo cmd/compile cmd/link: exit status 2
>> root@blackbird-powerpc64:~/Devel2/go-go1.20.14/src #
>> ../../go-freebsd-ppc64-bootstrap/pkg/tool/freebsd_ppc64/go_bootstrap version
>> go: cannot find GOROOT directory:
>> /usr/ports/tmp/go-freebsd-ppc64-bootstrap
>> root@blackbird-powerpc64:~/Devel2/go-go1.20.14/src #
>> ../../go-freebsd-ppc64-bootstrap/pkg/tool/freebsd_ppc64/go_bootstrap
>> Go is a tool for managing Go source code.
>>
>> Usage:
>>
>> go <command> [arguments]
>>
>> The commands are:
>>
>> bug         start a bug report
>> build       compile packages and dependencies
>> clean       remove object files and cached files
>> doc         show documentation for package or symbol
>> env         print Go environment information
>> fix         update packages to use new APIs
>> fmt         gofmt (reformat) package sources
>> generate    generate Go files by processing source
>> get         add dependencies to current module and install them
>> install     compile and install packages and dependencies
>> list        list packages or modules
>> mod         module maintenance
>> work        workspace maintenance
>> run         compile and run Go program
>> test        test packages
>> tool        run specified go tool
>> version     print Go version
>> vet         report likely mistakes in packages
>>
>> Use "go help <command>" for more information about a command.
>>
>> Additional help topics:
>>
>> buildconstraint build constraints
>> buildmode       build modes
>> c               calling between Go and C
>> cache           build and test caching
>> environment     environment variables
>> filetype        file types
>> go.mod          the go.mod file
>> gopath          GOPATH environment variable
>> gopath-get      legacy GOPATH go get
>> goproxy         module proxy protocol
>> importpath      import path syntax
>> modules         modules, module versions, and more
>> module-get      module-aware go get
>> module-auth     module authentication using go.sum
>> packages        package lists and patterns
>> private         configuration for downloading non-public code
>> testflag        testing flags
>> testfunc        testing functions
>> vcs             controlling version control with GOVCS
>>
>> Use "go help <topic>" for more information about that topic.
>>
>> root@blackbird-powerpc64:~/Devel2/go-go1.20.14/src #
>>
>> --
>> 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 [email protected].
>> To view this discussion visit
>> https://groups.google.com/d/msgid/golang-nuts/CAP9EAifqz2F21nwm6Pue2NBdHnuWT_3XZvTL5Hix%3DZpkAacVjg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/golang-nuts/CAP9EAifqz2F21nwm6Pue2NBdHnuWT_3XZvTL5Hix%3DZpkAacVjg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/CAP9EAicJrTNDF%3DQgkr_VeC72GosirFaERkOEx9KEh57C6MXi-g%40mail.gmail.com.

Reply via email to