From owner-freebsd-arm@freebsd.org Tue Apr 28 00:15:19 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C139B2CC37C for ; Tue, 28 Apr 2020 00:15:19 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.gq1.yahoo.com (sonic306-21.consmr.mail.gq1.yahoo.com [98.137.68.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 49B2GZ3Y3Nz3xXY for ; Tue, 28 Apr 2020 00:15:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: vufCnZQVM1k0hoJs7ELThbnJQ1A7biaDOrEOW9lUKgMQM6kzJK4B1r3QP3XeS8n eBeKVjspCQxI9dG9y.krM2Whnv5ipzOLgXkNMncSvo1Kvy1TSm1T_bmZJvI6htHLNi92qcvzR1b8 TE_dfhXIUf.I4XlS7PSGuop8z2tvJFVcZQ.Z2qY_wVdOZBa7q3kpbS_2jdrHFLdwubU6CNGI2PKt _f6_9yvIHxzXtQD7mWalFtnBbOIX3ZnFo0Stpi2dxWDoD1skuv_.XRYxyKqvVew4ecXgASo8Pm7U 8XINjMyQx6VDX1yN__bqQD1SoK40Caf9Qkuufq.sben_uudJ3lh3UwIZnwmjPG_wykmXbtuK_SQ7 8piFoNl65y6JonaVIlree50.aeirVO3gYiZh4vEK.1T29OJAZ7hTQMru66HsDZTOcfoDNMfjF9_n f1v40ZMuMRALyVPgHF3MJqkJAfiMJxLcCHP6QXv6gHEpY5eTzXFVCSBGeoxLYE1G7pASYc6o0U9j Gd7RseqU8irS54MAY7ZEsUEEm.WBS01uMvCnf1Df47qYna7N0gZ2HwYWd_irEJ8pWZ5v6TEqcoxL lByrWqs.Nzir8eSLLfnM_9.9GNKtYf_2JosvI8Tkh1lt.aH7sa6v4iJgCB4IcQKS.Pd7Qw84XdpO .Ef8q6BkteSnos2YQN9Hn17EkB_sr7.Aj65tYZxuwpTaYJ3jMpelDB7ryKsdrV2JlTbXQqzqEQ1P byJ.KoHxQcgN9XMbmrUzBKsMnzGdeqR2M5XJ4npRc.18n6zmiVDqzs_S2JjtPkOsOTPqdybpiov5 8VV3GeYD0xOBDdvWaz0HHeaaR.Yl2R0EDizJSCp7nzy8nqgImVRg6AR3.K.5iNj_cSVT5qpR_r1q ZVm1TUc4j.IFiqojdLICaJk8.XndFctfdakcAi0cOWvvzAytHWo_O.eKUET1FqLPoN4dSfYb630b gfE4GhvPgqtn0N01.PJt1qEzz0WLeLiIojEr3UtUZOgdcnoG7OfRkc9OTAH7njRXAOTlsu0tJKcR bt62M38My0NEa_j7yPnlk8dNd9C9RusEhWdW24kscl6S3iIElk2y6u86.cMbF.gMf6QtgaBe6R6M 6Mh_zQcvxLITqxRj4tzeloQQjOn6UgtttTObDw6ICiaiZvAekLuMdNg749moUocCyB7l6BmUDo7Q 3k1FnYuNhTLUPjKGVFVt8nwiOSL5C9a49DI0qE1q5aLz2hZl_O9eDy3JglKp.x.20QTJY7qlvWQ1 X6nfTDqw5y9Vey6IEkosGsFgeR7uJhci9n3O2YRTif2pxgbYF0akQLjCcU9DTeceYP_LVlYDQv1g TRTM5NwF8L1fHJcboT7v4QYACtXRJs6YFnQX6GwWDvpFh4q1BiW_LTe5U.KOUeH0FSXB9pcsDp0i ltBiwHOn8VGwgdzBZKBToIT6FQ2BdCoAIMe.KyvfBbQvp5o7kPs703GLaQg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Tue, 28 Apr 2020 00:15:16 +0000 Received: by smtp411.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 82d425cd48066cf405ac9a65ba3a02f1; Tue, 28 Apr 2020 00:15:13 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: aarch64 host based sysutils/u-boot-{pine64, rock64, rpi[34]} builds fail for: "aarch64-none-elf-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found" From: Mark Millard In-Reply-To: <20200427204606.69157e78e6eb92f3481e47e3@bidouilliste.com> Date: Mon, 27 Apr 2020 17:15:11 -0700 Cc: freebsd-arm , FreeBSD ports Content-Transfer-Encoding: quoted-printable Message-Id: <38BE4488-2BE4-4B9F-BABA-0324B6A7AE8D@yahoo.com> References: <0085757C-02B1-4CB9-9B67-01EB5D6AA86A@yahoo.com> <20200427123246.42e3844f39c349aac81009ff@bidouilliste.com> <20200427204606.69157e78e6eb92f3481e47e3@bidouilliste.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 49B2GZ3Y3Nz3xXY X-Spamd-Bar: - X-Spamd-Result: default: False [-1.33 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; 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.48)[-0.482,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-0.35)[-0.347,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (6.15), ipnet: 98.137.64.0/21(0.83), asn: 36647(0.66), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[84.68.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[84.68.137.98.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2020 00:15:19 -0000 On 2020-Apr-27, at 11:46, Emmanuel Vadot = wrote: > On Mon, 27 Apr 2020 12:32:46 +0200 > Emmanuel Vadot wrote: >=20 >> On Sun, 26 Apr 2020 12:13:46 -0700 >> Mark Millard via freebsd-arm wrote: >>=20 >>>=20 >>>=20 >>> On 2020-Apr-26, at 01:14, Mark Millard wrote: >>>=20 >>>> The below where based on poudriere-devel based build attempts. >>>> /usr/ports/ was based on head -r532972 and aarch64 FreeBSD was >>>> based on head -r360311 . amd64 FreeBSD did not have the build >>>> problem for the aaarch64-targeted u-boot ports. >>>>=20 >>>> The overall build is still going and more aarch64-targeted >>>> u-boot builds might fail. >>>>=20 >>>>=20 >>>> sysutils/u-boot-rpi4 : >>>>=20 >>>> aarch64-none-elf-gcc -x c -DDO_DEPS_ONLY -M -MP -Wall = -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding = -std=3Dgnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -O2 = -fno-stack-protector -fno-delete-null-pointer-checks = -fmacro-prefix-map=3D./=3D -g -fstack-usage -Wno-format-nonliteral = -Werror=3Ddate-time -D__KERNEL__ -D__UBOOT__ -D__ARM__ = -fno-pic -mstrict-align -ffunction-sections -fdata-sections = -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -Iinclude = -I./arch/arm/include -include ./include/linux/kconfig.h -nostdinc = -isystem /usr/local/lib/gcc/aarch64-none-elf/8.4.0/include -MQ = include/config/auto.conf ./include/common.h > include/autoconf.mk.dep || = { rm include/autoconf.mk.dep; false; } >>>> sed -n -f ./tools/scripts/define2mk.sed u-boot.cfg | while read = line; do if [ -n "" ] || ! grep -q "${line%=3D*}=3D" = include/config/auto.conf; then echo "$line"; fi done > = include/autoconf.mk >>>> aarch64-none-elf-gcc: fatal error: -fuse-linker-plugin, but = liblto_plugin.so not found >>>> compilation terminated. >>>> gmake[2]: *** [scripts/Makefile.autoconf:48: = include/autoconf.mk.dep] Error 1 >>>> gmake[2]: *** Waiting for unfinished jobs.... >>>> gmake[1]: *** No rule to make target 'include/config/auto.conf', = needed by 'include/config/uboot.release'. Stop. >>>> gmake[1]: Leaving directory = '/wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2020.04' >>>>=20 >>>>=20 >>>> sysutils/u-boot-rpi3 : >>>>=20 >>>> aarch64-none-elf-gcc -x c -DDO_DEPS_ONLY -M -MP -Wall = -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding = -std=3Dgnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -O2 = -fno-stack-protector -fno-delete-null-pointer-checks = -fmacro-prefix-map=3D./=3D -g -fstack-usage -Wno-format-nonliteral = -Werror=3Ddate-time -D__KERNEL__ -D__UBOOT__ -D__ARM__ = -fno-pic -mstrict-align -ffunction-sections -fdata-sections = -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -Iinclude = -I./arch/arm/include -include ./include/linux/kconfig.h -nostdinc = -isystem /usr/local/lib/gcc/aarch64-none-elf/8.4.0/include -MQ = include/config/auto.conf ./include/common.h > include/autoconf.mk.dep || = { rm include/autoconf.mk.dep; false; } >>>> aarch64-none-elf-gcc: fatal error: -fuse-linker-plugin, but = liblto_plugin.so not found >>>> compilation terminated. >>>> gmake[2]: *** [scripts/Makefile.autoconf:48: = include/autoconf.mk.dep] Error 1 >>>> gmake[2]: *** Waiting for unfinished jobs.... >>>> gmake[1]: *** No rule to make target 'include/config/auto.conf', = needed by 'include/config/uboot.release'. Stop. >>>> gmake[1]: Leaving directory = '/wrkdirs/usr/ports/sysutils/u-boot-rpi3/work/u-boot-2020.04' >>=20 >> The lto plugins didn't used to compile on a native build of gcc >> on aarch64 but I've updated gcc to 8.4 recently, maybe the plugin now >> works or gcc think that it does and try to use it. >> I'll do tests, thanks for the report. >=20 > This is solved with r533162. > I've tested that sysutils/u-boot-pine64-lts build and boots fine. > Let me know if you have still any issues. The poudriere-devel runs based on updating /usr/ports content ended up scheduling 190 package builds, including a couple of llvm*'s. Depending on where in the sequence things happen, it could be some time before having such full-native results. In a amd64->aarch64 pouriere-devel based cross-build, with nxb-bin in use (a faster build environment in my context), I got: . . . gmake[4]: Leaving directory = '/wrkdirs/usr/ports/devel/aarch64-none-elf-gcc/work/.build/aarch64-none-el= f/ilp32/libgcc' gmake[3]: Leaving directory = '/wrkdirs/usr/ports/devel/aarch64-none-elf-gcc/work/.build/aarch64-none-el= f/libgcc' gmake[2]: Leaving directory = '/wrkdirs/usr/ports/devel/aarch64-none-elf-gcc/work/.build/aarch64-none-el= f/libgcc' gmake[1]: Leaving directory = '/wrkdirs/usr/ports/devel/aarch64-none-elf-gcc/work/.build' =3D=3D=3D=3D> Compressing man pages (compress-man) = =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=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> Building package for aarch64-none-elf-gcc-8.4.0_1 pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/aarch64-none-elf-gcc/work/stage/usr/local/lib/gcc= /aarch64-none-elf/8.4.0/plugin/gtype.state:No such file or directory pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/aarch64-none-elf-gcc/work/stage/usr/local/lib/gcc= /aarch64-none-elf/8.4.0/plugin/include/ada/gcc-interface/ada-tree.def:No = such file or direct ory pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/aarch64-none-elf-gcc/work/stage/usr/local/lib/gcc= /aarch64-none-elf/8.4.0/plugin/include/addresses.h:No such file or = directory pkg-static: Unable to access file = /wrkdirs/usr/ports/devel/aarch64-none-elf-gcc/work/stage/usr/local/lib/gcc= /aarch64-none-elf/8.4.0/plugin/include/alias.h:No such file or directory . . . (long list) . . . That leads to: [00:29:06] [04] [00:10:01] Saved devel/aarch64-none-elf-gcc | = aarch64-none-elf-gcc-8.4.0_1 wrkdir to: = /usr/local/poudriere/data/wrkdirs/FBSDFSSDjailCortexA53-default/default/aa= rch64-none-elf-gcc-8.4.0_1.tar [00:29:10] [04] [00:10:05] Finished devel/aarch64-none-elf-gcc | = aarch64-none-elf-gcc-8.4.0_1: Failed: package [00:29:12] [04] [00:10:07] Skipping sysutils/atf-rk3328 | = atf-rk3328-v2.3: Dependent port devel/aarch64-none-elf-gcc | = aarch64-none-elf-gcc-8.4.0_1 failed [00:29:12] [04] [00:10:07] Skipping sysutils/atf-sun50i_a64 | = atf-sun50i_a64-v2.3: Dependent port devel/aarch64-none-elf-gcc | = aarch64-none-elf-gcc-8.4.0_1 failed [00:29:12] [04] [00:10:07] Skipping sysutils/u-boot-pine64 | = u-boot-pine64-2020.04: Dependent port devel/aarch64-none-elf-gcc | = aarch64-none-elf-gcc-8.4.0_1 failed [00:29:12] [04] [00:10:07] Skipping sysutils/u-boot-rock64 | = u-boot-rock64-2020.04: Dependent port devel/aarch64-none-elf-gcc | = aarch64-none-elf-gcc-8.4.0_1 failed [00:29:12] [04] [00:10:07] Skipping sysutils/u-boot-rpi3 | = u-boot-rpi3-2020.04: Dependent port devel/aarch64-none-elf-gcc | = aarch64-none-elf-gcc-8.4.0_1 failed [00:29:12] [04] [00:10:07] Skipping sysutils/u-boot-rpi4 | = u-boot-rpi4-2020.04: Dependent port devel/aarch64-none-elf-gcc | = aarch64-none-elf-gcc-8.4.0_1 failed I'm guessing that the full-native builds will do similarly. But we will eventually see. > Thanks. >=20 >>>=20 >>> The pine64 and rock64 u-boot builds also failed this way. >>> With the rpi[34], those 4 are all the aarch64-targeted >>> u-boot builds that I tried. >>>=20 >>> By contrast, the armv7 u-boot's that I tried all completed: >>> orangepi-plus-2e, rpi2, and sinovoip-bpi-m3. >>=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)