From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5245B158091 for ; Mon, 6 Jun 2022 11:18:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 78ADFE091A; Mon, 6 Jun 2022 11:18:11 +0000 (UTC) Received: from n.hanft.de (n.hanft.de [IPv6:2001:780:125:1::e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 00071E085A for ; Mon, 6 Jun 2022 11:18:10 +0000 (UTC) Received: from home01.hanft.de (home01.hanft.de [IPv6:2003:a:1137:e000:a:f:5:15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by n.hanft.de (Postfix) with ESMTPS id 500C41B81F1; Mon, 6 Jun 2022 13:18:09 +0200 (CEST) Subject: Re: [gentoo-user] Does gcc 11.3 need a special/new kernel version? To: gentoo-user@lists.gentoo.org References: <668baecd-6185-e108-4eae-f06effec7155@hanft.de> From: Matthias Hanft Message-ID: <2011a733-d551-8a5f-0a56-1ebba66acec0@hanft.de> Date: Mon, 6 Jun 2022 13:18:06 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 SeaMonkey/2.49.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 83a62a32-1ea8-4737-8bf7-790057bd5150 X-Archives-Hash: fc904409d69388d1781fd40fe2f3b2d1 Mickaƫl Bucas wrote: > > It seems that the command line to compile "genautomata" contains useful information to understand the cause. > Can you find it in the GCC compile logs ? I think the command which triggers the error is "build/genautomata ...": make[3]: Entering directory '/var/tmp/portage/sys-devel/gcc-11.3.0/work/build/gcc' build/genautomata /var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/common.md /var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/config/i386/i386.md \ insn-conditions.md > tmp-automata.c make[3]: *** [Makefile:2456: s-automata] Error 139 make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.3.0/work/build/gcc' make[3]: *** Waiting for unfinished jobs.... dmesg: [10789.040085] genautomata[5619]: segfault at bfa80ffc ip b775f23b sp bfa81000 error 6 in genautomata[b7755000+44000] Former lines in "build.log" containing "genautomata" are just these two: i686-pc-linux-gnu-g++ -std=c++11 -c -DEXTRA_OPTIONS -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc -I/var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/build -I/var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/../include -I/var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/../libcpp/include \ -o build/genautomata.o /var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/gcc/genautomata.c and, a bit later i686-pc-linux-gnu-g++ -std=c++11 -DEXTRA_OPTIONS -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc -Wl,-O1 -Wl,--as-needed -o build/genautomata \ build/genautomata.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/hash-table.o build/sort.o build/read-md.o build/errors.o ../build-i686-pc-linux-gnu/libiberty/libiberty.a -lm which both just look normal, IMHO (no error or other message around them). Meanwhile, I have updated several other Gentoo systems (32 and 64 bit) which all worked well. It's just that one system which brings that error. I have also found https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79827 and made "ulimit -s 32768" (instead of 8192), but to no avail. The only difference is the kernel (4.0.5 on the old system; all others have 4.14.83 oder even some 5.x kernel). On the other hand: the difference between gcc 11.2.1 (which works fine) and 11.3.0 shouldn't be that big?! -Matt