Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 2021 14:02:21 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Mark Dixon <freebsd@markdixon.name>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: buildworld on aarch64
Message-ID:  <3B7E9A48-933E-48AD-A041-BEBD4C8F8815@yahoo.com>
In-Reply-To: <4500301.qr3cf6QMXg@markspc>
References:  <4500301.qr3cf6QMXg@markspc>

next in thread | previous in thread | raw e-mail | index | archive | help
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=20
> RC5 (make -j4) on my helios64 board, but get the following:
>=20
> --- all_subdir_lib ---
> ld: error: /usr/obj/usr/src/arm64.aarch64/tmp/usr/lib/libcxxrt.so: =
undefined=20
> 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
>=20

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=20
script ~/typescript-make-world-kernel-$(date +%Y-%m-%d:%H:%M:%S) \
env WITH_META_MODE=3Dyes \
make $*

Before the chroot I prepared via:

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

Then I did:

# chroot /usr/obj/DESTDIRs/13.0R/
root@FBSDCA57:/ # cd /usr/src/
root@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)

=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?3B7E9A48-933E-48AD-A041-BEBD4C8F8815>