From owner-freebsd-toolchain@freebsd.org Sun May 19 04:42:46 2019 Return-Path: Delivered-To: freebsd-toolchain@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 54C7D15A2BA1 for ; Sun, 19 May 2019 04:42:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-23.consmr.mail.gq1.yahoo.com (sonic304-23.consmr.mail.gq1.yahoo.com [98.137.68.204]) (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 7FA467679D for ; Sun, 19 May 2019 04:42:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: fctmQ9wVM1lCgE7xE73BggQKrCjqNAMVie.zgGK6xfNgaPJZIXcqMLV6z5sDqAv oZUP6p.wEhHpZDn_eoyNLs1QqrkCmGoEYHEr73BVgMPcSiWOI9Z24ruzAucCc4lfNOxZvXlVH1nl 3b42P9uPge6GRCzyQzR6ocSFaZflPlbrAX6bXkr1uvA7tO4aOqIZK2MOa.u1m05JAcDkWSgjNkM4 vQB5RNmHOgBJx.uVjntXAsmPMquMbclWVaLgHWoQjXrGPbnwQn0ARMDyJLUN3EAyKYgFiB4C9oCe L6y4zrsAH.ByITCx0XJPnfxLHU6nP.i7sFhCY5D7PPsmxGudFry.8F7uTvYB.Ssokes2qzqzKPnH wi_BSf3eY4K5KoDsMsj.2aUKZ6dCjrkfhjtgqXzM2dm8UBfTSDl43b9kJIyKA7__XX7FDaMCBN2K s.igXC6ugJIGXIk3MzMDKKz3IkyvfVcKwD2PuCsoDp8LaTCqz_BAWFFh1ohtbyf_DIKmwmnyKVRU 6bd1CkJvqq_VWcz_LawHhzCtDKQ.D9xaYJ6URWqV.0BNF0ptQDqsrmF3R77moscyfex16xr8CBhA FIzx_2elhJKFsukLN3hML.YI_Z26frpWcDeZhHO5fumbrJ03eEe1p1T8aeLHE3iGqw9zHzH5oSXY qZjmo3TCCAh9RpA6sYCQhlceLjFF34dVsy572WRiIy2CX8oVDfQY2HN1AECb.Nf___HSR2VXZO6I 4Zz53cyytMfS.aaB0CVLseI7MQRFLisjL_nRFfDcgALSv7grlIiCZ9er1k7EJNkFyA3RMdD.517I d1C2rxy2yPlNPTDtPsF79baLef9.YG3dyXuvEi3OQ.Z38TqXGi5EkGB1TC5PMq7o18eyDoyebiYV SYDbGtsM9Y23lCEvFZNfKoXBt5Y5vH6zmC8pW1x1F5QeO5jRcUEJ2TD0aF8EUrXsJeE2_OLdRwJb RuPAxy1CuHL8QGEOGokS5nh0wW7.nqaELFgCAKEQmkb7ImxmZho3LfLzDmuDogOoNv7g1IRhM4kk 8oVLoptVJGHVrnRi2uLD0rLcy1zSE981XValxaD1Q8Ogyf4deTK6bbno.NlrTh_3D6yBgF5V3AQz HLEGfaBpf0cxUyRDpYvD4u5ZTzMUUt8EO4256l5k7ZzidkrrPvVmENHTt91f4jAeljoNX7R1OgZr AOg33BgU8SidHErQmul88TIErdkT6VSdaCsIG2sf0mzGZrbRgVpqalzcPSarpYBq.inCgXVauWun xVPA- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sun, 19 May 2019 04:42:37 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.103]) ([76.115.7.162]) by smtp411.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 1573a22a9d03a888e9fbdcae5d14331d; Sun, 19 May 2019 04:42:33 +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: Date: Sat, 18 May 2019 21:42:32 -0700 Cc: ports-list freebsd Content-Transfer-Encoding: quoted-printable Message-Id: <489849A2-9425-4BD9-8D4F-ACE9ECB6CDA7@yahoo.com> References: To: FreeBSD Toolchain , FreeBSD PowerPC ML , "gerald@freebsd.org" X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 7FA467679D X-Spamd-Bar: ++++ X-Spamd-Result: default: False [4.52 / 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.21)[-0.210,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.76)[0.759,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(2.08)[ip: (8.64), 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.87)[0.866,0]; RCVD_IN_DNSWL_NONE(0.00)[204.68.137.98.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 May 2019 04:42:46 -0000 On 2019-May-18, at 21:11, Mark Millard wrote: > 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 I managed to not have poudriere using base/binutils but instead: # = /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud/usr/bin/ld= -v GNU ld 2.17.50 [FreeBSD] 2007-07-03 cc and c++ were as they should have been: # = /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 # = /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 So I was not testing the tools combination that I thought/intended. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)