I just updated the sources, compiled tip in /home/lucio/Project/go, then 
elsewhere checked out "-b go1.10.1".

It is usually me being distracted, but I tried both

     GOROOT_BOOTSTRAP=/usr/local/go1.9 ./all.bash

and

     export GOROOT_BOOTSTRAP=/usr/local/go1.9
     ./all.bash

yet the build reported using /home/lucio/Project/go to bootstrap.

I have verified that there is NO "bin/" directory in /usr/local/go1.9, 
which may be diagnostic here: it is very helpful but surprising to find 
that "go build" uses the default GOROOT in place of an inappropriate 
GOROOT_BOOTSTRAP. I think at least a warning should be issued.

That explains why TIP was built correctly using the 1.4 version, as 
expected.

In fact, here, lightly edited to remove embarrassing typos is the start of 
the typescript:

$ set|grep GO 
> GOPATH=/home/lucio/Workdir:/home/lucio/Project:/home/lucio/Package
> GOROOT_BOOTSTRAP=/home/lucio/Project/go1.4
> GO_TEST_TIMEOUT_SCALE=10
> $ cd src
> $ cat ../VERSION
> $ GOROOT_BOOTSTRAP=/usr/local/go1.9 ./all.bash 
> Building Go cmd/dist using /home/lucio/Project/go.
> ^C$ export GOROOT_BOOTSTRAP=/usr/local/go1.9
> $ go env
> GOARCH="386"
> GOBIN=""
> GOCACHE="/home/lucio/.cache/go-build"
> GOEXE=""
> GOHOSTARCH="386"
> GOHOSTOS="linux"
> GOOS="linux"
> GOPATH="/home/lucio/Workdir:/home/lucio/Project:/home/lucio/Package"
> GORACE=""
> GOROOT="/home/lucio/Project/go"
> GOTMPDIR=""
> GOTOOLDIR="/home/lucio/Project/go/pkg/tool/linux_386"
> GCCGO="gccgo"
> GO386="sse2"
> CC="gcc"
> CXX="g++"
> CGO_ENABLED="1"
> CGO_CFLAGS="-g -O2"
> CGO_CPPFLAGS=""
> CGO_CXXFLAGS="-g -O2"
> CGO_FFLAGS="-g -O2"
> CGO_LDFLAGS="-g -O2"
> PKG_CONFIG="pkg-config"
> GOGCCFLAGS="-fPIC -m32 -pthread -fmessage-length=0 
> -fdebug-prefix-map=/tmp/go-build861792537=/tmp/go-build 
> -gno-record-gcc-switches"
> $ export GOROOT_BOOTSTRAP=/usr/local/go1.9
> $ ls -l $GOROOT_BOOTSTRAP
> total 164
> drwxr-xr-x  2 root root  4096 Aug 31  2017 api
> -rw-r--r--  1 root root 41258 Aug 31  2017 AUTHORS
> -rw-r--r--  1 root root  1576 Aug 31  2017 CONTRIBUTING.md
> -rw-r--r--  1 root root 55577 Aug 31  2017 CONTRIBUTORS
> drwxr-xr-x  9 root root  4096 Aug 31  2017 doc
> -rw-r--r--  1 root root  5686 Aug 31  2017 favicon.ico
> drwxr-xr-x  3 root root  4096 Aug 31  2017 lib
> -rw-r--r--  1 root root  1479 Aug 31  2017 LICENSE
> drwxr-xr-x 13 root root  4096 Aug 31  2017 misc
> -rw-r--r--  1 root root  1303 Aug 31  2017 PATENTS
> -rw-r--r--  1 root root  1601 Aug 31  2017 README.md
> -rw-r--r--  1 root root    26 Aug 31  2017 robots.txt
> drwxr-xr-x 46 root root  4096 Aug 31  2017 src
> drwxr-xr-x 19 root root 12288 Aug 31  2017 test
> -rw-r--r--  1 root root     5 Aug 31  2017 VERSION
> $ ./all.bash
> Building Go cmd/dist using /home/lucio/Project/go.
> Building Go toolchain1 using /home/lucio/Project/go.
> Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
> Building Go toolchain2 using go_bootstrap and Go toolchain1.
> Building Go toolchain3 using go_bootstrap and Go toolchain2.
> Building packages and commands for linux/386.
> ##### Testing packages.
> ok  archive/tar 0.752s
> [ ... ]


Lucio.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to