Bug 1956733

Summary: Internal compiler error in gcc-go when compiling spf13/viper
Product: [Fedora] Fedora Reporter: Robert Mijakovic <robert.mijakovic>
Component: golangAssignee: Alejandro Sáez Morollón <asm>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: amurdaca, asm, deparker, jakob, jcajka, lemenkov, renich, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-07 20:06:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Mijakovic 2021-05-04 10:18:15 UTC
Description of problem:
Installing assh dependencies results in Go's internal compiler error in add_method_declaration.

Version-Release number of selected component (if applicable):
$ go version
go version go1.16.3 gccgo (GCC) 11.1.1 20210428 (Red Hat 11.1.1-1) linux/amd64

How reproducible:
Always reproducible

Steps to Reproduce:
1. $ sudo dnf install gcc-go
2. $ go get -u moul.io/assh/v2

Actual results:
```
$ go get -u moul.io/assh/v2
# github.com/spf13/viper
go1: internal compiler error: in add_method_declaration, at go/gofrontend/types.cc:10277
0x158ef89 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1], diagnostic_t)
	???:0
0xf3433f internal_error(char const*, ...)
	???:0
0xf3441a fancy_abort(char const*, int, char const*)
	???:0
0x67baeb Named_type::add_method_declaration(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Package*, Function_type*, Location) [clone .cold]
	???:0
0x136e0a7 Import::import_func(Package*)
	???:0
0x136ffca Import::read_named_type(int)
	???:0
0x1370477 Import::parse_type(int)
	???:0
0x1370673 Import::type_for_index(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool*)
	???:0
0x1370bda Import::read_type()
	???:0
0x13cbc0d Pointer_type::do_import(Import*)
	???:0
0x13703ce Import::parse_type(int)
	???:0
0x1370673 Import::type_for_index(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool*)
	???:0
0x1370bda Import::read_type()
	???:0
0x13c1514 Struct_type::do_import(Import*)
	???:0
0x13703ce Import::parse_type(int)
	???:0
0x1370673 Import::type_for_index(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, bool*)
	???:0
0x1370bda Import::read_type()
	???:0
0x1370108 Import::read_named_type(int)
	???:0
0x1370477 Import::parse_type(int)
	???:0
0x1371563 Import::read_types()
	???:0

Expected results:
To build assh with it's all dependencies.

Additional info:
Available on request.

Comment 1 Ben Cotton 2022-05-12 14:58:26 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
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
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 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 Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Ben Cotton 2022-06-07 20:06:03 UTC
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07.

Fedora Linux 34 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release.

Thank you for reporting this bug and we are sorry it could not be fixed.