https://bugzilla.redhat.com/show_bug.cgi?id=1405688
Bug ID: 1405688 Summary: go1: internal compiler error: in do_get_backend Product: Fedora Version: 24 Component: golang Assignee: vbatts@redhat.com Reporter: dridi.boukelmoune@gmail.com QA Contact: extras-qa@fedoraproject.org CC: admiller@redhat.com, amurdaca@redhat.com, golang-updates@lists.fedoraproject.org, jcajka@redhat.com, lemenkov@gmail.com, renich@woralelandia.com, s@shk.io, vbatts@redhat.com
Created attachment 1232848 --> https://bugzilla.redhat.com/attachment.cgi?id=1232848&action=edit The go snippet
Description of problem:
go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:8352
Version-Release number of selected component (if applicable):
$ rpm -qa golang gcc gcc-c++ gcc-c++-6.2.1-2.fc24.x86_64 golang-1.6.4-2.fc24.x86_64 gcc-6.2.1-2.fc24.x86_64
How reproducible:
Always.
Steps to Reproduce:
Attached is the go snippet from https://stackoverflow.com/questions/9203526/mapping-an-array-to-a-file-via-m...
https://bugzilla.redhat.com/show_bug.cgi?id=1405688
Vincent Batts vbatts@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |WORKSFORME Last Closed| |2017-01-25 08:55:53
--- Comment #1 from Vincent Batts vbatts@redhat.com --- I've just tried this on a clean f24 with latest updates and it does not fail. ``` -bash-4.3# go build -x -v app.go
WORK=/tmp/go-build224186443
command-line-arguments
mkdir -p $WORK/command-line-arguments/_obj/
mkdir -p $WORK/command-line-arguments/_obj/exe/
cd /root
/usr/lib/golang/pkg/tool/linux_amd64/compile -o $WORK/command-line-arguments.a -trimpath $WORK -p main -complete -buildid 4c77b9903fcb697d3446b41b6b8de5fd0ac273e0 -D _/root -I $WORK -pack ./app.go
cd . /usr/lib/golang/pkg/tool/linux_amd64/link -o $WORK/command-line-arguments/_obj/exe/a.out -L $WORK -extld=gcc -buildmode=exe -buildid=4c77b9903fcb697d3446b41b6b8de5fd0ac273e0 $WORK/command-line-arguments.a cp $WORK/command-line-arguments/_obj/exe/a.out app ```
And it runs successfully as well.
``` -bash-4.3# rpm -q golang gcc gcc-c++ golang-1.6.4-2.fc24.x86_64 gcc-6.3.1-1.fc24.x86_64 package gcc-c++ is not installed ```
Perhaps the gcc update solved this issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1405688
Dridi Boukelmoune dridi.boukelmoune@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |NEW CC| |davejohansen@gmail.com, | |jakub@redhat.com, | |jwakely@redhat.com, | |law@redhat.com, | |mpolacek@redhat.com Component|golang |gcc Version|24 |25 Resolution|WORKSFORME |--- Assignee|vbatts@redhat.com |jakub@redhat.com Keywords| |Reopened
--- Comment #2 from Dridi Boukelmoune dridi.boukelmoune@gmail.com --- Hello,
It still fails for me on f25 with up-to-date packages. After some research, it turns out that I have the gcc-go package installed, and it transparently (read, without telling me) sets itself as the preferred /usr/bin/go command.
I have now set the regular go compiler as my go command:
$ sudo update-alternatives --display go go - status is manual. link currently points to /usr/lib/golang/bin/go /usr/lib/golang/bin/go - priority 90 slave gofmt: /usr/lib/golang/bin/gofmt /usr/bin/go.gcc - priority 92 slave gofmt: /usr/bin/gofmt.gcc Current `best' version is /usr/bin/go.gcc.
If I use the compiler from the gcc-go package it fails with the same error:
$ go.gcc build go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:8352
I'm reopening this ticket and changing the component from golang to gcc.
https://bugzilla.redhat.com/show_bug.cgi?id=1405688
--- Comment #3 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1405688
Dridi Boukelmoune dridi.boukelmoune@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |CURRENTRELEASE Last Closed|2017-01-25 08:55:53 |2017-12-10 15:57:02
--- Comment #4 from Dridi Boukelmoune dridi.boukelmoune@gmail.com --- It appears to be fixed in f27, not waiting for the f25 EOL!
golang-updates@lists.stg.fedoraproject.org