From owner-freebsd-arm@freebsd.org Thu Aug 10 10:34:38 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BACCDCE1E2 for ; Thu, 10 Aug 2017 10:34:38 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-91.reflexion.net [208.70.210.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6007B7EBCC for ; Thu, 10 Aug 2017 10:34:37 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 11710 invoked from network); 10 Aug 2017 10:39:30 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 10 Aug 2017 10:39:30 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.2) with SMTP; Thu, 10 Aug 2017 06:34:36 -0400 (EDT) Received: (qmail 8135 invoked from network); 10 Aug 2017 10:34:35 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 10 Aug 2017 10:34:35 -0000 Received: from [192.168.1.26] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 23ED7EC7B39; Thu, 10 Aug 2017 03:34:35 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: head -r320192 vs. devel/aarch64-xtoolchain-gcc and devel/aarch64-binutils (/usr/ports -r443557): "liblto_plugin.so: error loading plugin: Service unavailable" for .pico link Date: Thu, 10 Aug 2017 03:34:34 -0700 References: <15079239-4CE5-43E9-831D-994ADA0D5213@dsl-only.net> <6CAD4727-7B73-4583-B29B-7A3D071CE78D@dsl-only.net> To: freebsd-arm , FreeBSD Toolchain , FreeBSD Ports In-Reply-To: <6CAD4727-7B73-4583-B29B-7A3D071CE78D@dsl-only.net> Message-Id: X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2017 10:34:38 -0000 [The problem during buildworld via aarch64-xtoolchain-gcc still occurs for -r322287 of head and -r447082 of /usr/ports. It is because of using the default static-link of devel/aarch64-binutils utilities, including /usr/local/bin/aarch64-freebsd-ld . A non-default devel/aarch64-binutils is required.] FYI: # pkg info | grep aarch64 aarch64-binutils-2.28,1 GNU binutils for AArch64 = cross-development aarch64-gcc-6.3.0 Cross GNU Compiler Collection for aarch64 aarch64-xtoolchain-gcc-0.2 Pre seeded toolchain to cross build = FreeBSD base For aarch64-binutils-2.28,1 : Configuration Options =3D=3D=3D> The following configuration options are available for = aarch64-binutils-2.28,1: RELRO=3Doff: enable -z relro in ELF linker by default STATIC=3Don: Build static executables and/or libraries =3D=3D=3D> Use 'make config' to modify these settings It build aarch64-binutils as static by default as of 2017-Feb-22: This is required to build Arm64 packages using QEMU. Poudriere copies the native ld from the host into the jail and uses that during the = build. This only works if ld is static. Reported by: krion Approved by: bapt But for aarch64-xtoolchain-gcc related use the default blocks buildworld = : building shared library libc.so.7 /usr/local/bin/aarch64-freebsd-ld: = /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/liblto_plugin.so:= error loading plugin: Service unavailable collect2: error: ld returned 1 exit status *** [libc.so.7.full] Error code 1 make[4]: stopped in /usr/src/lib/libc .ERROR_TARGET=3D'libc.so.7.full' = .ERROR_META_FILE=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/sr= c/lib/libc/libc.so.7.full.meta' .MAKE.LEVEL=3D'4' MAKEFILE=3D'' . . . # file /usr/local/bin/aarch64-freebsd-ld /usr/local/bin/aarch64-freebsd-ld: ELF 64-bit LSB executable, x86-64, = version 1 (FreeBSD), statically linked, for FreeBSD 12.0 (1200036), = FreeBSD-style, not stripped # ls -lt /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/ total 43913 drwxr-xr-x 2 root wheel 3 Jun 28 17:51 plugin drwxr-xr-x 2 root wheel 6 Jun 28 17:51 install-tools -r-xr-xr-x 1 root wheel 1422072 Jun 28 17:51 lto-wrapper -r-xr-xr-x 1 root wheel 1229416 Jun 28 17:51 collect2 -r-xr-xr-x 1 root wheel 28472516 Jun 28 17:51 lto1 -r-xr-xr-x 1 root wheel 32125603 Jun 28 17:51 cc1plus -r-xr-xr-x 1 root wheel 29707472 Jun 28 17:51 cc1 lrwxr-xr-x 1 root wheel 22 Jun 28 17:51 liblto_plugin.so -> = liblto_plugin.so.0.0.0 lrwxr-xr-x 1 root wheel 22 Jun 28 17:51 liblto_plugin.so.0 -> = liblto_plugin.so.0.0.0 -rwxr-xr-x 1 root wheel 253310 Jun 28 17:51 liblto_plugin.so.0.0.0 # file /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/* /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/cc1: = ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), = dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 12.0 = (1200036), FreeBSD-style, not stripped /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/cc1plus: = ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), = dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 12.0 = (1200036), FreeBSD-style, not stripped /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/collect2: = ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), = dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 12.0 = (1200036), FreeBSD-style, not stripped /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/install-tools: = directory = /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/liblto_plugin.so:= symbolic link to liblto_plugin.so.0.0.0 = /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/liblto_plugin.so.= 0: symbolic link to liblto_plugin.so.0.0.0 = /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/liblto_plugin.so.= 0.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), = dynamically linked, not stripped /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/lto-wrapper: = ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), = dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 12.0 = (1200036), FreeBSD-style, not stripped /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/lto1: = ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), = dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 12.0 = (1200036), FreeBSD-style, not stripped /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/plugin: = directory # ldd = /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/liblto_plugin.so = /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/liblto_plugin.so:= libc.so.7 =3D> /lib/libc.so.7 (0x800825000) # svnlite info /usr/ports/ | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 447082 Last Changed Rev: 447082 =3D=3D=3D Mark Millard markmi at dsl-only.net