From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A2E34384B801; Thu, 9 Sep 2021 22:00:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2E34384B801 From: "shorne at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug sim/28302] [11 Regression] gdb fails to build with glibc 2.34 ( Date: Thu, 09 Sep 2021 22:00:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: sim X-Bugzilla-Version: 11.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: shorne at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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:07 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28302 --- Comment #3 from Stafford Horne --- 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=