Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2019 16:28:45 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        "freebsd-ppc@freebsd.org" <freebsd-ppc@FreeBSD.org>
Subject:   Re: GDB TLS testing
Message-ID:  <20027C29-0093-4001-A135-23783F8B87F3@yahoo.com>
In-Reply-To: <5AA68ED2-2615-438B-A6AE-406CBD8E49F7@yahoo.com>
References:  <b0f5b62f-54fb-309f-a578-7b4d9e340a55@FreeBSD.org> <19343397-859C-4629-A4A5-B0DCDE25957B@yahoo.com> <AB56B3D1-1762-4115-B7B4-91D4B997F1C4@yahoo.com> <eff896f3-e385-9a12-5132-3884e69689ca@FreeBSD.org> <D0B83B01-5428-42F0-B785-221826AF7EC4@yahoo.com> <a1da2471-535d-1497-ddf3-93aa0d29df59@FreeBSD.org> <5AA68ED2-2615-438B-A6AE-406CBD8E49F7@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 2019-Jan-22, at 15:52, Mark Millard <marklmi at yahoo.com> wrote:



> On 2019-Jan-22, at 15:07, John Baldwin <jhb at freebsd.org> wrote:
>=20
>> On 1/22/19 2:56 PM, Mark Millard wrote:
>>>=20
>>> . . .
>>>=20
>>> So I'm trying:
>>>=20
>>> # env CFLAGS=3D"-g -O2 -I/usr/local/include" ./configure
>>> . . .
>>> # rm */config.cache
>>> # make
>>=20
>> Eh, try gmake instead of make.  I'm pretty sure the GDB repository =
requires
>> GNU make.
>=20
> Well, I started over from scratch (empty tree other than .git) and =
using gmake
> got to a use of ATTRIBUTE_UNUSED that failed for lack of such a macro
> definition:

Bad wording of my thought: I was not trying to say that it was certain =
that
there was no definition. It was more like the usage/content being =
appropriate
to also being supported by clang.

> cc -c -g -O2 -I/usr/local/include -DDEFAULT_INLINE=3DPSIM_INLINE_LOCALS =
 -DWITH_HOST_BYTE_ORDER=3DBIG_ENDIAN -DWITH_SMP=3D5          =
-DHAVE_TERMIOS_STRUCTURE -DHAVE_DEVZERO    -I. -I. -I./../../include =
-I../../bfd -I./../../bfd -I../../gdb -I./../../gdb  =
-I./../../gdb/config  -DHAVE_COMMON_FPU -I../common -I./../common =
hw_htab.c
> In file included from hw_htab.c:27:
> /usr/local/include/bfd.h:1665:38: error: expected ')'
> bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr,
>                                      ^
> /usr/local/include/bfd.h:1665:26: note: to match this '('
> bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr,
>                          ^
> /usr/local/include/bfd.h:1668:3: error: use of undeclared identifier =
'ptr'
>   ptr->userdata =3D val;
>   ^
> /usr/local/include/bfd.h:1668:19: error: use of undeclared identifier =
'val'
>   ptr->userdata =3D val;
>                   ^
> /usr/local/include/bfd.h:1673:33: error: expected ')'
> bfd_set_section_vma (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, =
bfd_vma val)
>                                 ^
> /usr/local/include/bfd.h:1673:21: note: to match this '('
> bfd_set_section_vma (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, =
bfd_vma val)
>                     ^
> /usr/local/include/bfd.h:1675:3: error: use of undeclared identifier =
'ptr'
>   ptr->vma =3D ptr->lma =3D val;
>   ^
> /usr/local/include/bfd.h:1675:14: error: use of undeclared identifier =
'ptr'
>   ptr->vma =3D ptr->lma =3D val;
>              ^
> /usr/local/include/bfd.h:1675:25: error: use of undeclared identifier =
'val'
>   ptr->vma =3D ptr->lma =3D val;
>                         ^
> /usr/local/include/bfd.h:1676:3: error: use of undeclared identifier =
'ptr'
>   ptr->user_set_vma =3D TRUE;
>   ^
> /usr/local/include/bfd.h:1681:39: error: expected ')'
> bfd_set_section_alignment (bfd * abfd ATTRIBUTE_UNUSED, asection * =
ptr,
>                                       ^
> /usr/local/include/bfd.h:1681:27: note: to match this '('
> bfd_set_section_alignment (bfd * abfd ATTRIBUTE_UNUSED, asection * =
ptr,
>                           ^
> /usr/local/include/bfd.h:1684:3: error: use of undeclared identifier =
'ptr'
>   ptr->alignment_power =3D val;
>   ^
> /usr/local/include/bfd.h:1684:26: error: use of undeclared identifier =
'val'
>   ptr->alignment_power =3D val;
>                          ^
> /usr/local/include/bfd.h:6764:3: error: type name requires a specifier =
or qualifier
>   ENUM_BITFIELD (bfd_format) format : 3;
>   ^
> /usr/local/include/bfd.h:6764:29: error: expected ';' at end of =
declaration list
>   ENUM_BITFIELD (bfd_format) format : 3;
>                             ^
>                             ;
> /usr/local/include/bfd.h:6767:3: error: type name requires a specifier =
or qualifier
>   ENUM_BITFIELD (bfd_direction) direction : 2;
>   ^
> /usr/local/include/bfd.h:6767:18: error: a parameter list without =
types is only allowed in a function definition
>   ENUM_BITFIELD (bfd_direction) direction : 2;
>                  ^
> /usr/local/include/bfd.h:6767:3: error: duplicate member =
'ENUM_BITFIELD'
>   ENUM_BITFIELD (bfd_direction) direction : 2;
>   ^
> /usr/local/include/bfd.h:6764:3: note: previous declaration is here
>   ENUM_BITFIELD (bfd_format) format : 3;
>   ^
> /usr/local/include/bfd.h:6767:32: error: expected ';' at end of =
declaration list
>   ENUM_BITFIELD (bfd_direction) direction : 2;
>                                ^
>                                ;
> /usr/local/include/bfd.h:6909:3: error: type name requires a specifier =
or qualifier
>   ENUM_BITFIELD (bfd_plugin_format) plugin_format : 2;
>   ^
> /usr/local/include/bfd.h:6909:18: error: a parameter list without =
types is only allowed in a function definition
>   ENUM_BITFIELD (bfd_plugin_format) plugin_format : 2;
>                  ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=3D]
> 20 errors generated.
> gmake[3]: *** [Makefile:158: hw_htab.o] Error 1
> gmake[3]: Leaving directory '/root/c_tests/ppc64_tls_git/sim/ppc'
> gmake[2]: *** [Makefile:129: all] Error 1
> gmake[2]: Leaving directory '/root/c_tests/ppc64_tls_git/sim'
> gmake[1]: *** [Makefile:9532: all-sim] Error 2
> gmake[1]: Leaving directory '/root/c_tests/ppc64_tls_git'
> gmake: *** [Makefile:849: all] Error 2
>=20
>=20
>=20
> (Again: cc here is system clang.)
                                                                         =
  =20




=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20027C29-0093-4001-A135-23783F8B87F3>