MSpanList_Insert on installing Go with gvm

As trying to compile and install Go 1.10 or later, I just faced

% gvm install go1.10
Installing go1.10...
* Compiling...
failed MSpanList_Insert 0x1604000 0x1d937bc57c9a 0x0
fatal error: MSpanList_Insert

so sad

TL;DR

  • Just use go1.8 for bootstrap of your compiling.
  • In case go1.8 cannot be installed because of the same error, just install go1.8 as a binary.

Logs

% gvm list
gvm gos (installed)
go1.4
% gvm use go1.4
Now using version go1.4
% gvm install go1.11
Installing go1.11...
* Compiling...
failed MSpanList_Insert 0x5105000 0x1d3f30fb6b0b 0x0
fatal error: MSpanList_Insert

so sad

% gvm uninstall go1.4
Uninstalled version go1.4
% gvm install go1.8
Installing go1.8...
* Compiling...
/Users/hiromu/.gvm/scripts/install: line 84: go: command not found
ERROR: Failed to compile. Check the logs at /Users/hiromu/.gvm/logs/go-go1.8-compile.log
ERROR: Failed to use installed version

Ok, then binary install

% gvm install go1.8 -B
Installing go1.8 from binary source
% gvm use go1.8
Now using version go1.8
% gvm install go1.10
Installing go1.10...
* Compiling...
go1.10 successfully installed!

Seems working!

% gvm list

gvm gos (installed)
   go1.10
=> go1.8
% gvm use go1.10
Now using version go1.10
% go version
go version go1.10 darwin/amd64
% gvm install go1.11
Installing go1.11...
* Compiling...
go1.11 successfully installed!
% gvm list

gvm gos (installed)
=> go1.10
go1.11
go1.8
% gvm use go1.11
Now using version go1.11
% go version
go version go1.11 darwin/amd64

Perfect!

Enjoy ;)