Date: Sat, 25 May 2024 20:57:13 -0600 From: Brett Glass <brett@lariat.net> To: acpi@freebsd.org Subject: Can't debug ACPI Message-ID: <202405260257.UAA24439@mail.lariat.net>
next in thread | raw e-mail | index | archive | help
All: Tried to investigate the problems I was encountering with ACPI by building a FreeBSD 14.0 kernel with the ACPI_DEBUG option. It wouldn't compile. I got these compile-time error messages: /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:749:28: error: use of undeclared identifier 'AcpiGbl_DbBuffer' ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:768:5: error: call to undeclared function 'AcpiRsDumpResourceList'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] AcpiRsDumpResourceList (ACPI_CAST_PTR (ACPI_RESOURCE, ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:768:5: note: did you mean 'AcpiRsCreateResourceList'? /usr/src/sys/contrib/dev/acpica/include/acresrc.h:307:1: note: 'AcpiRsCreateResourceList' declared here AcpiRsCreateResourceList ( ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1050:28: error: use of undeclared identifier 'AcpiGbl_DbBuffer' ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1068:32: error: use of undeclared identifier 'AcpiGbl_DbBuffer' ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1079:9: error: call to undeclared function 'AcpiRsDumpIrqList'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] AcpiRsDumpIrqList (ACPI_CAST_PTR (UINT8, AcpiGbl_DbBuffer)); ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1079:50: error: use of undeclared identifier 'AcpiGbl_DbBuffer' AcpiRsDumpIrqList (ACPI_CAST_PTR (UINT8, AcpiGbl_DbBuffer)); ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1090:32: error: use of undeclared identifier 'AcpiGbl_DbBuffer' ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1138:9: error: call to undeclared function 'AcpiRsDumpResourceList'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] AcpiRsDumpResourceList (ACPI_CAST_PTR (ACPI_RESOURCE, ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1172:32: error: use of undeclared identifier 'AcpiGbl_DbBuffer' ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1183:32: error: use of undeclared identifier 'AcpiGbl_DbBuffer' ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1194:9: error: call to undeclared function 'AcpiRsDumpResourceList'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] AcpiRsDumpResourceList (ACPI_CAST_PTR ( ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1195:28: error: use of undeclared identifier 'AcpiGbl_DbBuffer' ACPI_RESOURCE, AcpiGbl_DbBuffer)); ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1206:32: error: use of undeclared identifier 'AcpiGbl_DbBuffer' ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1217:32: error: use of undeclared identifier 'AcpiGbl_DbBuffer' ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1228:9: error: call to undeclared function 'AcpiRsDumpResourceList'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] AcpiRsDumpResourceList (ACPI_CAST_PTR ( ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1229:28: error: use of undeclared identifier 'AcpiGbl_DbBuffer' ACPI_RESOURCE, AcpiGbl_DbBuffer)); ^ /usr/src/sys/contrib/dev/acpica/components/debugger/dbcmds.c:1424:26: error: use of undeclared identifier 'AcpiGbl_DbConsoleDebugLevel' DebugLevel = AcpiGbl_DbConsoleDebugLevel; ^ 17 errors generated. --------------- Couldn't get any farther, and couldn't even disable parts of FreeBSD's ACPI implementation to see which was causing the problems (I suspect it was "ec" - embedded controller). --Brett Glass
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405260257.UAA24439>