Re: FYI: aarch64 main [so: 14] buildkernel (debug): ctfconvert: failed to get mapping for tid ????? <????>

From: Mark Millard via freebsd-arm <freebsd-arm_at_freebsd.org>
Date: Fri, 03 Dec 2021 17:19:00 UTC
On 2021-Dec-3, at 07:58, Mark Johnston <markj@FreeBSD.org> wrote:

> On Mon, Nov 29, 2021 at 06:45:19PM -0800, Mark Millard via freebsd-arm wrote:
>> For:
>> 
>> uname -apKU
>> FreeBSD CA72_4c8G_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #22 main-n250972-319e9fc642a1-dirty: Tue Nov 23 12:25:36 PST 2021     root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENERIC-NODBG-CA72  arm64 aarch64 1400042 1400042
>> 
>> building a variant of itself (producing a debug build instead of a
>> non-debug), it generated a bunch of messages of the form:
>> 
>> ctfconvert: failed to get mapping for tid  ????? <????>
>> 
>> in the buildkernel part of the build.
> 
> Can you share the kernel configuration GENERIC-NODBG-CA72?
> 

Sure. The environment doing the building was built using:

# more /usr/main-src/sys/arm64/conf/GENERIC-NODBG-CA72
include "GENERIC-NODBG"

ident   GENERIC-NODBG-CA72

makeoptions     CONF_CFLAGS="-mcpu=cortex-a72"

and . . .

# more /usr/main-src/sys/arm64/conf/GENERIC-NODBG
#
# GENERIC -- Custom configuration for the arm64/aarch64
#

include "GENERIC"

ident   GENERIC-NODBG

makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols

options         ALT_BREAK_TO_DEBUGGER

options         KDB                     # Enable kernel debugger support

# For minimum debugger support (stable branch) use:
#options        KDB_TRACE               # Print a stack trace for a panic
options         DDB                     # Enable the kernel debugger

# Extra stuff:
#options        VERBOSE_SYSINIT=0       # Enable verbose sysinit messages
#options        BOOTVERBOSE=1
#options        BOOTHOWTO=RB_VERBOSE
#options        KTR
#options        KTR_MASK=KTR_TRAP
##options       KTR_CPUMASK=0xF
#options        KTR_VERBOSE

# Disable any extra checking for. . .
nooptions       DEADLKRES               # Enable the deadlock resolver
nooptions       INVARIANTS              # Enable calls of extra sanity checking
nooptions       INVARIANT_SUPPORT       # Extra sanity checks of internal structures, required by INVARIANTS
nooptions       WITNESS                 # Enable checks to detect deadlocks and cycles
nooptions       WITNESS_SKIPSPIN        # Don't run witness on spinlocks for speed
nooptions       DIAGNOSTIC
nooptions       MALLOC_DEBUG_MAXZONES   # Separate malloc(9) zones
nooptions       BUF_TRACKING
nooptions       FULL_BUF_TRACKING


As for the variant being built:

# more /usr/main-src/sys/arm64/conf/GENERIC-DBG-CA72
include "GENERIC-DBG"

ident   GENERIC-DBG-CA72

makeoptions     CONF_CFLAGS="-mcpu=cortex-a72"

# more /usr/main-src/sys/arm64/conf/GENERIC-DBG
#
# GENERIC -- Custom configuration for the arm64/aarch64
#

include "GENERIC"

ident   GENERIC-DBG

makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols

options         ALT_BREAK_TO_DEBUGGER

options         KDB                     # Enable kernel debugger support

# For minimum debugger support (stable branch) use:
options         KDB_TRACE               # Print a stack trace for a panic
options         DDB                     # Enable the kernel debugger

# Extra stuff:
#options        VERBOSE_SYSINIT=0       # Enable verbose sysinit messages
#options        BOOTVERBOSE=1
#options        BOOTHOWTO=RB_VERBOSE
#options        KTR
#options        KTR_MASK=KTR_TRAP|KTR_PROC
##options       KTR_CPUMASK=0xF
#options        KTR_VERBOSE

# Enable any extra checking for. . .
options         DEADLKRES               # Enable the deadlock resolver
options         INVARIANTS              # Enable calls of extra sanity checking
options         INVARIANT_SUPPORT       # Extra sanity checks of internal structures, required by INVARIANTS
options         WITNESS                 # Enable checks to detect deadlocks and cycles
options         WITNESS_SKIPSPIN        # Don't run witness on spinlocks for speed
nooptions       DIAGNOSTIC
options         MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones
nooptions       BUF_TRACKING
nooptions       FULL_BUF_TRACKING


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