From owner-freebsd-ppc@freebsd.org Wed Jan 23 01:06:48 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 8577114B5B2D for ; Wed, 23 Jan 2019 01:06:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-20.consmr.mail.gq1.yahoo.com (sonic302-20.consmr.mail.gq1.yahoo.com [98.137.68.146]) (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 F1D6A827D5 for ; Wed, 23 Jan 2019 01:06:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: v0GKzU8VM1k0XZMzJ7MqtT2re5I6Yf6a3152KeTUzgVu.Xj080b1FSVXdeZmft9 thYWAv80S7YoX9QuByORZdcP0kc6JA_Pe62t_q89EYPlfWTMah5kpgR8WfkXOVV.IJcPZWw9SCye rxH4m9lkEsey9iMm8gZZLgxVxiZyu_mCvraGp57NYo8huVg7ctvNcqnrk9NpORlmhlxQq1Jx1dY3 sUvF9Zx.hgJJjCE_xl8dm0BZpm4bjCXFCj55lrlHTspPDm5a_fkaO_pdu_dwxbmCDtAy9R9CL6NE Yep3GC5J1DkoBv2F6fYnklUwfOvVed0dPW7qtXIan9gQsXk0mScZXFx3WT2IBpZvIRjCU1EMQuf_ h.kzVMFmjF9C0d8KaRW6ZiA9g5liwsOjoEkt3N_6YZlqbLR.HMTBz.6eOXv3eQ6hXSXEDV44__Qw MZqT4VHFuh10LM15_fhsbQ3oJ0GGTVsVh0PCt7TqA99PJujbFk_QSw8Fcrw6l3_VVu2pZyVqRv91 agjIipAuXwunZvv3J9x10vU2ix7IUZo1hApnnE1tCvanUGxgYenb0VgYqfGKV4d7vlHRbd8YYS25 7lm3_5SC2RgjcSEbq5BF00eKmNPGF4RKcaFTylJYilkdF8jTZAVdPsRcHEQmjWAwz_HGY3fV16.9 UZC.ZlQdampNfRGMyqKMhJTNZH_nUIPuocG.aDkZ_5Ej_VmG6Pfw7TUX5hjvPtJRN1z2wfh7lQCP XIO9dCvSTMDzHlxld93ULBSTYyqf89yk27Hm_KYwLJrnYgbVWVCk952.kgPIQpAFWNBRaJBAd_6p CG9EFYjgWrcQ3fN8dWq8Oh5B4zJc.Q1.jPeGvwRILQ.gYS_d1ANu4xVs7Aj0lWhpHf4km1zdnCA9 hAyjCWrW0E4sFL1H0l06SjHiq4txLcL3jCdT73TBLuxqi_ZeXn6ABlIbVUG..IXjCtgD4POKsdu6 6K4_wRpEL9Ecgj0U.F.KnZ..ZyP.cDSzJDw4tMl0v9vq4stEeJ265ptKdTwOZNdftPsZI_FVfF2o fttr30NyKq5gDnGSDayQjScJ0Yn5hnkvtOhlvjGkCxGLyqU3JEVhizmu12kYmYtlwpDQ5GQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Wed, 23 Jan 2019 01:06:39 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.102]) ([67.170.167.181]) by smtp413.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID b8675d4716330c1bd795959674f54d4f; Wed, 23 Jan 2019 01:06:38 +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: <20027C29-0093-4001-A135-23783F8B87F3@yahoo.com> Date: Tue, 22 Jan 2019 17:06:37 -0800 Cc: "freebsd-ppc@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <4048D2A4-7E14-481C-9B5D-00567BCF4463@yahoo.com> References: <19343397-859C-4629-A4A5-B0DCDE25957B@yahoo.com> <5AA68ED2-2615-438B-A6AE-406CBD8E49F7@yahoo.com> <20027C29-0093-4001-A135-23783F8B87F3@yahoo.com> To: John Baldwin X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: F1D6A827D5 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.65 / 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:36647, ipnet:98.137.64.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)[]; NEURAL_HAM_MEDIUM(-0.86)[-0.863,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.22)[0.223,0]; NEURAL_HAM_LONG(-0.98)[-0.981,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.48)[ip: (1.24), ipnet: 98.137.64.0/21(0.69), asn: 36647(0.55), country: US(-0.08)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[146.68.137.98.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 01:06:48 -0000 On 2019-Jan-22, at 16:28, Mark Millard wrote: > 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, >> ^ Actually: the wrong bfd.h because -I/usr/local/include is too early and overrides the local -I usage and binutils is installed: # 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 # pkg which /usr/local/include/bfd.h /usr/local/include/bfd.h was installed by package binutils-2.30_6,1 The 2 files do not seem to be equivalent. >> /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.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)