From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id D5614385DC0A for ; Wed, 29 Apr 2020 10:31:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D5614385DC0A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=fw@deneb.enyo.de Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jTk0O-00017V-CR; Wed, 29 Apr 2020 10:31:52 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1jTk0O-00073R-9o; Wed, 29 Apr 2020 12:31:52 +0200 From: Florian Weimer To: Andrew Pinski via Libc-alpha Subject: Re: glibc master won't build with GCC 10 References: Date: Wed, 29 Apr 2020 12:31:52 +0200 In-Reply-To: (Andrew Pinski via Libc-alpha's message of "Tue, 28 Apr 2020 16:08:37 -0700") Message-ID: <87r1w6d1lz.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2020 10:32:00 -0000 * Andrew Pinski via Libc-alpha: > This should have been fixed already: > https://sourceware.org/bugzilla/show_bug.cgi?id=3D25097 > > Thanks, > Andrew > > On Tue, Apr 28, 2020 at 3:54 PM H.J. Lu via Libc-alpha > wrote: >> >> commit 6d246cb852d3c5ab721dc583112a59ac47dc374e >> Author: Florian Weimer >> Date: Tue Apr 28 12:10:32 2020 +0200 >> >> misc: Remove sstk from the autogenerated system call list >> >> This change should not have an effect because the system call was >> never defined. Also add the misssing attribute_compat_text_section >> attribute to the sstk function (a minor optimization). Also update = the >> NEWS file to document the change. >> >> Fixes commit 9cc93ba0973ad04ee26c515a1552afb85e73c6ba >> ("misc: Turn sstk into a compat symbol"). >> >> won't build with GCC 10: >> >> rtld.c: In function =E2=80=98dl_main=E2=80=99: >> rtld.c:1016:27: error: array subscript =E2=80=98cnt=E2=80=99 is outside = the bounds of >> an interior zero-length array =E2=80=98struct auditstate[0]=E2=80=99 >> [-Werror=3Dzero-length-bounds] >> 1016 | GL(dl_rtld_map).l_audit[cnt].cookie =3D (intptr_t) &GL(dl_rtl= d_map); >> In file included from ../include/dlfcn.h:4, >> from rtld.c:20: >> ../include/link.h:335:7: note: while referencing =E2=80=98l_audit=E2=80= =99 >> 335 | } l_audit[0]; >> | ^~~~~~~ >> cc1: all warnings being treated as errors >> make[5]: *** [../o-iterator.mk:9: >> /export/build/gnu/tools-build/glibc/build-x86_64-linux/elf/rtld.os] >> Error 1 Agreed, this error doesn't look like something from glibc master to me. master does not contain the string =E2=80=9Cl_audit[0]=E2=80=9D anymor= e.