From owner-freebsd-arm@freebsd.org Sat Apr 7 22:24:00 2018 Return-Path: Delivered-To: freebsd-arm@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 7EEE5F8ADE5 for ; Sat, 7 Apr 2018 22:24:00 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic316-21.consmr.mail.ne1.yahoo.com (sonic316-21.consmr.mail.ne1.yahoo.com [66.163.187.147]) (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 1674181498 for ; Sat, 7 Apr 2018 22:23:59 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: rSRY_AEVM1mLnVPAp5NGHOivbBAQwY3u4jsEbLeHCV43OecNj9XgnjMcaDjQ9bS XwMszTfCnCbIZqsWkU0p3KJ5pTGBbkq2TkBtDCp4T75O5y6SqfL6afZJE5p9JLbvNIKFb26MPXFY 7S6f5WLWrVaDL9tN8oCdhMXG31EXnK4LITvoemsVZ1G7HuyvW01ucExdZEdb_ZUMsEAVYa.TBiVs QouKuRhQ8DtdCrYD67rkGweS0sYy0d1Hjm32tdpCk5JChLd3h2LW6CfCPrmOIT3Y5UEIMtXdbnaF WT4gnWeve6fCNUZAGnv0w23_ALo62E0H9sWWfCb4fOSxICi.XyPnm5fitxq4d2037aK0uhTnNCtI ine_2H1.ZwKZ6ddpd_qIKFkms9r56PSc2oFbESngFqKahGxL20QjoTdBxtBTUuKSySCWlKWOTCEB 60jrRPF6JJ0R.kU3jluu_7yw7yGkgz8d72jGsItx7vs0UPqKlNFkFnNfv_RM8g4WCfqbUdIw9xKW RM2W_gLmqTKzb.hXyDDZKkmgQjQxEUypCZ36P_Bsg50d8rOFVtq_melM- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Sat, 7 Apr 2018 22:23:53 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp421.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 74dfe8ce1c4eb01dafbb95d8ef92c27d; Sat, 07 Apr 2018 22:23:51 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Attempting a xtoolchain-gcc head amd64->aarch64 cross buildworld failed for liblto_plugin.so loading error Message-Id: Date: Sat, 7 Apr 2018 15:23:50 -0700 To: freebsd-toolchain@freebsd.org, FreeBSD Ports , freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 22:24:00 -0000 My attempted, xtoolchain-gcc based, amd64->aarch64 = cross-buildworld-buildkernel failed with: --- libc.so.7.full --- /usr/local/bin/aarch64-unknown-freebsd12.0-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 (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.) For reference: # uname -apKU FreeBSD FBSDFSSD 12.0-CURRENT FreeBSD 12.0-CURRENT r332181M amd64 = amd64 1200061 1200061 # 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 # 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 # 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/liblto_plugin.s= o: symbolic link to liblto_plugin.so.0.0.0 = /usr/local/libexec/gcc/powerpc64-unknown-freebsd12.0/6.3.0/liblto_plugin.s= o.0: symbolic link to liblto_plugin.so.0.0.0 = /usr/local/libexec/gcc/powerpc64-unknown-freebsd12.0/6.3.0/liblto_plugin.s= o.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_plugin.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 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/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.aarch64/tmp/= usr/include = -L/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tm= p/usr/lib = -B/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tm= p/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.a= arch64/lib/libc' .TARGETS=3D'all' = DESTDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64/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.aarc= h64/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/a= rm64.aarch64/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/cortexA53_xtool= chain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/cortex= A53_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.aa= rch64' .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.cortexA53-xtoolchain-gcc.amd64-host = /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk = /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.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/share/mk/bsd.linker.mk = /usr/src/lib/libc/aarch64/Makefile.inc /usr/src/lib/libc/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/libc/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/src/lib/libc/gdtoa/Makefile.inc /usr/src/lib/libc/gen/Makefile.inc = /usr/src/lib/libc/aarch64/gen/Makefile.inc = /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.inc /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/Makefile.inc = /usr/src/lib/libc/stdtime/Makefile.inc = /usr/src/lib/libc/string/Makefile.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/Makefile.inc = /usr/src/lib/libc/secure/Makefile.inc /usr/src/lib/libc/rpc/Makefile.inc = /usr/src/lib/libc/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/share/mk/bsd.libnames.mk /usr/src/share/mk/src.libnames.mk = /usr/src/share/mk/bsd.symver.mk /usr/src/share/mk/bsd.nls.mk = /usr/src/share/mk/bsd.files.mk /usr/src/share/mk/bsd.incs.mk = /usr/src/share/mk/bsd.confs.mk /usr/src/share/mk/bsd.links.mk = /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk = /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk = /usr/src/share/mk/bsd.sys.mk' .PATH=3D'. /usr/src/lib/libc /usr/src/lib/libc/db/btree = /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/libc/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/src/lib/libc/gmon /usr/src/lib/libc/iconv = /usr/src/lib/libc/inet /usr/src/lib/libc/isc /usr/src/lib/libc/locale = /usr/src/lib/libmd /usr/src/lib/libc/nameser /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-strings/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/lib/libc/. = /usr/src/lib/libc/uuid /usr/src/lib/libc/xdr /usr/src/lib/libc/yp = /usr/src/sys/kern /usr/src/lib/libc/capability' 1 error =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)