From owner-freebsd-arm@freebsd.org Wed Apr 29 10:50:43 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 F1A022AFC1F; Wed, 29 Apr 2020 10:50:43 +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 49BwKF5wlHz43QN; Wed, 29 Apr 2020 10:50:41 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1588157439; 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=4gMKw4NdIECLBxaezQxu4GJ8vNW69yiKMTOOTA1Mxnc=; b=S9CwuK/pCanCAB043SOTCdWd5Deu1Qv9g6Y5vYvMNAvtO/3PANkT/wBYXgEUmKoc6gLtya CoyVa8Z6WVEcv15bQJJx+GaF2U7EdCk8oJASVD2pjFkdu8IzTLMcjclXsVglccAF9pUygB WRWba62jAEPPh2OX1M6OFEDxM6E10rY= 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 a16617f8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 29 Apr 2020 10:50:39 +0000 (UTC) Date: Wed, 29 Apr 2020 12:50:36 +0200 From: Emmanuel Vadot To: Mark Millard Cc: 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: <20200429125036.fbd1c0679e677260e6868eb7@bidouilliste.com> In-Reply-To: <7F714D23-99F3-4C31-92F1-A4ED2EABE93B@yahoo.com> References: <0085757C-02B1-4CB9-9B67-01EB5D6AA86A@yahoo.com> <20200427123246.42e3844f39c349aac81009ff@bidouilliste.com> <20200427204606.69157e78e6eb92f3481e47e3@bidouilliste.com> <38BE4488-2BE4-4B9F-BABA-0324B6A7AE8D@yahoo.com> <90693ED6-E93D-4105-8B63-F77313F77079@yahoo.com> <20200428163906.a5081a0493970fb4556fe08b@bidouilliste.com> <13AAC979-927E-43BA-BF16-64C41546A690@yahoo.com> <7CD48F1B-7405-454A-BEFE-3B17D321D89F@yahoo.com> <1D414E35-6785-4D15-A798-DFB34C2ACC34@yahoo.com> <7F714D23-99F3-4C31-92F1-A4ED2EABE93B@yahoo.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: 49BwKF5wlHz43QN X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=S9CwuK/p; 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.94 / 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.44)[ip: (-9.40), ipnet: 212.83.128.0/19(1.79), 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: Wed, 29 Apr 2020 10:50:44 -0000 On Wed, 29 Apr 2020 01:36:01 -0700 Mark Millard wrote: > [Build successes for building via poudriere-devel. > Message history removed.] > > Based on (some whitespace details might not survive): > > # svnlite diff /usr/ports/devel/aarch64-none-elf-gcc/ > Index: /usr/ports/devel/aarch64-none-elf-gcc/Makefile > =================================================================== > --- /usr/ports/devel/aarch64-none-elf-gcc/Makefile (revision 533162) > +++ /usr/ports/devel/aarch64-none-elf-gcc/Makefile (working copy) > @@ -19,7 +19,8 @@ > LIB_DEPENDS= libgmp.so:math/gmp \ > libmpfr.so:math/mpfr \ > libmpc.so:math/mpc > -BUILD_DEPENDS= ${GCC_TARGET}-as:devel/binutils@${PKGNAMEPREFIX:C/-$//:C/-/_/g} > +BUILD_DEPENDS= ${GCC_TARGET}-as:devel/binutils@${PKGNAMEPREFIX:C/-$//:C/-/_/g} \ > + objdump:devel/binutils That brings binutils-native as a build depend, which works on aarch64 but I don't think it will for cross building. But yes the solution is something like that, the "missing" objdump seems to make gcc not building the plugins. > RUN_DEPENDS= ${GCC_TARGET}-as:devel/binutils@${PKGNAMEPREFIX:C/-$//:C/-/_/g} > > USES= gmake iconv libtool tar:xz makeinfo compiler:c++11-lang > > > Things then finish (extracted messages from an amd64->aarch64 poudriere-based > nxb-bin involved cross-build): > > [00:14:17] [04] [00:13:40] Finished devel/aarch64-none-elf-gcc | aarch64-none-elf-gcc-8.4.0_1: Success > [00:15:16] [02] [00:00:57] Finished sysutils/atf-sun50i_a64 | atf-sun50i_a64-v2.3: Success > [00:15:19] [01] [00:01:00] Finished sysutils/atf-rk3328 | atf-rk3328-v2.3: Success > [00:16:10] [05] [00:15:33] Finished devel/arm-none-eabi-gcc | arm-none-eabi-gcc-8.4.0_1: Success > [00:21:34] [04] [00:07:15] Finished sysutils/u-boot-rpi4 | u-boot-rpi4-2020.04: Success > [00:21:56] [03] [00:07:37] Finished sysutils/u-boot-rpi3 | u-boot-rpi3-2020.04: Success > [00:30:31] [06] [00:14:19] Finished sysutils/u-boot-rpi2 | u-boot-rpi2-2020.04: Success > [00:35:15] [07] [00:19:03] Finished sysutils/u-boot-sinovoip-bpi-m3 | u-boot-sinovoip-bpi-m3-2020.04: Success > [00:35:34] [01] [00:20:15] Finished sysutils/u-boot-rock64 | u-boot-rock64-2020.04: Success > [00:35:41] [05] [00:19:29] Finished sysutils/u-boot-orangepi-plus-2e | u-boot-orangepi-plus-2e-2020.04: Success > > (u-boot-pine64 still in process due to MAKE_JOBS_UNSAFE=yes use.) > > aarch64 native builds also finished (not shown). > > amd64 poudriere-based builds (non-qemu) also finished: > > [00:03:22] [01] [00:03:08] Finished devel/aarch64-none-elf-gcc | aarch64-none-elf-gcc-8.4.0_1: Success > [00:03:31] [03] [00:00:08] Finished sysutils/atf-sun50i_a64 | atf-sun50i_a64-v2.3: Success > [00:03:31] [01] [00:00:08] Finished sysutils/atf-rk3328 | atf-rk3328-v2.3: Success > [00:03:33] [02] [00:03:19] Finished devel/arm-none-eabi-gcc | arm-none-eabi-gcc-8.4.0_1: Success > [00:04:00] [04] [00:00:37] Finished sysutils/u-boot-rpi3 | u-boot-rpi3-2020.04: Success > [00:04:01] [05] [00:00:38] Finished sysutils/u-boot-rpi4 | u-boot-rpi4-2020.04: Success > [00:04:18] [06] [00:00:44] Finished sysutils/u-boot-rpi2 | u-boot-rpi2-2020.04: Success > [00:04:40] [02] [00:01:06] Finished sysutils/u-boot-orangepi-plus-2e | u-boot-orangepi-plus-2e-2020.04: Success > [00:04:41] [07] [00:01:07] Finished sysutils/u-boot-sinovoip-bpi-m3 | u-boot-sinovoip-bpi-m3-2020.04: Success > [00:04:42] [01] [00:01:10] Finished sysutils/u-boot-rock64 | u-boot-rock64-2020.04: Success > [00:06:46] [03] [00:03:15] Finished sysutils/u-boot-pine64 | u-boot-pine64-2020.04: Success > > > > FYI: > > # svnlite diff /usr/ports/sysutils/u-boot-pine64/ > Index: /usr/ports/sysutils/u-boot-pine64/Makefile > =================================================================== > --- /usr/ports/sysutils/u-boot-pine64/Makefile (revision 533162) > +++ /usr/ports/sysutils/u-boot-pine64/Makefile (working copy) > @@ -6,4 +6,6 @@ > BOARD_CONFIG= pine64_plus_defconfig > FAMILY= allwinner64 > > +MAKE_JOBS_UNSAFE=yes > + > .include "${MASTERDIR}/Makefile" > > based on historical build-race problems specific to pine64's > u-boot build. But it makes the qemu-based build take a very > long time. > > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > -- Emmanuel Vadot