From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] gdb: Fix compilation for arc-2018.09 in some cases
Date: Mon, 10 Dec 2018 11:47:26 +0100 [thread overview]
Message-ID: <20181210114726.7df0a5fa@windsurf> (raw)
In-Reply-To: <20181210093526.29619-1-abrodkin@synopsys.com>
Hello,
On Mon, 10 Dec 2018 12:35:26 +0300, Alexey Brodkin wrote:
> In some cases which seem to depend on how toolchain headers
> got installed or configured we may face well-known by now failure
> fixed in upstream with [1]:
> ------------------------------>8----------------------------
> In file included from nat/linux-ptrace.c:20:
> nat/linux-ptrace.h:175:22: error: expected identifier before numeric constant
> # define TRAP_HWBKPT 4
> ^
> nat/linux-ptrace.h:175:22: error: expected '}' before numeric constant
> In file included from .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/signal.h:58,
> from build-gnulib/import/signal.h:52,
> from .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/sys/wait.h:36,
> from ./common/gdb_wait.h:23,
> from nat/linux-ptrace.c:24:
> .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/bits/siginfo-consts.h:156:1: note: to match this '{'
> {
> ^
> In file included from nat/linux-ptrace.c:20:
> nat/linux-ptrace.h:175:22: error: expected unqualified-id before numeric constant
> # define TRAP_HWBKPT 4
> ^
> In file included from .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/features.h:428,
> from .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/bits/libc-header-start.h:33,
> from .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/stdio.h:27,
> from build-gnulib/import/stdio.h:43,
> from ./common/common-defs.h:52,
> from nat/linux-ptrace.c:19:
> .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/sys/wait.h:158:1: error: expected declaration before '}' token
> __END_DECLS
> ^~~~~~~~~~~
> ------------------------------>8----------------------------
Applied to master, thanks. I see this patch is in gdb 8.2, so surely
gdb 8.2 is not affected. What about previous gdb releases ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-12-10 10:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-10 9:35 [Buildroot] [PATCH] gdb: Fix compilation for arc-2018.09 in some cases Alexey Brodkin
2018-12-10 10:47 ` Thomas Petazzoni [this message]
2018-12-10 10:52 ` Alexey Brodkin
2018-12-10 11:03 ` Thomas Petazzoni
2018-12-10 11:09 ` Alexey Brodkin
2018-12-10 11:15 ` Thomas Petazzoni
2018-12-10 13:09 ` Alexey Brodkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181210114726.7df0a5fa@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox