From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id EC2F23858C2C; Thu, 9 Sep 2021 22:00:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EC2F23858C2C Received: by mail-ej1-x630.google.com with SMTP id ho42so4925005ejc.9; Thu, 09 Sep 2021 15:00:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3p2XZQ+VYvPvNaRm69xjIqPqJPSAx0pyOm0jiMGGQEM=; b=uPRNzxq5AGzotp/T21WrnWZ0eQpCjLjR3ms6oLtaHUB7CckXjgYGXpVfqa0/P79l6y 93VjA1Fu0AdLD+SSqpPI3LJ9qMfVAhXcIdkoaRKeTUpsTsWoB6gYOGco0nJBxws3rcRT cTYEhlFsxAhbEZbApmxBcUk9b9OM3QfSJIkAjJkUMjEGE9lpWy7OOaHEctFWIMWXRXGP qsPqFf11rJvqplaAO/SjYNm/+mAcgPE0TpDGNfsN1GZdmO/bLgh/oA8bmaPnTs0ZT2RA /MeUj2KaQnwoLNAyqNWx/U4HkvYMS+tcmP02ExWAlMOWvRbRbsGbhnlruEHnMeNJunyJ AbvQ== X-Gm-Message-State: AOAM532x9OzDsE/KFOenV/2+gWY5PaqbpO5W70PN56GbM51f9nM4g2GL GfCWiJH/rj4LaBJBn8m/1yrMz+DH33oU5liEWoT56HQF1Ys= X-Google-Smtp-Source: ABdhPJwiF9HvhWHmNxeslHHAhUy73Xj/a+NW7HGADIEw3wNweC2/bB3RtHnnw+DqDMbMmOs8AdNZGFmceb0qDzsV16I= X-Received: by 2002:a17:906:6717:: with SMTP id a23mr5533534ejp.358.1631224803524; Thu, 09 Sep 2021 15:00:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stafford Horne Date: Fri, 10 Sep 2021 06:59:52 +0900 Message-ID: Subject: Re: [Bug sim/28302] New: [11 Regression] gdb fails to build with glibc 2.34 ( To: doko at debian dot org Cc: gdb-prs@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2021 22:00:06 -0000 I ran into this failure today, there is a discussion about the reason behind glibc making this change. https://public-inbox.org/libc-alpha/87y2ew8i1w.fsf@igel.home/T/ It's kind of hacky but this patch worked as a fix for me. diff --git a/sim/common/gentmap.c b/sim/common/gentmap.c index 9f30e66e378..f690193f471 100644 --- a/sim/common/gentmap.c +++ b/sim/common/gentmap.c @@ -83,6 +83,14 @@ gen_targ_map_c (void) printf ("#include \"targ-vals.h\"\n"); printf ("\n"); + /* Make SIGSTKSZ a constant again. */ + printf ("#ifdef __USE_SC_SIGSTKSZ\n"); + printf ("# undef SIGSTKSZ\n"); + printf ("# define SIGSTKSZ 8192\n"); + printf ("#endif\n"); + + printf ("\n"); + printf ("/* syscall mapping table */\n"); printf ("CB_TARGET_DEFS_MAP cb_init_syscall_map[] =3D {\n"); for (t =3D &sys_tdefs[0]; t->symbol; ++t) On Fri, Sep 3, 2021 at 4:18 PM doko at debian dot org via Gdb-prs wrote: > > https://sourceware.org/bugzilla/show_bug.cgi?id=3D28302 > > Bug ID: 28302 > Summary: [11 Regression] gdb fails to build with glibc 2.34 ( > Product: gdb > Version: 11.1 > Status: NEW > Severity: normal > Priority: P2 > Component: sim > Assignee: unassigned at sourceware dot org > Reporter: doko at debian dot org > CC: vapier at gentoo dot org > Target Milestone: --- > > gdb fails to build on the gdb-11 branch with glibc-2.34, in the sim direc= tory, > at least on arm-linux-gnueabihf and aarch64-linux-gnu: > > In file included from /usr/include/signal.h:328, > from ../../gnulib/import/signal.h:52, > from targ-map.c:7: > targ-map.c:412:17: error: initializer element is not constant > 412 | { "SIGSTKSZ", SIGSTKSZ, TARGET_SIGSTKSZ }, > | ^~~~~~~~ > targ-map.c:412:17: note: (near initialization for > =E2=80=98cb_init_signal_map[18].host_val=E2=80=99) > make[5]: *** [Makefile:522: targ-map.o] Error 1 > make[5]: Leaving directory '/<>/build/default/sim/aarch64' > make[4]: *** [Makefile:1271: all-recursive] Error 1 > make[4]: Leaving directory '/<>/build/default/sim' > make[3]: *** [Makefile:898: all] Error 2 > make[3]: Leaving directory '/<>/build/default/sim' > make[2]: *** [Makefile:8030: all-sim] Error 2 > > configured with > > --build=3Daarch64-linux-gnu --host=3Daarch64-linux-gnu --prefix=3D/usr > --libexecdir=3D"\${prefix}/lib/gdb" --disable-werror --disable-maintainer= -mode > --disable-dependency-tracking --disable-silent-rules --disable-gdbtk > --disable-shared --with-system-readline --with-expat --with-system-zlib > --without-guile --with-debuginfod --with-babeltrace --enable-tui --with-= lzma > --with-python=3Dpython3 --with-xxhash --with-mpfr > > -- > You are receiving this mail because: > You are on the CC list for the bug.