From nobody Sun May 26 02:57:13 2024 X-Original-To: acpi@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vn3NW2mt5z5MGg6 for ; Sun, 26 May 2024 02:57:31 +0000 (UTC) (envelope-from brett@lariat.net) Received: from mail.lariat.net (mail.lariat.net [66.62.230.51]) by mx1.freebsd.org (Postfix) with ESMTP id 4Vn3NV2PRzz4Xc8 for ; Sun, 26 May 2024 02:57:30 +0000 (UTC) (envelope-from brett@lariat.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of brett@lariat.net designates 66.62.230.51 as permitted sender) smtp.mailfrom=brett@lariat.net Received: from Toshi.lariat.net (localhost.lariat.org [127.0.0.1]) by mail.lariat.net (8.9.3/8.9.3) with ESMTP id UAA24439 for ; Sat, 25 May 2024 20:57:14 -0600 (MDT) Message-Id: <202405260257.UAA24439@mail.lariat.net> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Sat, 25 May 2024 20:57:13 -0600 To: acpi@freebsd.org From: Brett Glass Subject: Can't debug ACPI List-Id: ACPI and power management development List-Archive: https://lists.freebsd.org/archives/freebsd-acpi List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-acpi@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.65 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.987]; NEURAL_HAM_LONG(-0.97)[-0.965]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:19092, ipnet:66.62.228.0/22, country:US]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[acpi@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[lariat.net]; PREVIOUSLY_DELIVERED(0.00)[acpi@freebsd.org]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4Vn3NV2PRzz4Xc8 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