Re: head -r341836 (jump to clang 7): amd64 -> armv7 cross build failed: ld: error: unable to find library -lh_csu

From: Mark Millard <marklmi_at_yahoo.com>
Date: Wed, 12 Dec 2018 11:25:26 -0800
On 2018-Dec-11, at 17:27, Mark Millard <marklmi at yahoo.com> wrote:

> [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-host.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=cc matches the source tree.  Not bootstrapping a cross-compiler.
> make[1]: "/usr/src/Makefile.inc1" line 352: SYSTEM_LINKER: Determined that LD=ld 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 ---
> ===> 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='init_test.full'
> .ERROR_META_FILE='/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/lib/csu/tests/dynamiclib/init_test.full.meta'
> .MAKE.LEVEL='7'
> MAKEFILE=''
> .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
> _ERROR_CMD='c++ -mcpu=cortex-a7 -mcpu=cortex-a7 -target armv7-gnueabihf-freebsd13.0 --sysroot=/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='/usr/src/lib/csu/tests/dynamiclib'
> .MAKE='make'
> .OBJDIR='/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/lib/csu/tests/dynamiclib'
> .TARGETS=' all'
> --- all_subdir_share ---
> A failure has been detected in another branch of the parallel make
> --- all_subdir_lib ---
> DESTDIR='/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/tmp'
> LD_LIBRARY_PATH=''
> MACHINE='arm'
> MACHINE_ARCH='armv7'
> MAKEOBJDIRPREFIX=''
> MAKESYSPATH='/usr/src/share/mk'
> MAKE_VERSION='20180919'
> PATH='/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_clang/arm.armv7/usr/src/arm.armv7/tmp/legacy/usr/sbin:/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/tmp/legacy/usr/bin:/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/tmp/legacy/bin::/sbin:/bin:/usr/sbin:/usr/bin'
> SRCTOP='/usr/src'
> OBJTOP='/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7'
> 
> I've not yet tried targeting aarch64, powerpc64, or powerpc .


Looks like this might have been from a race condition or some such.
Rerunning the meta-mode build again had no such problem and completed.


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
Received on Wed Dec 12 2018 - 18:25:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:19 UTC