From owner-freebsd-arm@freebsd.org Mon Apr 27 18:46:13 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 71EE52C241B; Mon, 27 Apr 2020 18:46:13 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 499tyr00Htz4SbW; Mon, 27 Apr 2020 18:46:11 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1588013169; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DZP8sHqwUFdXMi5lpGduBbOidz7Gq0Lzt2vMzrjQQQ4=; b=Iqxaz5TQvekOwMITT4u9QCKSG9glnHhf460yLLYu1jC1kv3hWTIFom2Wgdao/QEuDkjCu/ HnfWaOaTxVQ9w1RK9Bz0BNGxfRKViKrw3HazvIkgksQgxZrfPePYORA1XCJZ82y1e4uDU0 1S1Qro8MN7OpzU/geSJsQwPj/Tb2TLY= Received: from skull.home.blih.net (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 5d895652 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 27 Apr 2020 18:46:09 +0000 (UTC) Date: Mon, 27 Apr 2020 20:46:06 +0200 From: Emmanuel Vadot To: Mark Millard Cc: Mark Millard via freebsd-arm , FreeBSD ports 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" Message-Id: <20200427204606.69157e78e6eb92f3481e47e3@bidouilliste.com> In-Reply-To: <20200427123246.42e3844f39c349aac81009ff@bidouilliste.com> References: <0085757C-02B1-4CB9-9B67-01EB5D6AA86A@yahoo.com> <20200427123246.42e3844f39c349aac81009ff@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 499tyr00Htz4SbW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=Iqxaz5TQ; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.91 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.41)[ip: (-9.31), ipnet: 212.83.128.0/19(1.83), asn: 12876(0.42), country: FR(0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; 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: Mon, 27 Apr 2020 18:46:13 -0000 On Mon, 27 Apr 2020 12:32:46 +0200 Emmanuel Vadot wrote: > On Sun, 26 Apr 2020 12:13:46 -0700 > Mark Millard via freebsd-arm wrote: > > > > > > > On 2020-Apr-26, at 01:14, Mark Millard wrote: > > > > > 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. > > > > > > The overall build is still going and more aarch64-targeted > > > u-boot builds might fail. > > > > > > > > > sysutils/u-boot-rpi4 : > > > > > > aarch64-none-elf-gcc -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -O2 -fno-stack-protector -fno-delete-null-pointer-checks -fmacro-prefix-map=./= -g -fstack-usage -Wno-format-nonliteral -Werror=date-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%=*}=" 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' > > > > > > > > > sysutils/u-boot-rpi3 : > > > > > > aarch64-none-elf-gcc -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -O2 -fno-stack-protector -fno-delete-null-pointer-checks -fmacro-prefix-map=./= -g -fstack-usage -Wno-format-nonliteral -Werror=date-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' > > 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. 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. Thanks. > > > > 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. > > > > By contrast, the armv7 u-boot's that I tried all completed: > > orangepi-plus-2e, rpi2, and sinovoip-bpi-m3. > > > > > > === > > Mark Millard > > marklmi at yahoo.com > > ( dsl-only.net went > > away in early 2018-Mar) > > > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > > -- > Emmanuel Vadot > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- Emmanuel Vadot