I modified the freebsd/amd64 Go code and linux/ppc64 specific assembly code for 
freebsd/ppc64. 

With that done, I used the following to cross-compile on freebsd/amd64 host to 
create the bootstrap:

env GOOS=freebsd GOARCH=ppc64 GOROOT_BOOTSTRAP=/usr/local/go ./bootstrap.bash

I placed the resulting bootstrap build on freebsd/powerpc64 target and from the 
go-freebsd-ppc64-bootstrap directory:

Command-line: bin/go

Results:

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         download and install packages and dependencies
install     compile and install packages and dependencies
list        list packages or modules
mod         module 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:

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
packages    package lists and patterns
testflag    testing flags
testfunc    testing functions

Use "go help <topic>" for more information about that topic.

Command-line: bin/go env

Results:

go: cannot find GOROOT directory: /usr/ports/tmp/go-freebsd-ppc64-bootstrap

Setting GOROOT to go-freebsd-ppc64-bootstrap (or any other location), does not 
resolve the problem.  I know that it is finds the "environment", setting 
because whatever I set it to is returned when I execute bin/go env.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/golang-nuts/175674b5-da2a-412b-9439-7e0a379cceb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to