From owner-freebsd-ppc@freebsd.org Wed Jan 23 02:32:23 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2098F14B77C6 for ; Wed, 23 Jan 2019 02:32:23 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-22.consmr.mail.ne1.yahoo.com (sonic314-22.consmr.mail.ne1.yahoo.com [66.163.189.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3231D8511A for ; Wed, 23 Jan 2019 02:32:22 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: dqikWTsVM1kxByHb5M4ly1lcnMExhusX0tAFDrjxlcjmagyte.jD0m.Me8mkdSy PWtn5CKKvhJ.z7RhhBpX.teaRJg0dp9k364260Dstgl0VV61x2HBYOCrO.qwv9FasIrvN9jCn47u BaPz_Mz7zJGTbAzhzYnt_UMxHvGZKJl4gcgyhJefCBMxWfMlAru7Z73CYDLExBnqYmr1sVlMu1VS lVchFBNLjgRYB1kgqKxC5Jxvs2.yLZX9frQVQo1alZbINhyNTKcKQJEGkzQklJ19_9Kv7CWSsWQt qW4swadYaG1b82cZImKc7HCpn0h4ztSPx7o1zWay7Atis5ZpQ0Cc58DCcZFgH4LO3v4j8nRS40.y zc8StASkT4wdi1XNBfUoJzddWtoXzglyGZJhRwd88dEZh3pW5PYgYrcac75hQK02OkW00_dWm5Y7 2lCEpJQVL4eQbM1DnN0CC7McS08NnjuUzVwKCu6bPAG_xap2Fs1I_Lvn9XtVgZKc7FtEZWky01s1 gVo15Z9J7RRhvlJQeOw_yFORkoe8kZC.LBSIwNpWwnDsqRTp9dUhRK7JALBaCIliLBfhhsLT06p7 zJrZArxZyOy7Zng6sY6Ic8p3l7Mm_DFQ1utN7NebhJy5PGQDn9x6P4tZ_nHIj3XuMhN_yX00AtzN YAOb7hNy8GGLYMFijbE2OtNL_JPbQKHU58RwzXRRwOKVpJUwMI1.jKKPrJ04o5OcLfvUeEgWHF__ oqPg3kYq9ynShhmuxeqxDupNpGA1S4xvzwkfsin3narwwtlMOa9Ya4EaCrm5ZtNYWvoPOfIXLfuC HEkTcfR0T.8t1c78Qnxy59plc3x_j_0EWRr29d2TXFnBHc.kAsbJJOom79wYKlibYH7II689_35I 8qHkE3dcBg31TeETAiwBx8x03uDeA5gFHqL4Cwyor9LCH5hjqSHV0jkO8RePQe0IVe6KhpqA5lNX Wkat1dBVevPlRO7p3_4TdT81kAHbT04xm5SgVrIk6CMpoo6CWufd1C6xUfnjAsuWlOcr7RrW7NrJ IRLjbTboZACVaO8nfqI9T_2.GUigZ4yXFQc1.EJg0Df_9gahXWgNq8vj4OLFBOhJ3h5k8 Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Wed, 23 Jan 2019 02:32:15 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.102]) ([67.170.167.181]) by smtp403.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 024e1f3df822dc454b0aec0e77d175df; Wed, 23 Jan 2019 02:32:10 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: GDB TLS testing From: Mark Millard In-Reply-To: <4048D2A4-7E14-481C-9B5D-00567BCF4463@yahoo.com> Date: Tue, 22 Jan 2019 18:32:08 -0800 Cc: "freebsd-ppc@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <2AAC9738-73BD-475A-888A-252EE853A5C6@yahoo.com> References: <19343397-859C-4629-A4A5-B0DCDE25957B@yahoo.com> <5AA68ED2-2615-438B-A6AE-406CBD8E49F7@yahoo.com> <20027C29-0093-4001-A135-23783F8B87F3@yahoo.com> <4048D2A4-7E14-481C-9B5D-00567BCF4463@yahoo.com> To: John Baldwin X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 3231D8511A X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.74 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.99)[0.988,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.54)[ip: (5.80), ipnet: 66.163.184.0/21(1.10), asn: 36646(0.88), country: US(-0.08)]; NEURAL_SPAM_MEDIUM(0.31)[0.305,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.42)[0.419,0]; RCVD_IN_DNSWL_NONE(0.00)[148.189.163.66.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2019 02:32:23 -0000 On 2019-Jan-22, at 17:06, Mark Millard wrote: > On 2019-Jan-22, at 16:28, Mark Millard wrote: >=20 >=20 >=20 >> On 2019-Jan-22, at 15:52, Mark Millard wrote: >>=20 >>=20 >>=20 >>> On 2019-Jan-22, at 15:07, John Baldwin 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)