Internal Compiler error when building go1.15 using go1.14.4

224 views
Skip to first unread message

Johann Höchtl

unread,
Aug 28, 2020, 2:38:54 AM8/28/20
to golang-nuts

Since long I am keeping my go installation up to date by compiling from source. Today on my attempt to update from 1.14.4 to 1.15 I triggered this fatal:


GOROOT_BOOTSTRAP=/home/john/opt/go.build/ ./make.bash  
Building Go cmd/dist using /home/john/opt/go.build/. (go1.14.4 linux/amd64)
# runtime
../../go.build/src/runtime/os_linux.go:276:29: internal compiler error: 'getHugePageSize': not lowered: v68, SlicePtr PTR PTR
 
Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new

Before triggering that error I did a git fetch, git checkout go1.15 and then copied my go directory to go.build. I should have copied go to go.build before but my assumption is that the 1.15 sources and 1.14.4 binaries will do no harm to bootstrap.

Is this a known error? I couldn't find a ticket for that searching the tracker with

is:issue  gethugepagesize

Shall I report a new issue?

Thank you, Johann

Sam Mortimer

unread,
Aug 28, 2020, 3:23:47 AM8/28/20
to golang-nuts


On Thursday, August 27, 2020 at 11:38:54 PM UTC-7, Johann Höchtl wrote:

Since long I am keeping my go installation up to date by compiling from source. Today on my attempt to update from 1.14.4 to 1.15 I triggered this fatal:


GOROOT_BOOTSTRAP=/home/john/opt/go.build/ ./make.bash  
Building Go cmd/dist using /home/john/opt/go.build/. (go1.14.4 linux/amd64)
# runtime
../../go.build/src/runtime/os_linux.go:276:29: internal compiler error: 'getHugePageSize': not lowered: v68, SlicePtr PTR PTR
 
Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new

Before triggering that error I did a git fetch, git checkout go1.15 and then copied my go directory to go.build. I should have copied go to go.build before but my assumption is that the 1.15 sources and 1.14.4 binaries will do no harm to bootstrap.

This is your issue.  1.15 runtime (included within 1.15 sources) will not work with 1.14.4 binaries.

Regards,
-Sam.

Johann Höchtl

unread,
Sep 2, 2020, 2:44:12 AM9/2/20
to golang-nuts
Indeed, checking out go1.14.4 (the source code matching the binaries) resulted in successful bootstraping. Still uncertain if an internal compiler error is the correct way to handle this situation.
 
Regards,
-Sam.
Reply all
Reply to author
Forward
0 new messages