From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) by sourceware.org (Postfix) with ESMTPS id 91B24385DC0B for ; Tue, 28 Apr 2020 23:08:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 91B24385DC0B Received: by mail-vs1-xe34.google.com with SMTP id h30so103504vsr.5 for ; Tue, 28 Apr 2020 16:08:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eC5h8B0SVBjRkYMhEfx2qWQ+eWkhWlDQ2QPPKhU/6ww=; b=lhz3IdqjR8etFQ5HiRhlr9Z9KNPRjC2lvi+lQI6IRUOsNSiGnGGvOQesSVeoBdtAhO 2hoiONEVxqkk4Y6zF4CQYmCgTJotLZxgiHavxV4yutTamMNCv3KIRWRre21tZGDTFpT+ nPDMDg4/N8EhLHfyzfQF20MHzOQjytmnLM92WDKoVozhZ0q6MJMy+jRdT5Qeu6SoRXqb JFROX8sFzWa4LxNGCb5Qfe21V+HJcT9mjGAtOb69G6TS5RWj9A2Xn33RWCY7ntG6ERE5 kwJkygiGGoMcmFnTiCrmfTdWmhmPzIHcLWqUtoOUsqhfmdc3hoV1f777APxDjD/OKRYk aJBg== X-Gm-Message-State: AGi0PuaTSsdH7jmKK3oVTLXng6B2FZANt7ECctWtr08IFLsqMLSM6h+n JLiEd7iMH4Ni1cJfUwyUUNgaI76JAoC8v6vrSRE= X-Google-Smtp-Source: APiQypLZLLkUdE1Wiyvo0sfbkBDDh2r1m/exaTIG38fnqb1z02/+q4g9zgpPqnIsEsrGT2m3T6+J2w4WqcopMNICXEk= X-Received: by 2002:a67:fad8:: with SMTP id g24mr22649821vsq.204.1588115329149; Tue, 28 Apr 2020 16:08:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrew Pinski Date: Tue, 28 Apr 2020 16:08:37 -0700 Message-ID: Subject: Re: glibc master won't build with GCC 10 To: "H.J. Lu" Cc: GNU C Library Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, 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: Tue, 28 Apr 2020 23:08:50 -0000 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 t= he > 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 t= he 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_rtld= _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 > > > -- > H.J.