https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994
Bug ID: 101994 Summary: go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318 Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: lebedev.k.m at gmail dot com CC: cmang at google dot com Target Milestone: --- docker run -it gcc:11 bash root@6c5083a4faa6:/# git clone https://github.com/chrislusf/seaweedfs Cloning into 'seaweedfs'... remote: Enumerating objects: 46106, done. remote: Counting objects: 100% (1097/1097), done. remote: Compressing objects: 100% (536/536), done. remote: Total 46106 (delta 700), reused 835 (delta 535), pack-reused 45009 Receiving objects: 100% (46106/46106), 39.24 MiB | 1.54 MiB/s, done. Resolving deltas: 100% (32436/32436), done. root@6c5083a4faa6:/# cd seaweedfs/weed/storage/needle_map root@6c5083a4faa6:/seaweedfs/weed/storage/needle_map# go test go: downloading github.com/google/btree v1.0.0 go: downloading github.com/syndtr/goleveldb v1.0.0 go: downloading github.com/spf13/viper v1.4.0 go: downloading github.com/prometheus/client_golang v1.11.0 go: downloading github.com/golang/protobuf v1.4.3 go: downloading google.golang.org/grpc v1.29.1 go: downloading google.golang.org/protobuf v1.26.0-rc.1 go: downloading github.com/fsnotify/fsnotify v1.4.9 go: downloading github.com/hashicorp/hcl v1.0.0 go: downloading github.com/magiconair/properties v1.8.1 go: downloading github.com/mitchellh/mapstructure v1.1.2 go: downloading github.com/pelletier/go-toml v1.7.0 go: downloading github.com/spf13/afero v1.6.0 go: downloading github.com/spf13/cast v1.3.0 go: downloading github.com/spf13/jwalterweatherman v1.1.0 go: downloading github.com/spf13/pflag v1.0.3 go: downloading gopkg.in/yaml.v2 v2.3.0 go: downloading github.com/prometheus/common v0.26.0 go: downloading github.com/prometheus/client_model v0.2.0 go: downloading github.com/beorn7/perks v1.0.1 go: downloading github.com/cespare/xxhash v1.1.0 go: downloading github.com/prometheus/procfs v0.6.0 go: downloading google.golang.org/genproto v0.0.0-20200608115520-7c474a2e3482 go: downloading github.com/golang/snappy v0.0.4 go: downloading github.com/cespare/xxhash/v2 v2.1.1 go: downloading golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d go: downloading golang.org/x/sys v0.0.0-20210817142637-7d9622a276b7 go: downloading golang.org/x/text v0.3.6 go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1 # github.com/chrislusf/seaweedfs/weed/storage/needle_map [github.com/chrislusf/seaweedfs/weed/storage/needle_map.test] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318 0x16a3ed7 internal_error(char const*, ...) ???:0 0x727013 fancy_abort(char const*, int, char const*) ???:0 0x7f4369 Return_statement::do_get_backend(Translate_context*) ???:0 0x7a5033 Block::get_backend(Translate_context*) ???:0 0x7e26cc Block_statement::do_get_backend(Translate_context*) ???:0 0x7a5033 Block::get_backend(Translate_context*) ???:0 0x7a5c33 Function::build(Gogo*, Named_object*) ???:0 0x7af247 Gogo::write_globals() ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. note: module requires Go 1.17 FAIL github.com/chrislusf/seaweedfs/weed/storage/needle_map [build failed]