Skip to content

build: decide on policy for supporting Go on Microsoft Linux  #16628

Closed
@aeneasr

Description

@aeneasr
  1. What version of Go are you using (go version)?

Go1.4 is installed from binaries: go version go1.4 linux/amd64

  1. What operating system and processor architecture are you using (go env)?

I am trying out the new bash on ubuntu on windows 10 (amd64) feature: https://msdn.microsoft.com/en-us/commandline/wsl/about

$ go env
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/mnt/d/workspace/go"
GORACE=""
GOROOT="/home/foobar/.gvm/gos/go1.4"
GOTOOLDIR="/home/foobar/.gvm/gos/go1.4/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
  1. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    A link on play.golang.org is best.

I tried installing go 1.6 from source using gvm:

# install go1.4 from binaries
gvm install go1.4 -B
gvm use go1.4
export GOROOT_BOOTSTRAP=$GOROOT

# install go1.6 from source
gvm install go1.6
Installing go1.6...
 * Compiling...
ERROR: Failed to compile. Check the logs at /home/foobar/.gvm/logs/go-go1.6-compile.log
ERROR: Failed to use installed version
  1. What did you expect to see?

I expected Go to be compiled

  1. What did you see instead?
$ cat  /home/foobar/.gvm/logs/go-go1.6-compile.log
##### Building Go bootstrap tool.
cmd/dist
# _/home/foobar/.gvm/gos/go1.6/src/cmd/dist
%L%: internal compiler error: fault

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions