From owner-freebsd-toolchain@freebsd.org Sat Apr 7 22:35:33 2018 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 A1EB5F8B84D; Sat, 7 Apr 2018 22:35:33 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qt0-x236.google.com (mail-qt0-x236.google.com [IPv6:2607:f8b0:400d:c0d::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 322CF87C8F; Sat, 7 Apr 2018 22:35:33 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by mail-qt0-x236.google.com with SMTP id d3so5034735qth.8; Sat, 07 Apr 2018 15:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=lTac+OCRvvHvapXdleMgp0U8asMrlF90RCOxgNb2q4Y=; b=kMoNQ8xtJ/PMWWyawp4BhAWxlZG94TTIRJZQ026BWUk4nup3+8mtIxAHE0eyBz4J8u Cd/050zB8tUx5tBR0DHuzN42N7mgVH9UFJTU8UwIW/tglszVF6qfgzrg3+P13og2/d/C bVu8Wy8XdcOmyJdqr+B8h+tiMub+spiQtO1qaBvDAbEP5rLM2Yfl4kODqGc9Lmmzohs/ pRq6YEPC/OscuA8iVNYh4yx+dN2tHuFHUOLjV0imrT+Sbke+fzyCINI3I+S3euGif+Wo 4WWHcRMbCrmTHCp62PAp9m0BlEieoxCA2AGsrQY+KROxBcGipWs8J9hGG4jCownDDsWG EjFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=lTac+OCRvvHvapXdleMgp0U8asMrlF90RCOxgNb2q4Y=; b=Yok+LdG4QUl6ZSNPNM0PmxqEDgLuKIWl8LbhgcoXKQSx3b6s9iZ7nueIgvBVvkr1wP kMUoIXhe07pBh63uSx7CpQe/GQTKHc2EsU0QFukQJH/876+ymJTExTt25TNEKp6TNaWg X4bgrh40i3Q5qfn1vyFxheA1DFvbPo+iv7zoVcXGCJGNAAtKLrJ/4ai2cBjI4jB3ZpP+ KmLRVk9+3ETwELNchLdRFLRj2boj20TnvtCekpMGkseUCFbZwQWd/e9eqlpifHFLJEIp HbID2mhC3gfR3hxbj6MX1tDmoNGzL5Sr3uH6FbgCX//BvdjuuIJlfe9HGjsrJirqPeOP QlhQ== X-Gm-Message-State: ALQs6tBDBXAZMr3QBEzeWHQdPedbzCECu4clWh195BgPLzGAVlIyUbVZ bW0coXQRvTOmVlPeLPLl2r7von6L X-Google-Smtp-Source: AIpwx4/IVMsvrL8qlYifKFvfmKuXbx5Vim5w7l/84mtjvtv83ibJOCyMLWpnhmhIPg4Vkz8tm5J6Hw== X-Received: by 10.200.22.50 with SMTP id p47mr44544433qtj.135.1523140532454; Sat, 07 Apr 2018 15:35:32 -0700 (PDT) Received: from kan ([2601:18f:802:4680:226:18ff:fe00:232e]) by smtp.gmail.com with ESMTPSA id k50sm11346845qtb.96.2018.04.07.15.35.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 07 Apr 2018 15:35:31 -0700 (PDT) Date: Sat, 7 Apr 2018 18:35:25 -0400 From: Alexander Kabaev To: Mark Millard via freebsd-arm Cc: Mark Millard , freebsd-toolchain@freebsd.org, FreeBSD Ports Subject: Re: Attempting a xtoolchain-gcc head amd64->aarch64 cross buildworld failed for liblto_plugin.so loading error Message-ID: <20180407183525.2e72ee42@kan> In-Reply-To: References: X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/0q2gf+JoULIeb6Raj+5ZdbV"; protocol="application/pgp-signature" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 22:35:33 -0000 --Sig_/0q2gf+JoULIeb6Raj+5ZdbV Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 7 Apr 2018 15:23:50 -0700 Mark Millard via freebsd-arm wrote: > My attempted, xtoolchain-gcc based, amd64->aarch64 > cross-buildworld-buildkernel failed with: >=20 > --- libc.so.7.full --- > /usr/local/bin/aarch64-unknown-freebsd12.0-ld: /usr/local/libexec/gcc/aar= ch64-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 >=20 > (I've not attempted such a build in a long time, so I do not > know how new this is. Historically I've done lots of such > builds. cortex-a53 was specifically targeted here.) >=20 > For reference: >=20 > # uname -apKU > FreeBSD FBSDFSSD 12.0-CURRENT FreeBSD 12.0-CURRENT r332181M amd64 > amd64 1200061 1200061 >=20 > # pkg info "*binutils" > aarch64-binutils-2.30_2,1 > amd64-binutils-2.30_2,1 > binutils-2.30_2,1 > powerpc64-binutils-2.30_2,1 >=20 > # 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: 466704 > Last Changed Rev: 466704 >=20 > # file /usr/local/libexec/gcc/*/*/liblto* > /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, with debug_info, not > stripped /usr/local/libexec/gcc/powerpc64-unknown-freebsd12.0/6.3.0/liblt= o_plugin.so: > symbolic link to > liblto_plugin.so.0.0.0 /usr/local/libexec/gcc/powerpc64-unknown-freebsd12= .0/6.3.0/liblto_plugin.so.0: > symbolic link to > liblto_plugin.so.0.0.0 /usr/local/libexec/gcc/powerpc64-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, with debug_info, not > stripped /usr/local/libexec/gcc/x86_64-unknown-freebsd12.0/6.3.0/liblto_p= lugin.so: > symbolic link to > liblto_plugin.so.0.0.0 /usr/local/libexec/gcc/x86_64-unknown-freebsd12.0/= 6.3.0/liblto_plugin.so.0: > symbolic link to > liblto_plugin.so.0.0.0 /usr/local/libexec/gcc/x86_64-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, with debug_info, not stripped >=20 >=20 >=20 > 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/s= rc/arm64.aarch64/lib/libc/libc.so.7.full.meta' > .MAKE.LEVEL=3D'4' > MAKEFILE=3D'' > .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes > verbose' _ERROR_CMD=3D'@echo building shared library libc.so.7; @rm -f > libc.so.7 libc.so; /usr/local/bin/aarch64-unknown-freebsd12.0-gcc > -mcpu=3Dcortex-a53 > -isystem /usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aa= rch64/tmp/usr/include > -L/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/t= mp/usr/lib > -B/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/t= mp/usr/lib > --sysroot=3D/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64= .aarch64/tmp > -B/usr/local/aarch64-unknown-freebsd12.0/bin/ -nodefaultlibs > -Wl,--version-script=3DVersion.map -shared -Wl,-x -Wl,--fatal-warnings > -Wl,--warn-shared-textrel -o libc.so.7.full -Wl,-soname,libc.so.7 > `NM=3D'/usr/local/aarch64-unknown-freebsd12.0/bin/nm' NMFLAGS=3D'' lorder > machdep_ldisQ.pico . . . wcspbrk.pico wcsrchr.pico wcsspn.pico > wcsstr.pico wcstok.pico wcswidth.pico wcsxfrm.pico wmemchr.pico > wmemcmp.pico wmemcpy.pico wmemmove.pico wmemset.pico | tsort -q` > -lcompiler_rt > -lssp_nonshared;' .CURDIR=3D'/usr/src/lib/libc' .MAKE=3D'make' .OBJDIR=3D= '/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/lib/= libc' .TARGETS=3D'all' > DESTDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.= aarch64/tmp' > LD_LIBRARY_PATH=3D'' MACHINE=3D'arm64' MACHINE_ARCH=3D'aarch64' > MAKEOBJDIRPREFIX=3D'' MAKESYSPATH=3D'/usr/src/share/mk' > MAKE_VERSION=3D'20180222' > PATH=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aar= ch64/tmp/legacy/usr/sbin:/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/us= r/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/cortexA53_xtoolchain-gcc/ar= m64.aarch64/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/cortexA53_xtoolch= ain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/cortexA53= _xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/bin:/sbin:/bin:= /usr/sbin:/usr/bin' > SRCTOP=3D'/usr/src' > OBJTOP=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk /usr/src/share/mk/local= .sys.env.mk /usr/src/share/mk/src.sys.env.mk /root/src.configs/src.conf.cor= texA53-xtoolchain-gcc.amd64-host /usr/src/share/mk/bsd.mkopt.mk /usr/src/sh= are/mk/src.sys.obj.mk /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.s= uffixes.mk /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk /usr/= src/share/mk/src.sys.mk /dev/null /usr/src/lib/libc/Makefile /usr/src/share= /mk/src.opts.mk /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.opts.mk = /usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/bsd.compiler.mk /usr/src/sha= re/mk/bsd.linker.mk /usr/src/lib/libc/aarch64/Makefile.inc /usr/src/lib/lib= c/db/Makefile.inc /usr/src/lib/libc/db/btree/Makefile.inc /usr/src/lib/libc= /db/db/Makefile.inc /usr/src/lib/libc/db/hash/Makefile.inc /usr/src/lib/lib= c/db/man/Makefile.inc /usr/src/lib/libc/db/mpool/Makefile.inc /usr/src/lib/= libc/db/recno/Makefile.inc /usr/src/lib/libc/compat-43/Makefile.inc /usr/sr= c/lib/libc/gdtoa/Makefile.inc /us > r/src/lib/libc/gen/Makefile.inc /usr/src/lib/libc/aarch64/gen/Makefile.in= c /usr/src/lib/libc/gmon/Makefile.inc /usr/src/lib/libc/iconv/Makefile.inc = /usr/src/lib/libc_nonshared/Makefile.iconv /usr/src/lib/libc/inet/Makefile.= inc /usr/src/lib/libc/isc/Makefile.inc /usr/src/lib/libc/locale/Makefile.in= c /usr/src/lib/libc/md/Makefile.inc /usr/src/lib/libc/nameser/Makefile.inc = /usr/src/lib/libc/net/Makefile.inc /usr/src/lib/libc/nls/Makefile.inc /usr/= src/lib/libc/posix1e/Makefile.inc /usr/src/lib/libc/regex/Makefile.inc /usr= /src/lib/libc/resolv/Makefile.inc /usr/src/lib/libc/stdio/Makefile.inc /usr= /src/lib/libc/stdlib/Makefile.inc /usr/src/lib/libc/stdlib/jemalloc/Makefil= e.inc /usr/src/lib/libc/stdtime/Makefile.inc /usr/src/lib/libc/string/Makef= ile.inc /usr/src/lib/libc/aarch64/string/Makefile.inc /usr/src/lib/libc/sys= /Makefile.inc /usr/src/sys/sys/syscall.mk /usr/src/lib/libc/aarch64/sys/Mak= efile.inc /usr/src/lib/libc/secure/Makefile.inc /usr/src/lib/libc/rpc/Makef= ile.inc /usr/src/lib/lib > c/uuid/Makefile.inc /usr/src/lib/libc/xdr/Makefile.inc /usr/src/lib/libc/= yp/Makefile.inc /usr/src/lib/libc/capability/Makefile.inc /usr/src/share/mk= /bsd.lib.mk /usr/src/share/mk/bsd.init.mk /usr/src/share/mk/local.init.mk /= usr/src/share/mk/src.init.mk /usr/src/lib/libc/../Makefile.inc /usr/src/sha= re/mk/bsd.libnames.mk /usr/src/share/mk/src.libnames.mk /usr/src/share/mk/b= sd.symver.mk /usr/src/share/mk/bsd.nls.mk /usr/src/share/mk/bsd.files.mk /u= sr/src/share/mk/bsd.incs.mk /usr/src/share/mk/bsd.confs.mk /usr/src/share/m= k/bsd.links.mk /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-ana= lyze.mk /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk /usr/s= rc/share/mk/bsd.sys.mk' .PATH=3D'. /usr/src/lib/libc /usr/src/lib/libc/db/b= tree /usr/src/lib/libc/db/db /usr/src/lib/libc/db/hash /usr/src/lib/libc/db= /man /usr/src/lib/libc/db/mpool /usr/src/lib/libc/db/recno /usr/src/lib/lib= c/compat-43 /usr/src/lib/libc/gdtoa /usr/src/lib/libc/aarch64/gen /usr/src/= lib/libc/gen /usr/src/contrib/libc-pwcache /usr/src/contrib/libc-vis /usr/s= rc/lib/libc/gmon /usr/src/lib/libc/iconv /usr/src/lib/libc/inet /usr/src/li= b/libc/isc /usr/src/lib/libc/locale /usr/src/lib/libmd /usr/src/lib/libc/na= meser /usr/src/lib/libc/net /usr/src/lib/libc/nls /usr/src/lib/libc/posix1e= /usr/src/lib/libc/regex /usr/src/lib/libc/resolv /usr/src/lib/libc/stdio /= usr/src/lib/libc/stdlib /usr/src/lib/libc/stdlib/jemalloc /usr/src/lib/libc= /stdtime /usr/src/contrib/tzcode/stdtime /usr/src/lib/libc/aarch64/string /= usr/src/lib/libc/string /usr/src/sys/libkern /usr/src/contrib/cortex-string= s/src/aarch64 /usr/src/lib/libc/aarch64/sys /usr/src/lib/libc/sys /usr/src/= lib/libc/secure /usr/src/lib/libc/rpc /usr/src/li > b/libc/. /usr/src/lib/libc/uuid /usr/src/lib/libc/xdr /usr/src/lib/libc/y= p /usr/src/sys/kern /usr/src/lib/libc/capability' > 1 error >=20 >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) >=20 > _______________________________________________ > 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" IIRC, I had to disable LTO plugin in binutils and this need to disable it was there for a while.=20 --=20 Alexander Kabaev --Sig_/0q2gf+JoULIeb6Raj+5ZdbV Content-Type: application/pgp-signature Content-Description: Цифровая подпись OpenPGP -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEExffZlZm2QeE8UVaRBxMimZJ5Ln4FAlrJR61fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM1 RjdEOTk1OTlCNjQxRTEzQzUxNTY5MTA3MTMyMjk5OTI3OTJFN0UACgkQBxMimZJ5 Ln7WBA/8Dq0k23lfNGnqUtXX1VjEs6amJ9jaaflye2Zs/mV6Y8zxZR4GkKCKfLWc LA2spfZWUivMaFfMdBkvMDwSpdGJ0B6b01wYQKmGjx0omg4uIbOiY2yRhr6l+BJI bMmbjA5ysaanSRElwarph8yBPaeHX2D79tExQnghZq2pWsmUHgRQSZmpzvjaA+Yk ymMIGe1jAHYUIzRBwfWch3QS1fKr3oFD0rd+rOcBAJR1gFECVgs++mxkWj6eAgmj dEmng3Umu9hVxY5bFGmqnfoDZmrYYoAJ3PiXtul9l3eV2iOTlWep/ZT7hsMgDxR9 jU8ZcyEamOditroMcvpeUduBo3AQJ3sb7dX3/qsdUqhYTMgC4mEpWIv6SKY790uB ytr35ExxwclI0b2buzF4/zW4JNblCErgfmNyocfDOIbU7R65Xl3WEgkq1POGCWrX 2vc8ZhaSjCATUqlPJ1FeVfoEIuWu+WwBKXd9XfBdy7q7mX3x/1WS6r4IGMNFHh0U f3HnZfmdjzMMHU2t1cgZm9Nxj6I0kQohzCbhIyoO4iNoTMJswdPsWFvgFic//tfl 66QuD4MAJjdJY9cygNJ0StT4hOHSWb6jsqm9HWxRegQ5zCPQrNVQJ3TdpNxFpGIm hqln+MgHz+t7J4JZxPocOcOxHA8n+5tHvafKqQK9KY1dEgfwZHQ= =TP0S -----END PGP SIGNATURE----- --Sig_/0q2gf+JoULIeb6Raj+5ZdbV--