From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4EC8E384840F; Fri, 20 Aug 2021 08:32:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4EC8E384840F From: "lebedev.k.m at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318 Date: Fri, 20 Aug 2021 08:32:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lebedev.k.m at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2021 08:32:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101994 --- Comment #1 from Konstantin Lebedev --- go build -gccgoflags "-v" # github.com/chrislusf/seaweedfs/weed/storage/needle_map Using built-in specs. COLLECT_GCC=3D/usr/local/bin/gccgo Target: x86_64-linux-gnu Configured with: /usr/src/gcc/configure --build=3Dx86_64-linux-gnu --disable-multilib --enable-languages=3Dc,c++,fortran,go Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.2.0 (GCC) COLLECT_GCC_OPTIONS=3D'-c' '-O2' '-g' '-m64' '-fdebug-prefix-map=3D/tmp/go-build2182021944=3D/tmp/go-build' '-gno-record-gcc-switches' '-fgo-pkgpath=3Dgithub.com/chrislusf/seaweedfs/weed/storage/needle_map' '-o' '/tmp/go-build2182021944/b001/_go_.o' '-I' '/tmp/go-build2182021944/b001/_importcfgroot_' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dx86-64' '-dumpdir' '/tmp/go-build2182021944/b0= 01/' /usr/local/libexec/gcc/x86_64-linux-gnu/11.2.0/go1 ./compact_map.go ./memd= b.go ./needle_value.go ./needle_value_map.go -quiet -dumpdir $WORK/b001/ -dumpba= se _go_.go -dumpbase-ext .go -m64 -mtune=3Dgeneric -march=3Dx86-64 -g -gno-record-gcc-switches -O2 -version -fdebug-prefix-map=3D/tmp/go-build2182021944=3D/tmp/go-build -fgo-pkgpath=3Dgithub.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=3D100 --param ggc-min-heapsize=3D131= 072 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=3D100 --param ggc-min-heapsize=3D131= 072 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 for instructions. note: module requires Go 1.17=