public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/101994] New: go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318
@ 2021-08-20  8:29 lebedev.k.m at gmail dot com
  2021-08-20  8:32 ` [Bug go/101994] " lebedev.k.m at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: lebedev.k.m at gmail dot com @ 2021-08-20  8:29 UTC (permalink / raw)
  To: gcc-bugs

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]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318
  2021-08-20  8:29 [Bug go/101994] New: go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318 lebedev.k.m at gmail dot com
@ 2021-08-20  8:32 ` lebedev.k.m at gmail dot com
  2021-08-20 18:37 ` ian at airs dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: lebedev.k.m at gmail dot com @ 2021-08-20  8:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994

--- Comment #1 from Konstantin Lebedev <lebedev.k.m at gmail dot com> ---
go build -gccgoflags "-v"
# github.com/chrislusf/seaweedfs/weed/storage/needle_map
Using built-in specs.
COLLECT_GCC=/usr/local/bin/gccgo
Target: x86_64-linux-gnu
Configured with: /usr/src/gcc/configure --build=x86_64-linux-gnu
--disable-multilib --enable-languages=c,c++,fortran,go
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 (GCC)
COLLECT_GCC_OPTIONS='-c' '-O2' '-g' '-m64'
'-fdebug-prefix-map=/tmp/go-build2182021944=/tmp/go-build'
'-gno-record-gcc-switches'
'-fgo-pkgpath=github.com/chrislusf/seaweedfs/weed/storage/needle_map' '-o'
'/tmp/go-build2182021944/b001/_go_.o' '-I'
'/tmp/go-build2182021944/b001/_importcfgroot_' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64' '-dumpdir' '/tmp/go-build2182021944/b001/'
 /usr/local/libexec/gcc/x86_64-linux-gnu/11.2.0/go1 ./compact_map.go ./memdb.go
./needle_value.go ./needle_value_map.go -quiet -dumpdir $WORK/b001/ -dumpbase
_go_.go -dumpbase-ext .go -m64 -mtune=generic -march=x86-64 -g
-gno-record-gcc-switches -O2 -version
-fdebug-prefix-map=/tmp/go-build2182021944=/tmp/go-build
-fgo-pkgpath=github.com/chrislusf/seaweedfs/weed/storage/needle_map -I
$WORK/b001/_importcfgroot_ -L/usr/local/lib/gcc/x86_64-linux-gnu/11.2.0
-L/usr/local/lib/gcc/x86_64-linux-gnu/11.2.0/../../../../lib64
-L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu
-L/usr/local/lib/gcc/x86_64-linux-gnu/11.2.0/../../.. -o /tmp/ccoXHlsb.s
GNU Go (GCC) version 11.2.0 (x86_64-linux-gnu)
        compiled by GNU C version 11.2.0, GMP version 6.1.0, MPFR version
3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Go (GCC) version 11.2.0 (x86_64-linux-gnu)
        compiled by GNU C version 11.2.0, GMP version 6.1.0, MPFR version
3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318
  2021-08-20  8:29 [Bug go/101994] New: go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318 lebedev.k.m at gmail dot com
  2021-08-20  8:32 ` [Bug go/101994] " lebedev.k.m at gmail dot com
@ 2021-08-20 18:37 ` ian at airs dot com
  2021-08-30  6:29 ` lebedev.k.m at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ian at airs dot com @ 2021-08-20 18:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-08-20
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> ---
Fix is https://golang.org/cl/343873.  Test case is
https://golang.org/cl/343874.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318
  2021-08-20  8:29 [Bug go/101994] New: go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318 lebedev.k.m at gmail dot com
  2021-08-20  8:32 ` [Bug go/101994] " lebedev.k.m at gmail dot com
  2021-08-20 18:37 ` ian at airs dot com
@ 2021-08-30  6:29 ` lebedev.k.m at gmail dot com
  2021-09-11 21:20 ` cvs-commit at gcc dot gnu.org
  2021-09-11 21:21 ` ian at airs dot com
  4 siblings, 0 replies; 6+ messages in thread
From: lebedev.k.m at gmail dot com @ 2021-08-30  6:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994

--- Comment #3 from Konstantin Lebedev <lebedev.k.m at gmail dot com> ---
(In reply to Ian Lance Taylor from comment #2)
> Fix is https://golang.org/cl/343873.  Test case is
> https://golang.org/cl/343874.

Thank you very much
Great job

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318
  2021-08-20  8:29 [Bug go/101994] New: go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318 lebedev.k.m at gmail dot com
                   ` (2 preceding siblings ...)
  2021-08-30  6:29 ` lebedev.k.m at gmail dot com
@ 2021-09-11 21:20 ` cvs-commit at gcc dot gnu.org
  2021-09-11 21:21 ` ian at airs dot com
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-11 21:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Ian Lance Taylor <ian@gcc.gnu.org>:

https://gcc.gnu.org/g:79513dc0b2d980bfd1b109d0d502de487c02b894

commit r12-3462-g79513dc0b2d980bfd1b109d0d502de487c02b894
Author: Ian Lance Taylor <iant@golang.org>
Date:   Fri Aug 20 11:33:29 2021 -0700

    compiler: don't pad zero-sized trailing field in results struct

    Nothing can take the address of that field anyhow.

    Fixes PR go/101994

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/343873

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318
  2021-08-20  8:29 [Bug go/101994] New: go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318 lebedev.k.m at gmail dot com
                   ` (3 preceding siblings ...)
  2021-09-11 21:20 ` cvs-commit at gcc dot gnu.org
@ 2021-09-11 21:21 ` ian at airs dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ian at airs dot com @ 2021-09-11 21:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Ian Lance Taylor <ian at airs dot com> ---
Fixed on tip.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-11 21:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-20  8:29 [Bug go/101994] New: go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318 lebedev.k.m at gmail dot com
2021-08-20  8:32 ` [Bug go/101994] " lebedev.k.m at gmail dot com
2021-08-20 18:37 ` ian at airs dot com
2021-08-30  6:29 ` lebedev.k.m at gmail dot com
2021-09-11 21:20 ` cvs-commit at gcc dot gnu.org
2021-09-11 21:21 ` ian at airs dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).