Bug 1956733 - Internal compiler error in gcc-go when compiling spf13/viper
Summary: Internal compiler error in gcc-go when compiling spf13/viper
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: golang
Version: 34
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Alejandro Sáez Morollón
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-04 10:18 UTC by Robert Mijakovic
Modified: 2021-05-04 10:18 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.