Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2018 17:27:23 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Dimitry Andric <dim@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   head -r341836 (jump to clang 7): amd64 -> armv7 cross build failed: ld: error: unable to find library -lh_csu
Message-ID:  <4FCADEF8-E47F-47B0-94F0-7AF1B34004E0@yahoo.com>

next in thread | raw e-mail | index | archive | help
[This was after amd64 updating to -r341836 successfully ( from -r341766 =
).
The below was a meta-mode cross build, also going from -r341766 to
-r341836 .]

# =
~/sys_build_scripts.amd64-host/make_armv7_nodebug_clang_bootstrap-amd64-ho=
st.sh -j28 buildworld buildkernel
Script started, output file is =
/root/sys_typescripts/typescript_make_armv7_nodebug_clang_bootstrap-amd64-=
host-2018-12-11:17:02:35
--- buildworld ---
make[1]: "/usr/src/Makefile.inc1" line 347: SYSTEM_COMPILER: Determined =
that CC=3Dcc matches the source tree.  Not bootstrapping a =
cross-compiler.
make[1]: "/usr/src/Makefile.inc1" line 352: SYSTEM_LINKER: Determined =
that LD=3Dld matches the source tree.  Not bootstrapping a cross-linker.
--- buildworld_prologue ---
. . .
--- all_subdir_lib ---
--- all_subdir_lib/csu/tests/dynamiclib ---
--- init_test.full ---
ld: error: unable to find library -lh_csu
c++: error: linker command failed with exit code 1 (use -v to see =
invocation)
--- all_subdir_usr.bin ---
--- all_subdir_usr.bin/bsdiff ---
=3D=3D=3D> usr.bin/bsdiff (all)
--- all_subdir_lib ---
*** [init_test.full] Error code 1

make[7]: stopped in /usr/src/lib/csu/tests/dynamiclib
.ERROR_TARGET=3D'init_test.full'
=
.ERROR_META_FILE=3D'/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/lib/c=
su/tests/dynamiclib/init_test.full.meta'
.MAKE.LEVEL=3D'7'
MAKEFILE=3D''
.MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes =
verbose'
_ERROR_CMD=3D'c++ -mcpu=3Dcortex-a7 -mcpu=3Dcortex-a7 -target =
armv7-gnueabihf-freebsd13.0 =
--sysroot=3D/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/tmp =
-B/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/tmp/usr/bin -O -pipe =
-DDSO_BASE -I/usr/src/lib/csu/arm -g -Wsystem-headers -Wall =
-Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith =
-Wno-uninitialized -Wno-empty-body -Wno-string-plus-int =
-Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value =
-Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion =
-Wno-unused-local-typedef -Wno-address-of-packed-member =
-Qunused-arguments -Wno-c++11-extensions  =
-Wl,-rpath,/usr/tests/lib/csu/dynamiclib =
-L/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/lib/csu/tests/dso =
-Wl,--no-threads -o init_test.full  init_test.o -lh_csu -lprivateatf-c++ =
-lprivateatf-c -lprivateatf-c;'
.CURDIR=3D'/usr/src/lib/csu/tests/dynamiclib'
.MAKE=3D'make'
=
.OBJDIR=3D'/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/lib/csu/tests/=
dynamiclib'
.TARGETS=3D' all'
--- all_subdir_share ---
A failure has been detected in another branch of the parallel make
--- all_subdir_lib ---
DESTDIR=3D'/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/tmp'
LD_LIBRARY_PATH=3D''
MACHINE=3D'arm'
MACHINE_ARCH=3D'armv7'
MAKEOBJDIRPREFIX=3D''
MAKESYSPATH=3D'/usr/src/share/mk'
MAKE_VERSION=3D'20180919'
=
PATH=3D'/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/tmp/usr/sbin:/usr=
/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/tmp/usr/bin:/usr/obj/armv7_cl=
ang/arm.armv7/usr/src/arm.armv7/tmp/legacy/usr/sbin:/usr/obj/armv7_clang/a=
rm.armv7/usr/src/arm.armv7/tmp/legacy/usr/bin:/usr/obj/armv7_clang/arm.arm=
v7/usr/src/arm.armv7/tmp/legacy/bin::/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP=3D'/usr/src'
OBJTOP=3D'/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7'

I've not yet tried targeting aarch64, powerpc64, or powerpc .



=3D=3D=3D
Mark Millard
marklmi 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?4FCADEF8-E47F-47B0-94F0-7AF1B34004E0>