#1151706 nfs-ganesha: FTBFS on armhf: common_utils.h:908:59: error: format ‘%ld’ expects argument of type ‘long int’, but argument 8 has type ‘long long int’

Package:
src:nfs-ganesha
Source:
src:nfs-ganesha
Submitter:
Emilio Pozuelo Monfort
Date:
2026-10-23 07:48:38 UTC
Severity:
normal
Tags:
#1151706#5
Date:
2026-10-23 07:47:50 UTC
From:
To:
Hi,

Your package failed to build on armhf:

In file included from /build/reproducible-path/nfs-ganesha-15.2/src/include/gsh_rpc.h:71,
                 from /build/reproducible-path/nfs-ganesha-15.2/src/include/nfs4.h:48,
                 from /build/reproducible-path/nfs-ganesha-15.2/src/include/gsh_config.h:50,
                 from /build/reproducible-path/nfs-ganesha-15.2/src/monitoring/prometheus_exposer.cc:37:
/build/reproducible-path/nfs-ganesha-15.2/src/include/common_utils.h: In function ‘int PTHREAD_cond_timedwait(pthread_cond_t*, pthread_mutex_t*, const timespec*, const char*, const char*, const char*, int)’:
/build/reproducible-path/nfs-ganesha-15.2/src/include/common_utils.h:908:59: error: format ‘%ld’ expects argument of type ‘long int’, but argument 8 has type ‘long long int’ [-Werror=format=]
  908 |                                 "Wait cond %p, abstime: %ld.%09ld",
      |                                                         ~~^
      |                                                           |
      |                                                           long int
      |                                                         %lld
  909 |                                 (void *)cond, abstime->tv_sec,
      |                                               ~~~~~~~~~~~~~~~
      |                                                        |
      |                                                        long long int
/build/reproducible-path/nfs-ganesha-15.2/src/include/common_utils.h:917:69: error: format ‘%ld’ expects argument of type ‘long int’, but argument 9 has type ‘long long int’ [-Werror=format=]
  917 |                                 "Error %d, Wait cond %p, abstime: %ld.%09ld",
      |                                                                   ~~^
      |                                                                     |
      |                                                                     long int
      |                                                                   %lld
  918 |                                 rc, (void *)cond, abstime->tv_sec,
      |                                                   ~~~~~~~~~~~~~~~
      |                                                            |
      |                                                            long long int
/build/reproducible-path/nfs-ganesha-15.2/src/include/common_utils.h:925:69: error: format ‘%ld’ expects argument of type ‘long int’, but argument 9 has type ‘long long int’ [-Werror=format=]
  925 |                                 "Error %d, Wait cond %p, abstime: %ld.%09ld",
      |                                                                   ~~^
      |                                                                     |
      |                                                                     long int
      |                                                                   %lld
  926 |                                 rc, (void *)cond, abstime->tv_sec,
      |                                                   ~~~~~~~~~~~~~~~
      |                                                            |
      |                                                            long long int

Full log at https://buildd.debian.org/status/fetch.php?pkg=nfs-ganesha&arch=armhf&ver=15.2-1&stamp=1792484824&raw=0

Cheers,
Emilio