This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb-7.12.1 for arm-rtems4.12 fails to build on FreeBSD 11.0
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Chris Johns <chrisj at rtems dot org>
- Cc: "gdb\@sourceware.org" <gdb at sourceware dot org>
- Date: Tue, 28 Feb 2017 10:42:36 +0000
- Subject: Re: gdb-7.12.1 for arm-rtems4.12 fails to build on FreeBSD 11.0
- Authentication-results: sourceware.org; auth=none
- References: <99cb977b-7c3d-098f-0c97-175ae737b806@rtems.org>
Chris Johns <chrisj@rtems.org> writes:
> I am getting the following build failure on FreeBSD 11.0:
>
> In file included from ../../gdb-7.12.1/gdb/arch/arm.c:20:
> In file included from ../../gdb-7.12.1/gdb/common/common-defs.h:31:
> In file included from build-gnulib/import/stdio.h:53:
> build-gnulib/import/stddef.h:104:3: error: typedef redefinition with
> different types ('union max_align_t' vs 'long double')
> } max_align_t;
> ^
> /usr/include/c++/v1/stddef.h:57:21: note: previous definition is here
> typedef long double max_align_t;
> ^
> It seems build-gnulib/import/stddef.h is created assuming there is no
> host provided version. I cannot figure out how the configure phase
> test works and why this is happening.
>
> Any hints?
Looks a gnulib issue to me. We upgrade gnulib after 7.12 release to fix
this issue. https://sourceware.org/ml/gdb-patches/2016-10/msg00320.html
Does GDB mainline fail also?
--
Yao (齐尧)