From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A11923844051; Sat, 6 Mar 2021 16:35:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A11923844051 From: "kevinb at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug build/27536] New: aarch64-linux-hw-point.c fails to compile after updating to glibc-2.33 Date: Sat, 06 Mar 2021 16:35:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: kevinb at redhat 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sat, 06 Mar 2021 16:35:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27536 Bug ID: 27536 Summary: aarch64-linux-hw-point.c fails to compile after updating to glibc-2.33 Product: gdb Version: 10.1 Status: NEW Severity: critical Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: kevinb at redhat dot com Target Milestone: --- GDB no longer builds on aarch64 (native build) after updating to glibc-2.33. Due to a glibc 2.33 header file change, the file nat/aarch64-linux-hw-point.c no longer builds on OSes using this version of glibc. An enum for PTRACE_SYSEMU is now provided by . In the past, PTRACE_SYSEMU was defined only in . This is what it looks like... In : #define PTRACE_SYSEMU 31 In : enum __ptrace_request { ... PTRACE_SYSEMU =3D 31, #define PT_SYSEMU PTRACE_SYSEMU ... } When and are both included in a source file, we run into the following build problem when the former is included before the latter: In file included from nat/aarch64-linux-hw-point.c:26: /usr/include/sys/ptrace.h:86:3: error: expected identifier before numeric constant 86 | PTRACE_SYSEMU =3D 31, | ^~~~~~~~~~~~~ (There are more errors after this one too.) The file builds without error when is included after . I found that this is already done in nat/aarch64-sve-linux-ptrace.h (which is included by nat/aarch64-linux-ptrace.c). A commit for this bug is already on the trunk: https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D665af52ec2a= 52184d39a76d6e724fa4733dbab3c I'm creating this PR so that it may be backported to gdb-10-branch. --=20 You are receiving this mail because: You are on the CC list for the bug.=