[Pkg-fonts-devel] Bug#1091283: sfnt2woff-zopfli: FTBFS on armhf: woff.c:291:113: error: passing argument 6 of ‘ZopfliCompress’ from incompatible pointer type [-Wincompatible-pointer-types]

Lucas Nussbaum lucas at debian.org
Mon Dec 23 17:33:05 GMT 2024


Source: sfnt2woff-zopfli
Version: 1.3.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20241223 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, this package failed to build
on armhf.

This package currently has binary packages on armhf, so this is a regression.
Also, there are no known issues on amd64 or arm64 according to recent (a couple
days ago) rebuilds.

The rebuild was done using an armhf chroot on an AWS "m6g" instance (Graviton2
CPU).

Relevant part (hopefully):
> cc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Izopfli  \
> 	woff.c woff2sfnt.c -o woff2sfnt-zopfli \
> 	-Wl,-z,relro -Wl,-z,now zopfli/blocksplitter.c zopfli/cache.c zopfli/deflate.c zopfli/gzip_container.c zopfli/hash.c zopfli/katajainen.c zopfli/lz77.c zopfli/squeeze.c zopfli/tree.c zopfli/util.c zopfli/zlib_container.c zopfli/zopfli_lib.c -lz -lm
> woff.c: In function ‘woffEncode’:
> woff.c: In function ‘woffEncode’:
> woff.c:291:113: error: passing argument 6 of ‘ZopfliCompress’ from incompatible pointer type [-Wincompatible-pointer-types]
>   291 |     ZopfliCompress(&options, ZOPFLI_FORMAT_ZLIB, (const uint8_t *) (sfntData + sourceOffset), sourceLen, &dest, &destLen);
>       |                                                                                                                 ^~~~~~~~
>       |                                                                                                                 |
>       |                                                                                                                 uLong * {aka long unsigned int *}
> woff.c:291:113: error: passing argument 6 of ‘ZopfliCompress’ from incompatible pointer type [-Wincompatible-pointer-types]
>   291 |     ZopfliCompress(&options, ZOPFLI_FORMAT_ZLIB, (const uint8_t *) (sfntData + sourceOffset), sourceLen, &dest, &destLen);
>       |                                                                                                                 ^~~~~~~~
>       |                                                                                                                 |
>       |                                                                                                                 uLong * {aka long unsigned int *}
> In file included from woff.c:45:
> zopfli/zopfli.h:91:50: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘uLong *’ {aka ‘long unsigned int *’}
>    91 |                     unsigned char** out, size_t* outsize);
>       |                                          ~~~~~~~~^~~~~~~
> In file included from woff.c:45:
> zopfli/zopfli.h:91:50: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘uLong *’ {aka ‘long unsigned int *’}
>    91 |                     unsigned char** out, size_t* outsize);
>       |                                          ~~~~~~~~^~~~~~~
> woff.c: In function ‘woffSetMetadata’:
> woff.c: In function ‘woffSetMetadata’:
> woff.c:551:98: error: passing argument 6 of ‘ZopfliCompress’ from incompatible pointer type [-Wincompatible-pointer-types]
>   551 |     ZopfliCompress(&options, ZOPFLI_FORMAT_ZLIB, (const uint8_t *) metaData, metaLen, &compData, &compLen);
>       |                                                                                                  ^~~~~~~~
>       |                                                                                                  |
>       |                                                                                                  uLong * {aka long unsigned int *}
> woff.c:551:98: error: passing argument 6 of ‘ZopfliCompress’ from incompatible pointer type [-Wincompatible-pointer-types]
>   551 |     ZopfliCompress(&options, ZOPFLI_FORMAT_ZLIB, (const uint8_t *) metaData, metaLen, &compData, &compLen);
>       |                                                                                                  ^~~~~~~~
>       |                                                                                                  |
>       |                                                                                                  uLong * {aka long unsigned int *}
> zopfli/zopfli.h:91:50: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘uLong *’ {aka ‘long unsigned int *’}
>    91 |                     unsigned char** out, size_t* outsize);
>       |                                          ~~~~~~~~^~~~~~~
> zopfli/zopfli.h:91:50: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘uLong *’ {aka ‘long unsigned int *’}
>    91 |                     unsigned char** out, size_t* outsize);
>       |                                          ~~~~~~~~^~~~~~~
> make[1]: *** [Makefile:33: woff2sfnt-zopfli] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/12/23/sfnt2woff-zopfli_1.3.1-1_unstable-armhf.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20241223;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20241223&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-fonts-devel mailing list