Date: Tue, 22 Jan 2019 18:32:08 -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: <2AAC9738-73BD-475A-888A-252EE853A5C6@yahoo.com> In-Reply-To: <4048D2A4-7E14-481C-9B5D-00567BCF4463@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> <20027C29-0093-4001-A135-23783F8B87F3@yahoo.com> <4048D2A4-7E14-481C-9B5D-00567BCF4463@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-Jan-22, at 17:06, Mark Millard <marklmi at yahoo.com> wrote: > On 2019-Jan-22, at 16:28, Mark Millard <marklmi at yahoo.com> wrote: >=20 >=20 >=20 >> On 2019-Jan-22, at 15:52, Mark Millard <marklmi at yahoo.com> wrote: >>=20 >>=20 >>=20 >>> 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: >>=20 >> 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. >>=20 >>> 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, >>> ^ >=20 > Actually: the wrong bfd.h because -I/usr/local/include is too early > and overrides the local -I usage and binutils is installed: >=20 > # find / -name bfd.h -print | less > /usr/local/include/bfd.h > /usr/src/gnu/usr.bin/binutils/libbfd/bfd.h > /root/c_tests/ppc64_tls_git/bfd/bfd.h >=20 > # pkg which /usr/local/include/bfd.h > /usr/local/include/bfd.h was installed by package binutils-2.30_6,1 >=20 > The 2 files do not seem to be equivalent. >=20 >=20 >>> . . . >>> 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.) So I'm trying: # git clean -f # rm */config.cache */*/config.cache # env CPATH=3D/usr/local/include ./configure . . . # env CPATH=3D/usr/local/include gmake . . . in order to try to add paths after the command line -I paths. . . . This looks like it built. I've not used the build yet. =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?2AAC9738-73BD-475A-888A-252EE853A5C6>