From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EFD503844051; Sat, 6 Mar 2021 16:25:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EFD503844051 From: "kevinb at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug build/27535] New: amd64-linux-siginfo.c fails to compile after updating to glibc-2.33 headers Date: Sat, 06 Mar 2021 16:25:09 +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:25:10 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27535 Bug ID: 27535 Summary: amd64-linux-siginfo.c fails to compile after updating to glibc-2.33 headers 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 after updating to glibc-2.33: g++ -D_GLIBCXX_DEBUG -g3 -O0 -I. -I../../gdbserver -I../../gdbserver/../gdb/regformats -I../../gdbserver/.. -I../../gdbserver/../include -I../../gdbserver/../gdb -I../../gdbserver/../gnulib/import -I../gnulib/import -I../../gdbserver/.. = -I.. -pthread -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variab= le -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=3Dmaybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3D3 -Wduplicated-cond -Wshadow=3Dlocal -Wdeprecated-= copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral -DGDBSERVER -E -o nat/amd64-linux-siginfo.i ../../gdbserver/../gdb/nat/amd64-linux-siginfo.c In file included from /usr/include/bits/sigstksz.h:24, from /usr/include/signal.h:315, from ../gnulib/import/signal.h:52, from ../../gdbserver/../gdb/nat/amd64-linux-siginfo.c:20: ../gnulib/import/unistd.h:637:3: error: #error "Please include config.h fir= st." 637 | #error "Please include config.h first." | ^~~~~ The problem is actually gnulib related. It turns out that the glibc headers now pull in (from sigstksz.h, which is now included from signal.= h). In the gdb build, this causes the gnulib version of unistd.h to be included, but gnulib's config.h had not been included first, which is the cause of the error. A fix is already on the trunk: https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D8488c357ce4= fc309d49c7b0224cf9574b68e8116 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.=