Build failure `acpi/madt/madt.c:644:8: error: format ‘%ld’ expects argument of type ‘long int’`

Paul Menzel paulepanter at users.sourceforge.net
Sat Jan 30 13:12:35 UTC 2016


Dear fwts developers,


using Debian Sid/unstable with GCC 5.3.1 and a 32-bit userspace, the
latest master tree fails to build.

```
$ dpkg --print-architecture
i386
$ git describe --tags
V16.01.00-23-gc29b7e3
$ git log -1 --oneline
c29b7e3 acpi: fadt: check 32/64 bit PM register addresses for inconsistency (LP: #1536606)
$ autoreconf -ivf
$ ./configure
$ make -j
[…]
gcc -DHAVE_CONFIG_H -I. -I..  -I../src/lib/include -I../src/acpica/source/include -I../src/acpica/source/compiler -I../efi_runtime `pkg-config --silence-errors --cflags json` `pkg-config --silence-errors --cflags json-c` -pthread `pkg-config --cflags glib-2.0 gio-2.0` -Wall -Werror -Wextra -DACPI_DEBUG_OUTPUT   -g -O2 -MT uefi/esrtdump/fwts-esrtdump.o -MD -MP -MF uefi/esrtdump/.deps/fwts-esrtdump.Tpo -c -o uefi/esrtdump/fwts-esrtdump.o `test -f 'uefi/esrtdump/esrtdump.c' || echo './'`uefi/esrtdump/esrtdump.c
In file included from ../src/lib/include/fwts_binpaths.h:27:0,
                 from ../src/lib/include/fwts.h:40,
                 from acpi/madt/madt.c:16:
acpi/madt/madt.c: In function ‘madt_local_sapic’:
acpi/madt/madt.c:644:8: error: format ‘%ld’ expects argument of type ‘long int’, but argument 9 has type ‘size_t {aka unsigned int}’ [-Werror=format=]
        "MADT %s length of %d bytes does not match "
        ^
../src/lib/include/fwts_framework.h:229:76: note: in definition of macro ‘fwts_failed’
  fwts_framework_log(fw, LOG_FAILED, label, level, &fw->minor_tests.failed, fmt, ## args)
                                                                            ^
mv -f acpi/cstates/.deps/fwts-cstates.Tpo acpi/cstates/.deps/fwts-cstates.Po
```


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20160130/afb9c230/attachment.pgp>


More information about the fwts-devel mailing list