Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2018 17:04:18 -0700
From:      Mark Millard <marklmi26-fbsd@yahoo.com>
To:        freebsd-toolchain@freebsd.org, freebsd-arm@FreeBSD.org, freebsd-ports@freebsd.org
Subject:   head amd64->aarch64 buildkernel: clang using aarch64-binutils gets /tmp/cloudabi_vdso_armv6_on_64bit-2f26ed.o: error adding symbols: File in wrong format
Message-ID:  <AD749B7B-625A-4385-B833-C4E25687030D@yahoo.com>

next in thread | raw e-mail | index | archive | help
(Context: buildworld completed before builkernel started.)

My attempt to do buildworld buildkernel via clang but using
aarch64-binutils got the following failure during buildkernel.

(Note the use of: -B/usr/local/aarch64-unknown-freebsd12.0/bin/
for clang.)

--- cloudabi32_vdso.o ---
/tmp/cloudabi_vdso_armv6_on_64bit-2f26ed.o: error adding symbols: File =
in wrong format
cc: error: linker command failed with exit code 1 (use -v to see =
invocation)
*** [cloudabi32_vdso.o] Error code 1

make[4]: stopped in /usr/src/sys/modules/cloudabi32
.ERROR_TARGET=3D'cloudabi32_vdso.o'
=
.ERROR_META_FILE=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/s=
rc/arm64.aarch64/sys/GENERIC-NODBG/modules/usr/src/sys/modules/cloudabi32/=
cloudabi32_vdso.o.meta'
.MAKE.LEVEL=3D'4'
MAKEFILE=3D''
.MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes =
verbose'
_ERROR_CMD=3D'cc -B/usr/local/aarch64-unknown-freebsd12.0/bin/ =
-mcpu=3Dcortex-a53 -target aarch64-unknown-freebsd12.0 =
--sysroot=3D/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64=
.aarch64/tmp -B/usr/local/aarch64-unknown-freebsd12.0/bin/ -x =
assembler-with-cpp -m32 -shared -nostdinc -nostdlib  =
-Wl,-T/usr/src/sys/compat/cloudabi/cloudabi_vdso.lds  =
/usr/src/sys/contrib/cloudabi/cloudabi_vdso_armv6_on_64bit.S -o =
cloudabi32_vdso.o;'
.CURDIR=3D'/usr/src/sys/modules/cloudabi32'
.MAKE=3D'make'
=
.OBJDIR=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.=
aarch64/sys/GENERIC-NODBG/modules/usr/src/sys/modules/cloudabi32'
.TARGETS=3D'all'
DESTDIR=3D''
LD_LIBRARY_PATH=3D''
MACHINE=3D'arm64'
MACHINE_ARCH=3D'aarch64'
=
MAKEOBJDIRPREFIX=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/s=
rc/arm64.aarch64/sys/GENERIC-NODBG/modules'
MAKESYSPATH=3D'/usr/src/share/mk'
MAKE_VERSION=3D'20180222'
=
PATH=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.aar=
ch64/tmp/legacy/usr/sbin:/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/=
usr/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/cortexA53_clang_xbinutil=
s/arm64.aarch64/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/cortexA53_cl=
ang_xbinutils/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/co=
rtexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/bin:/s=
bin:/bin:/usr/sbin:/usr/bin'
SRCTOP=3D'/usr/src'
=
OBJTOP=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.a=
arch64/sys/GENERIC-NODBG/modules/usr/src'
.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-clang-xbinutils-bootstrap.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/sys/modules/cloudabi32/Makefile /usr/src/share/mk/bsd.kmod.mk =
/usr/src/sys/conf/kmod.mk /usr/src/share/mk/bsd.init.mk =
/usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk =
/usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk =
/usr/src/sys/modules/cloudabi32/../Makefile.inc =
/usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.compiler.mk =
/usr/src/share/mk/bsd.linker.mk /usr/src/sys/conf/kern.opts.mk =
/usr/src/sys/conf/config.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/sys/conf/kern.mk'
.PATH=3D'. /usr/src/sys/modules/cloudabi32 =
/usr/src/sys/compat/cloudabi32 /usr/src/sys/arm64/cloudabi32 =
/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.aarch64/sys=
/GENERIC-NODBG'
1 error


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

buildworld buildkernel with clang using its default
utilities completed.

=3D=3D=3D
Mark Millard
marklmi26-fbsd at yahoo.com
( dsl-only.net went
away in early 2018-Mar)









Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AD749B7B-625A-4385-B833-C4E25687030D>