Bug 290818 - sysutils/acpica-tools: for armv7: error: format specifies type 'unsigned long' but the argument has type 'UINT64' (aka 'unsigned long long')
Summary: sysutils/acpica-tools: for armv7: error: format specifies type 'unsigned long...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: Jung-uk Kim
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-05 15:40 UTC by Mark Millard
Modified: 2025-11-17 03:52 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (jkim)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Millard 2025-11-05 15:40:01 UTC
My poudriere-devel build failed :
[00:01:07] [01] [00:00:48] Finished   sysutils/acpica-tools | acpica-tools-20250807: Failed: build

The log shows:

obj/iasl ../../../source/components/disassembler/dmresrc.c
../../../source/components/executer/extrace.c:304:63: error: format specifies type 'unsigned long' but the argument has type 'UINT64' (aka 'unsigned long long') [-Werror,-Wformat]
 304 |             ACPI_DEBUG_PRINT_RAW((ACPI_DB_TRACE_POINT, "%lx", obj_desc->Integer.Value));
     |                                                         ~~~   ^~~~~~~~~~~~~~~~~~~~~~~
     |                                                         %llx
../../../source/include/acoutput.h:463:63: note: expanded from macro 'ACPI_DEBUG_PRINT_RAW'
 463 | #define ACPI_DEBUG_PRINT_RAW(plist)     ACPI_ACTUAL_DEBUG_RAW plist
     |                                                               ^~~~~
../../../source/include/acoutput.h:460:42: note: expanded from macro 'ACPI_ACTUAL_DEBUG_RAW'
 460 |         Filename, Modulename, Component, __VA_ARGS__)
     |                                          ^~~~~~~~~~~
../../../source/include/acoutput.h:450:69: note: expanded from macro 'ACPI_DO_DEBUG_PRINT'
 450 |             Function (Level, Line, Filename, Modulename, Component, __VA_ARGS__); \
     |                                                                     ^~~~~~~~~~~
../../../source/include/acoutput.h:430:44: note: expanded from macro 'ACPI_DO_WHILE0'
 430 | #define ACPI_DO_WHILE0(a)               do a while(0)
     |                                            ^
1 error generated.
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-11-17 03:51:45 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6afff52ae173cc5e76fe9c9a8f3d42be01b59322

commit 6afff52ae173cc5e76fe9c9a8f3d42be01b59322
Author:     Jung-uk Kim <jkim@FreeBSD.org>
AuthorDate: 2025-11-17 03:45:06 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2025-11-17 03:45:06 +0000

    sysutils/acpica-tools: Fix build on 32-bit platforms

    https://cgit.freebsd.org/src/commit?id=95c8b4d74bced30f26d19f1d6fcd6310fe99486f

    PR:             290818

 .../files/patch-source_components_executer_extrace.c (new)    | 11 +++++++++++
 1 file changed, 11 insertions(+)