buildworld on aarch64

Mark Millard marklmi at yahoo.com
Wed Apr 7 21:02:31 UTC 2021


On 2021-Apr-7, at 08:51, Mark Dixon via freebsd-arm <freebsd-arm at freebsd.org> wrote:

> Anyone else seeing issues with make buildworld on aarch64? I'm trying to build 
> RC5 (make -j4) on my helios64 board, but get the following:
> 
> --- all_subdir_lib ---
> ld: error: /usr/obj/usr/src/arm64.aarch64/tmp/usr/lib/libcxxrt.so: undefined 
> reference to _Unwind_Backtrace [--no-allow-shlib-undefined]
> c++: error: linker command failed with exit code 1 (use -v to see invocation)
> *** [cxx_constructors.full] Error code 1
> 

You were not explicit about details of the context that was
attempting to build 13.0-RC5 . So I just tried something
basic.

Summary: 13.0-RC5 buildworld and buildkernel completed just fine
         in a 13.0-RC5 context

World build completed on Wed Apr  7 20:32:30 UTC 2021
World built in 12431 seconds, ncpu: 4, make -j4

Kernel build for GENERIC completed on Wed Apr  7 20:48:55 UTC 2021
Kernel(s)  GENERIC built in 985 seconds, ncpu: 4, make -j4


Details of test:

To test this I set up a 13.0-R5 directory tree ( /usr/obj/DESTDIRIs/13.0R/ )
for chroot use based on expanding some of the *.txz files that are at:

http://ftp3.freebsd.org/pub/FreeBSD/releases/arm64/aarch64/13.0-RC5/

Specifically:

# mkdir -p /usr/obj/DESTDIRs/13.0R
# tar -xpf base.txz     -C /usr/obj/DESTDIRs/13.0R/
# tar -xpf base-deb.txz -C /usr/obj/DESTDIRs/13.0R/ # Not that this matters here
# tar -xpf src.txz      -C /usr/obj/DESTDIRs/13.0R/
# tar -xpf ports.txz    -C /usr/obj/DESTDIRs/13.0R/ # Not that this matters here

In this area for future chroot activity I also created:

# more /usr/obj/DESTDIRs/13.0R/root/make-world-kernel.sh 
script ~/typescript-make-world-kernel-$(date +%Y-%m-%d:%H:%M:%S) \
env WITH_META_MODE=yes \
make $*

Before the chroot I prepared via:

# more ~/prepare-for-13.0R-use.sh 
#! /bin/sh
mount -tdevfs devfs /usr/obj/DESTDIRs/13.0R/dev/ && \
kldstat -n filemon
# ~/prepare-for-13.0R-use.sh 

Then I did:

# chroot /usr/obj/DESTDIRs/13.0R/
root at FBSDCA57:/ # cd /usr/src/
root at FBSDCA57:/usr/src # ~/make-world-kernel.sh -j4 buildworld buildkernel



Note: The environment this was done in was a OverDrive 1000
with a non-debug aarch64 FreeBSD build based on 7381bbee29df
of main (the merge-base):

# ~/fbsd-based-on-what-freebsd-main.sh
FreeBSD FBSDCA57 14.0-CURRENT FreeBSD 14.0-CURRENT mm-src-n245445-def0058cc690 GENERIC-NODBG  arm64 aarch64 1400005 1400005
def0058cc690 (HEAD -> mm-src) mm-src snapshot for mm's patched build in git context.
merge-base: 7381bbee29df959e88ec59866cf2878263e7f3b2
merge-base: CommitDate: 2021-03-12 20:29:42 +0000
7381bbee29df (freebsd/main, freebsd/HEAD, pure-src, main) cam: Run all XPT_ASYNC ccbs in a dedicated thread
n245444 (--first-parent --count for merge-base)

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-arm mailing list