[Buildroot] [PATCH] package/gdb: fix gdbserver build for m68k

Peter Korsgaard peter at korsgaard.com
Sat Jun 23 10:52:16 UTC 2018


>>>>> "Romain" == Romain Naour <romain.naour at gmail.com> writes:

 > As for strace [1], when <sys/reg.h> is included after <linux/ptrace.h>,
 > the build fails on m68k with the following diagnostics:

 > In file included from ./../nat/linux-ptrace.h:28:0,
 >                  from linux-low.h:27,
 >                  from linux-m68k-low.c:20:
 > [...]/usr/include/sys/reg.h:26:3: error: expected identifier before numeric constant
 >    PT_D1 = 0,
 >    ^
 > [...]usr/include/sys/reg.h:26:3: error: expected « } » before numeric constant
 > [...]usr/include/sys/reg.h:26:3: error: expected unqualified-id before numeric constant
 > In file included from linux-m68k-low.c:27:0:
 > [...]usr/include/sys/reg.h:99:1: error: expected declaration before « } » token
 >  };
 >  ^

 > Fix this by moving <sys/reg.h> on top of "linux-low.h".

 > Fixes:
 > https://gitlab.com/free-electrons/toolchains-builder/-/jobs/72006385

 > [1] https://github.com/strace/strace/commit/6ebf6c4f9e5ebca123a5b5f24afe67cf0473cf92

 > Signed-off-by: Romain Naour <romain.naour at gmail.com>
 > Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
 > Cc: Waldemar Brodkorb <wbx at openadk.org>
 > ---
 > I'm not taking into acount gdb 7.11 and 7.10 since they will be removed soon.
 > http://patchwork.ozlabs.org/patch/869573/
 > http://patchwork.ozlabs.org/patch/869574/

 > gdb 8.1 needs this patch too.
 > http://patchwork.ozlabs.org/patch/869572/

Committed, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list