[Bug 264051] Kernel compile fails with options ACPI_DEBUG without options ddb

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 17 May 2022 20:58:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264051

            Bug ID: 264051
           Summary: Kernel compile fails with options ACPI_DEBUG without
                    options ddb
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: emaste@freebsd.org

Attempting a custom kernel based on MINIMAL and adding:

+options                ACPI_DEBUG
+options                BUS_DEBUG

(Note MINIMAL does not include options DDB)

Build fails with

/usr/home/emaste/src/freebsd-git/main/sys/contrib/dev/acpica/components/debugger/dbcmds.c:749:28:
error: use of undeclared identifier 'AcpiGbl_DbBuffer'
    ReturnBuffer.Pointer = AcpiGbl_DbBuffer;
                           ^
and other undeclared identifiers

I suspect MINIMAL excluding "options DDB" is itself a bug but acpica should
either build or explicitly #error in this case, I think.

-- 
You are receiving this mail because:
You are the assignee for the bug.