From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E40D3858C60; Fri, 8 Sep 2023 20:08:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E40D3858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694203715; bh=BtQeXAK8gXH7l7PvVKhxp27SLKNZ25coNCGyMcLF9Qo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CDYOTk4xQJnszsaZAvT6kJU9I0EJ4AVwrcYqxpTO3NQpJjGIjNNB8ZfbmEkCERZWD SIBdlxow/LbNALeOGfzPwKgWKdG5THuuLQ8CmWnw0gI72jDhJ535hIGcLt9u7Gs3zH SCZKFUnCGRPxwkeoeSi8IOG7IenyukHfMuaADBeA= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/111330] [13 Regression] Bootstrap failure building SeqFile.lo Date: Fri, 08 Sep 2023 20:08:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111330 --- Comment #3 from Jakub Jelinek --- So, narrowed it down to Fedora build doing essentially (stripped down from = all languages etc.): CC=3Dgcc \ CXX=3Dg++ \ CFLAGS=3D'-O2 -fexceptions -g -grecord-gcc-switches -Wall -Wformat-security -Wp,-D_GLIBCXX_ASSERTIONS -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' \ CXXFLAGS=3D' -O2 -g -grecord-gcc-switches -Wformat -Wformat-security -Wp,-D_GLIBCXX_ASSERTIONS -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection ' \ XCFLAGS=3D'-O2 -fexceptions -g -grecord-gcc-switches -Wall -Wformat-security -Wp,-D_GLIBCXX_ASSERTIONS -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' \ TCFLAGS=3D'-O2 -fexceptions -g -grecord-gcc-switches -Wall -Wformat-security -Wp,-D_GLIBCXX_ASSERTIONS -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' \ ../configure --disable-bootstrap --enable-languages=3Dc,c++,m2,lto --enable-checking=3Drelease --enable-multilib --disable-libsanitizer --with-gcc-major-version-only --enable-plugin --enable-gnu-indirect-function --enable-cet --with-tune=3Dgeneric --with-arch_32=3Di686 --build=3Dx86_64-redhat-linux make -j32 'BOOT_CFLAGS=3D-O2 -fexceptions -g -grecord-gcc-switches -Wall -Wformat-security -Wp,-D_GLIBCXX_ASSERTIONS -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS_FOR_TARGET=3D-Wl,-z,relro,-z,now And what matters is using -Wall during the build in *FLAGS. /builddir/build/BUILD/gcc-13.2.1-20230728/obj-x86_64-redhat-linux/./gcc/gm2 -B/builddir/build/BUILD/gcc-13.2.1-20230728/obj-x86_64-redhat-linux/./gcc/ = -c -O2 -Wall -fm2-pathname=3Dm2iso -I. -Ilibm2iso -I/builddir/build/BUILD/gcc-13.2.1-20230728/gcc/m2/gm2-libs-iso -fm2-pathname=3Dm2pim -I/builddir/build/BUILD/gcc-13.2.1-20230728/gcc/m2/gm= 2-libs -fiso -fextended-opaque -fm2-g -g -Wreturn-type -fcase -fm2-prefix=3Dm2iso ../../../../libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SeqFile.mod -fPIC -D= PIC -o .libs/SeqFile.o; echo $? ../../gcc/m2/gm2-compiler/M2SymInit.def:1:case statement has no matching selection 1 while /builddir/build/BUILD/gcc-13.2.1-20230728/obj-x86_64-redhat-linux/./gcc/gm2 -B/builddir/build/BUILD/gcc-13.2.1-20230728/obj-x86_64-redhat-linux/./gcc/ = -c -O2 -fm2-pathname=3Dm2iso -I. -Ilibm2iso -I/builddir/build/BUILD/gcc-13.2.1-20230728/gcc/m2/gm2-libs-iso -fm2-pathname=3Dm2pim -I/builddir/build/BUILD/gcc-13.2.1-20230728/gcc/m2/gm= 2-libs -fiso -fextended-opaque -fm2-g -g -Wreturn-type -fcase -fm2-prefix=3Dm2iso ../../../../libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SeqFile.mod -fPIC -D= PIC -o .libs/SeqFile.o; echo $? 0 Shouldn't -Wall affect just warnings (without -Werror) and not whether compilation succeeds or fails?=