• Bug#1069423: fcoe-utils: FTBFS on armhf: lib/sa_log.c:185:45: error: fo

    From Lucas Nussbaum@21:1/5 to All on Sat Apr 20 15:20:01 2024
    Source: fcoe-utils
    Version: 1.0.34-5
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240420 ftbfs-trixie ftbfs-t64-armhf

    Hi,

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


    Relevant part (hopefully):
    gcc -DPACKAGE_NAME=\"fcoe-utils\" -DPACKAGE_TARNAME=\"fcoe-utils\" -DPACKAGE_VERSION=\"1.0.34\" -DPACKAGE_STRING=\"fcoe-utils\ 1.0.34\" -DPACKAGE_BUGREPORT=\"https://github.com/openSUSE/fcoe-utils\" -DPACKAGE_URL=\"\" -DPACKAGE=\"fcoe-utils\" -DVERSION=
    \"1.0.34\" -I. -I./include -I./include -DSYSCONFDIR="\"/etc\"" -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wextra -Wmissing-prototypes -Wstrict-prototypes -g -
    O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -c -o lib/sa_log.o lib/sa_log.c
    lib/sa_log.c: In function ‘sa_log_timestamp’:
    lib/sa_log.c:185:45: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘__time64_t’ {aka ‘long long int’} [-Werror=format=]
    185 | fprintf(stderr, "%4ld.%3.3" PRIu64 "",
    | ~~~^
    | |
    | long int
    | %4lld
    186 | diff.tv_sec, (u_int64_t)diff.tv_usec / 1000);
    | ~~~~~~~~~~~
    | |
    | __time64_t {aka long long int} gcc -DPACKAGE_NAME=\"fcoe-utils\" -DPACKAGE_TARNAME=\"fcoe-utils\" -DPACKAGE_VERSION=\"1.0.34\" -DPACKAGE_STRING=\"fcoe-utils\ 1.0.34\" -DPACKAGE_BUGREPORT=\"https://github.com/openSUSE/fcoe-utils\" -DPACKAGE_URL=\"\" -DPACKAGE=\"fcoe-utils\" -DVERSION=
    \"1.0.34\" -I. -I./include -I./include -DSYSCONFDIR="\"/etc\"" -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wextra -Wmissing-prototypes -Wstrict-prototypes -g -
    O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -c -o lib/sa_select.o lib/sa_select.c
    gcc -DPACKAGE_NAME=\"fcoe-utils\" -DPACKAGE_TARNAME=\"fcoe-utils\" -DPACKAGE_VERSION=\"1.0.34\" -DPACKAGE_STRING=\"fcoe-utils\ 1.0.34\" -DPACKAGE_BUGREPORT=\"https://github.com/openSUSE/fcoe-utils\" -DPACKAGE_URL=\"\" -DPACKAGE=\"fcoe-utils\" -DVERSION=
    \"1.0.34\" -I. -I./include -I./include -DSYSCONFDIR="\"/etc\"" -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wextra -Wmissing-prototypes -Wstrict-prototypes -g -
    O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -c -o lib/sa_timer.o lib/sa_timer.c
    cc1: all warnings being treated as errors
    make[1]: *** [Makefile:613: lib/sa_log.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/04/20/fcoe-utils_1.0.34-5_unstable-armhf.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240420;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240420&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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)