From owner-freebsd-ppc@freebsd.org Sun May 19 08:21:28 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 9819E15A749B for ; Sun, 19 May 2019 08:21:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-21.consmr.mail.gq1.yahoo.com (sonic313-21.consmr.mail.gq1.yahoo.com [98.137.65.84]) (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 DD9E2846E6 for ; Sun, 19 May 2019 08:21:26 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: sdiOAdkVM1mO7I9TsnCwmTaVz29pbaN.xTNrli7M9yizHUZVfPb.1h3JzLWFR1B 5x4nzpRxosbUBc3xnIuZTo1eudYEprA61OtHoO9XhEmXER.6ZQJShPyGLC9idfB.NwY2u2cT1Mcs cUX04T9lG2a_9.3SRW.oxhnzS0B2goibPKwTi5UNKklAyOX4Lbapkznwtys5m4Uq6xDuTJ1QXqsX T65mv2JnvtHsj3VooN8q6h3Mm1E5dL7L_qKIWqxQrTEJPlfMYs7tUue96ohhYYk7KhXnR3Xwmj8d 3j1ZuAjXwfrlnuOWH_16NYx5X8yVkcMs9VKpq6IAKSftKgwXDWqasZj7NJ0W9T_B_PG3IKEJu6bg NKm_t0nSgblL0XDm.3PNB77EMGeXRvWi8dR8isywSVaqBYkjw..H3luVAYGvii6mc1y7bAYj7CaZ lif_civDLBwoDd7piSt6TXaOM6R_b7zOyv64faiZWpocrEClvVX4ZhOvtxC8jr_lG0WO3BtkWbD9 yieiexHOMue4jtgntqPhqHutks2YQrNBQWUF8HMcoNqRVOLzNv0KSHUxccSzLSe9var1RKnvaXdq wrjZTzlWiEBNKXv4yOpPOV8TCDAje.plUSlTmPnUEnX5NDsYzkKB1TIh5mY_n40Mw8fKmeyKKYjj 7YWLtDKIOMwNURWFGUs2TPvjbKYQha36.nFMuxCapSWgxwqDq.tvqv8IXx71eIxLCNO0PvNLdl1H VSnt.9UkVRlAPOo6D5VcnK9bKSEbCZ_jjAzMGZSg4SVQXqK7xTPdyLUNwHAIzgZd.YU2Awb0LySQ cJ4Y4vFW8xDhObVWeHbzuY8inwHqyNUlUgbPz9PvKtKcIfOFWgQD8TQlkLegEA2evftVKEQxlQI2 nz0UYtOo34j2vCySByJVdeSlcMWoiy0PJsBfS9MN2VtS8c0X__O20jWJFLJOiceSniqMcULD4AsG JboUyMkDxWjZeGV3EjwLcCfd9ppf6tIhenVcqOr4whfJsIGUZoCLQt0enQgRx18mCEL0CsXMziwI o4xXLLr.kj6o9EelpRKBAoEvxtqaEqfPhEd4LgCnD6x9dqnx1E4jldbHhTdfpcLSH7QCg.Ka0qya aiw_PWloFsm5ws8yCcAqKQ.J6JgRDRoIwm898Zhq.oxHnaDN62WyyZaGvxfmqtNVJdGxUXJJ3TKs cCs5C895RDasi.lL0rC_6xvzU_du2SYcykpRMNhgEKwwYPVKBskZcWjDXU7U8sPn3VrP3dE2jW8Q mW7rK Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Sun, 19 May 2019 08:21:19 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.103]) ([76.115.7.162]) by smtp429.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 1bd2e176988088c0ef82bbe1b9f0389c; Sun, 19 May 2019 08:21:18 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: FYI: Unable to build -r501994 ports' lang/gcc8 on clang 8 based powerpc64 system (no -O1 use): "does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or ..." From: Mark Millard In-Reply-To: <489849A2-9425-4BD9-8D4F-ACE9ECB6CDA7@yahoo.com> Date: Sun, 19 May 2019 01:21:17 -0700 Cc: ports-list freebsd Content-Transfer-Encoding: quoted-printable Message-Id: References: <489849A2-9425-4BD9-8D4F-ACE9ECB6CDA7@yahoo.com> To: FreeBSD Toolchain , FreeBSD PowerPC ML , "gerald@freebsd.org" X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: DD9E2846E6 X-Spamd-Bar: +++ X-Spamd-Result: default: False [3.81 / 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]; LONG_SUBJ(1.54)[205]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DKIM_TRACE(0.00)[yahoo.com:+]; 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.56)[-0.564,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_SPAM_SHORT(0.91)[0.909,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.64)[ip: (6.45), ipnet: 98.137.64.0/21(1.01), asn: 36647(0.81), country: US(-0.06)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.79)[0.793,0]; RCVD_IN_DNSWL_NONE(0.00)[84.65.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: Sun, 19 May 2019 08:21:28 -0000 [It built with GNU ld (GNU Binutils) 2.32 as ld.] On 2019-May-18, at 21:42, Mark Millard wrote: > On 2019-May-18, at 21:11, Mark Millard wrote: >=20 >> This was in a poudriere bulk build on a head -r347549 based powerpc64 >> system with system clang 8 for cc and c++ and base/binutils >> for ld. I was attempting a build with the -O1 changes disabled. = (Note: >> the system is self hosting for buildworld buildkernel via the clang 8 >> and base/binutils combination.) >>=20 >> So having issues with building lang/gcc8 is not limited to gcc = 4.2.1's >> tool chain for powerpc64. (I've not yet tested -O1 use as the bulk = build >> still has lots of other things to build.) >>=20 >> . . . >> c++: warning: argument unused during compilation: '-nopie' = [-Wunused-command-line-argument] >> /usr/bin/ld: libbackend.a(ipa-inline.o)(.text+0x540): sibling call = optimization to = `_ZN16function_summaryIP14ipa_fn_summaryE3getEP11cgraph_node' does not = allow automatic multiple TOCs; recompile with=20 >> -mminimal-toc or -fno-optimize-sibling-calls, or make = `_ZN16function_summaryIP14ipa_fn_summaryE3getEP11cgraph_node' extern >> /usr/bin/ld: libbackend.a(ipa-inline.o)(.text+0xa58): sibling call = optimization to = `_ZN16function_summaryIP14ipa_fn_summaryE3getEP11cgraph_node' does not = allow automatic multiple TOCs; recompile with=20 >> -mminimal-toc or -fno-optimize-sibling-calls, or make = `_ZN16function_summaryIP14ipa_fn_summaryE3getEP11cgraph_node' extern >> . . . >> /usr/bin/ld: libbackend.a(ipa-inline.o)(.text+0x1150): sibling call = optimization to = `_ZN10hash_tableIN8hash_mapI8int_hashIiLi0ELin1EEP16ipa_call_summary21simp= le_hashmap_traitsI19default_hash_traitsIS2 >> = _ES4_EE10hash_entryE11xcallocatorE19find_slot_with_hashERKij13insert_optio= n' does not allow automatic multiple TOCs; recompile with -mminimal-toc = or -fno-optimize-sibling-calls, or make `_ZN10hash_tab >> = leIN8hash_mapI8int_hashIiLi0ELin1EEP16ipa_call_summary21simple_hashmap_tra= itsI19default_hash_traitsIS2_ES4_EE10hash_entryE11xcallocatorE19find_slot_= with_hashERKij13insert_option' extern >> /usr/bin/ld: libbackend.a(ipa-inline.o)(.text+0x1224): sibling call = optimization to = `_ZN10hash_tableIN8hash_mapI8int_hashIiLi0ELin1EEP16ipa_call_summary21simp= le_hashmap_traitsI19default_hash_traitsIS2 >> = _ES4_EE10hash_entryE11xcallocatorE19find_slot_with_hashERKij13insert_optio= n' does not allow automatic multiple TOCs; recompile with -mminimal-toc = or -fno-optimize-sibling-calls, or make `_ZN10hash_tab >> = leIN8hash_mapI8int_hashIiLi0ELin1EEP16ipa_call_summary21simple_hashmap_tra= itsI19default_hash_traitsIS2_ES4_EE10hash_entryE11xcallocatorE19find_slot_= with_hashERKij13insert_option' extern >> . . . >>=20 >>=20 >> For reference . . . >>=20 >> # cc -v >> FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on = LLVM 8.0.0) >> Target: powerpc64-unknown-freebsd13.0 >> Thread model: posix >> InstalledDir: /usr/bin >>=20 >> # c++ -v >> FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on = LLVM 8.0.0) >> Target: powerpc64-unknown-freebsd13.0 >> Thread model: posix >> InstalledDir: /usr/bin >>=20 >> # ld -v >> GNU ld (GNU Binutils) 2.32 >>=20 >>=20 >> I used: >>=20 >> # svnlite diff /usr/ports/lang/gcc8/ | more >> Index: /usr/ports/lang/gcc8/Makefile >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- /usr/ports/lang/gcc8/Makefile (revision 501994) >> +++ /usr/ports/lang/gcc8/Makefile (working copy) >> @@ -62,7 +62,7 @@ >>=20 >> .elif ${ARCH} =3D=3D powerpc64 >> CONFIGURE_ENV+=3D UNAME_m=3D"powerpc64" >> -MAKE_ARGS+=3D CFLAGS_FOR_TARGET=3D"-O1" CXXFLAGS_FOR_TARGET=3D"-O1"= BOOT_CFLAGS=3D"-O1" # PR235975 >> +#MAKE_ARGS+=3D CFLAGS_FOR_TARGET=3D"-O1" CXXFLAGS_FOR_TARGET=3D"-O1"= BOOT_CFLAGS=3D"-O1" # PR235975 >>=20 >> .elif ${ARCH} =3D=3D powerpcspe >> CONFIGURE_ARGS+=3D --with-cpu=3D8548 --enable-e500_double = --without-fp >> @@ -80,7 +80,7 @@ >> CONFIGURE_ARGS+=3D--with-build-config=3Dbootstrap-debug >> ALL_TARGET=3D bootstrap-lean >> .endif >> -INSTALL_TARGET=3D install-strip >> +#INSTALL_TARGET=3D install-strip >> .if ${UID} !=3D 0 >> BINMODE=3D 755 >> .endif >>=20 >=20 > I managed to not have poudriere using base/binutils but instead: >=20 > # = /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud/usr/bin/ld= -v > GNU ld 2.17.50 [FreeBSD] 2007-07-03 >=20 > cc and c++ were as they should have been: >=20 > # = /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud/usr/bin/cc= -v > FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on = LLVM 8.0.0) > Target: powerpc64-unknown-freebsd13.0 > Thread model: posix > InstalledDir: = /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud/usr/bin >=20 > # = /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud/usr/bin/c+= + -v > FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on = LLVM 8.0.0) > Target: powerpc64-unknown-freebsd13.0 > Thread model: posix > InstalledDir: = /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud/usr/bin >=20 > So I was not testing the tools combination that I thought/intended. Sure enough, with the originally intended linker: # = /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud/usr/bin/ld= -v = GNU ld (GNU Binutils) 2.32 lang/gcc8 then fine via poudriere bulk. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)