[R-pkg-team] Bug#1071357: r-cran-randomfieldsutils: FTBFS: Basic_utils.h:81:41: error: format not a string literal and no format arguments

Santiago Vila sanvila at debian.org
Fri May 17 21:41:32 BST 2024


Package: src:r-cran-randomfieldsutils
Version: 1.2.5-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --buildsystem R
    dh_update_autotools_config -O--buildsystem=R
    dh_autoreconf -O--buildsystem=R
    dh_auto_configure -O--buildsystem=R
    dh_auto_build -O--buildsystem=R
    dh_auto_test -O--buildsystem=R
    create-stamp debian/debhelper-build-stamp
    dh_testroot -O--buildsystem=R
    dh_prep -O--buildsystem=R
    dh_auto_install --destdir=debian/r-cran-randomfieldsutils/ -O--buildsystem=R
I: R Package: RandomFieldsUtils Version: 1.2.5
I: Building using R version 4.4.0-2
I: R API version: r-api-4.0
I: Using built-time from d/changelog: Wed, 18 May 2022 13:00:18 +0200
	mkdir -p /<<PKGBUILDDIR>>/debian/r-cran-randomfieldsutils/usr/lib/R/site-library
	R CMD INSTALL -l /<<PKGBUILDDIR>>/debian/r-cran-randomfieldsutils/usr/lib/R/site-library --clean . "--built-timestamp='Wed, 18 May 2022 13:00:18 +0200'"
* installing *source* package ‘RandomFieldsUtils’ ...
file ‘configure’ has the wrong MD5 checksum
** using staged installation
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ -std=gnu++17 accepts -g... yes
checking for g++ -std=gnu++17 option to enable C++11 features... none needed
configure: value of 'CROSS' is 'noflags'.
checking whether __cpuid is available... no
checking whether cpuid works under asm... yes
configure: 'USE_GPU' has not been set.
checking SIMD options for some CC files... avx2 avx
checking which downwards controls might be used... .
configure: default compilation option is  -DLINUXCPUID  -DGPU_NEEDS=Igpu    -DMEMisALIGNED=Nan
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: ‘gcc (Debian 13.2.0-25) 13.2.0’
using Fortran compiler: ‘GNU Fortran (Debian 13.2.0-25) 13.2.0’
using C++ compiler: ‘g++ (Debian 13.2.0-25) 13.2.0’
make[1]: Entering directory '/<<PKGBUILDDIR>>/src'
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG      -fopenmp  -DLINUXCPUID  -DGPU_NEEDS=Igpu    -DMEMisALIGNED=Nan  -fpic  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/r-base-4.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c AutoRandomFieldsUtils.cc -o AutoRandomFieldsUtils.o
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG      -fopenmp  -DLINUXCPUID  -DGPU_NEEDS=Igpu    -DMEMisALIGNED=Nan  -fpic  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/r-base-4.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c beskf.cc -o beskf.o
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG      -fopenmp  -DLINUXCPUID  -DGPU_NEEDS=Igpu    -DMEMisALIGNED=Nan  -fpic  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/r-base-4.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c brdomain.cc -o brdomain.o
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG      -fopenmp  -DLINUXCPUID  -DGPU_NEEDS=Igpu    -DMEMisALIGNED=Nan  -fpic  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/r-base-4.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c extern.cc -o extern.o
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG      -fopenmp  -DLINUXCPUID  -DGPU_NEEDS=Igpu    -DMEMisALIGNED=Nan  -fpic  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/r-base-4.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c kleinkram.cc -o kleinkram.o
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
In file included from kleinkram.cc:26:
kleinkram.cc: In function ‘void xA_noomp(double*, double*, Long, Long, double*)’:
Basic_utils.h:81:41: error: format not a string literal and no format arguments [-Werror=format-security]
    81 |     SPRINTF(E_AUX, M, A,B,C,D); RFERROR(E_AUX);}
       |                                         ^~~~~
Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
   227 |     RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
       |     ^~~~~~~~
kleinkram.cc:101:36: note: in expansion of macro ‘BUG’
   101 |     if (nrow != ncol || nrow <= 0) BUG;
       |                                    ^~~
kleinkram.cc: In function ‘void xA(double*, double*, Long, Long, double*, int)’:
Basic_utils.h:81:41: error: format not a string literal and no format arguments [-Werror=format-security]
    81 |     SPRINTF(E_AUX, M, A,B,C,D); RFERROR(E_AUX);}
       |                                         ^~~~~
Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
   227 |     RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
       |     ^~~~~~~~
kleinkram.cc:113:36: note: in expansion of macro ‘BUG’
   113 |     if (nrow != ncol || nrow <= 0) BUG;
       |                                    ^~~
kleinkram.cc: In function ‘void xA(double*, double*, double*, Long, Long, double*, double*)’:
Basic_utils.h:81:41: error: format not a string literal and no format arguments [-Werror=format-security]
    81 |     SPRINTF(E_AUX, M, A,B,C,D); RFERROR(E_AUX);}
       |                                         ^~~~~
Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
   227 |     RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
       |     ^~~~~~~~
kleinkram.cc:127:36: note: in expansion of macro ‘BUG’
   127 |     if (nrow != ncol || nrow <= 0) BUG;
       |                                    ^~~
kleinkram.cc: In function ‘void Ax(double*, double*, Long, Long, double*, int)’:
Basic_utils.h:81:41: error: format not a string literal and no format arguments [-Werror=format-security]
    81 |     SPRINTF(E_AUX, M, A,B,C,D); RFERROR(E_AUX);}
       |                                         ^~~~~
Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
   227 |     RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
       |     ^~~~~~~~
kleinkram.cc:170:36: note: in expansion of macro ‘BUG’
   170 |     if (nrow != ncol || nrow <= 0) BUG;
       |                                    ^~~
kleinkram.cc: In function ‘void Ax(double*, double*, double*, Long, Long, double*, double*)’:
Basic_utils.h:81:41: error: format not a string literal and no format arguments [-Werror=format-security]
    81 |     SPRINTF(E_AUX, M, A,B,C,D); RFERROR(E_AUX);}
       |                                         ^~~~~
Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
   227 |     RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
       |     ^~~~~~~~
kleinkram.cc:198:36: note: in expansion of macro ‘BUG’
   198 |     if (nrow != ncol || nrow <= 0) BUG;
       |                                    ^~~
kleinkram.cc: In function ‘usr_bool UsrBool(SEXP, char*, Long)’:
Basic_utils.h:77:37: error: format not a string literal and no format arguments [-Werror=format-security]
    77 |     SPRINTF(E_AUX, M, A,B); RFERROR(E_AUX);}
       |                                     ^~~~~
kleinkram.cc:705:9: note: in expansion of macro ‘RFERROR2’
   705 |   else  RFERROR2("invalid value (%d) for boolean variable '%.50s'.",
       |         ^~~~~~~~
kleinkram.cc: In function ‘double Real(SEXP, char*, Long)’:
Basic_utils.h:77:37: error: format not a string literal and no format arguments [-Werror=format-security]
    77 |     SPRINTF(E_AUX, M, A,B); RFERROR(E_AUX);}
       |                                     ^~~~~
kleinkram.cc:765:3: note: in expansion of macro ‘RFERROR2’
   765 |   RFERROR2("'%.50s' can not be transformed to double! (got'%.50s')\n",
       |   ^~~~~~~~
kleinkram.cc: In function ‘void Real(SEXP, char*, double*, Long)’:
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:777:5: note: in expansion of macro ‘RFERROR1’
   777 |     RFERROR1("'%.50s' cannot be transformed to double.\n", name);
       |     ^~~~~~~~
kleinkram.cc: In function ‘int Integer(SEXP, char*, Long, bool)’:
Basic_utils.h:77:37: error: format not a string literal and no format arguments [-Werror=format-security]
    77 |     SPRINTF(E_AUX, M, A,B); RFERROR(E_AUX);}
       |                                     ^~~~~
kleinkram.cc:805:9: note: in expansion of macro ‘RFERROR2’
   805 |         RFERROR2("%.50s: integer value expected. Got %10e.", name, value);
       |         ^~~~~~~~
Basic_utils.h:77:37: error: format not a string literal and no format arguments [-Werror=format-security]
    77 |     SPRINTF(E_AUX, M, A,B); RFERROR(E_AUX);}
       |                                     ^~~~~
kleinkram.cc:814:3: note: in expansion of macro ‘RFERROR2’
   814 |   RFERROR2("%.50s: incorrect type. Got '%.50s'.",
       |   ^~~~~~~~
kleinkram.cc: In function ‘void Integer(SEXP, char*, int*, Long)’:
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:829:5: note: in expansion of macro ‘RFERROR1’
   829 |     RFERROR1("'%.50s' cannot be transformed to integer.\n",name);
       |     ^~~~~~~~
kleinkram.cc: In function ‘void Integer2(SEXP, char*, int*)’:
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:843:16: note: in expansion of macro ‘RFERROR1’
   843 |   if (n == 0)  RFERROR1("'%.50s' cannot be transformed to integer.\n",name);
       |                ^~~~~~~~
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:847:5: note: in expansion of macro ‘RFERROR1’
   847 |     RFERROR1("first component of '%.50s' must be at least 1", name);
       |     ^~~~~~~~
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:852:7: note: in expansion of macro ‘RFERROR1’
   852 |       RFERROR1("'%.50s' must be increasing", name);
       |       ^~~~~~~~
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:857:11: note: in expansion of macro ‘RFERROR1’
   857 |           RFERROR1("'%.50s' is not a sequence of numbers",name);
       |           ^~~~~~~~
kleinkram.cc: In function ‘bool Logical(SEXP, char*, Long)’:
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:879:3: note: in expansion of macro ‘RFERROR1’
   879 |   RFERROR1("'%.50s' cannot be transformed to logical.\n", name);
       |   ^~~~~~~~
kleinkram.cc: In function ‘char Char(SEXP, char*)’:
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:899:3: note: in expansion of macro ‘RFERROR1’
   899 |   RFERROR1("'%.50s' cannot be transformed to character.\n",  name);
       |   ^~~~~~~~
kleinkram.cc: In function ‘void String(SEXP, char*, char (*)[18], Long)’:
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:909:5: note: in expansion of macro ‘RFERROR1’
   909 |     RFERROR1("number of variable names exceeds %d. Take abbreviations?",
       |     ^~~~~~~~
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:926:3: note: in expansion of macro ‘RFERROR1’
   926 |   RFERROR1("'%.50s' cannot be transformed to character.\n",  name);
       |   ^~~~~~~~
In file included from General_utils.h:36,
                  from kleinkram.cc:30:
kleinkram.cc: In function ‘int NonNegInteger(SEXP, char*)’:
errors_messages.h:157:37: error: format not a string literal and no format arguments [-Werror=format-security]
   157 |     SPRINTF(W_MSG, X, Y); RFWARNING(W_MSG);}
       |                                     ^~~~~
kleinkram.cc:934:5: note: in expansion of macro ‘WARN1’
   934 |     WARN1("'%.50s', which has been negative, is set 0.\n",name);
       |     ^~~~~
kleinkram.cc: In function ‘double NonNegReal(SEXP, char*)’:
errors_messages.h:157:37: error: format not a string literal and no format arguments [-Werror=format-security]
   157 |     SPRINTF(W_MSG, X, Y); RFWARNING(W_MSG);}
       |                                     ^~~~~
kleinkram.cc:943:5: note: in expansion of macro ‘WARN1’
   943 |     WARN1("%.50s, which has been negative, is set 0.\n",name);
       |     ^~~~~
kleinkram.cc: In function ‘double NonPosReal(SEXP, char*)’:
errors_messages.h:157:37: error: format not a string literal and no format arguments [-Werror=format-security]
   157 |     SPRINTF(W_MSG, X, Y); RFWARNING(W_MSG);}
       |                                     ^~~~~
kleinkram.cc:952:5: note: in expansion of macro ‘WARN1’
   952 |     WARN1("%.50s, which has been positive, is set 0.\n",name);
       |     ^~~~~
kleinkram.cc: In function ‘int PositiveInteger(SEXP, char*)’:
errors_messages.h:159:40: error: format not a string literal and no format arguments [-Werror=format-security]
   159 |     SPRINTF(W_MSG, X, Y, Z); RFWARNING(W_MSG);}
       |                                        ^~~~~
kleinkram.cc:960:5: note: in expansion of macro ‘WARN2’
   960 |     WARN2("'%.50s', which has been %.50s, is set 1.\n",
       |     ^~~~~
kleinkram.cc: In function ‘double PositiveReal(SEXP, char*)’:
errors_messages.h:159:40: error: format not a string literal and no format arguments [-Werror=format-security]
   159 |     SPRINTF(W_MSG, X, Y, Z); RFWARNING(W_MSG);}
       |                                        ^~~~~
kleinkram.cc:970:6: note: in expansion of macro ‘WARN2’
   970 |      WARN2("'%.50s', which has been %.50s, is set 1.\n",
       |      ^~~~~
kleinkram.cc: In function ‘void GetName(SEXP, char*, const char**, int, int, int, int*, int)’:
Basic_utils.h:77:37: error: format not a string literal and no format arguments [-Werror=format-security]
    77 |     SPRINTF(E_AUX, M, A,B); RFERROR(E_AUX);}
       |                                     ^~~~~
kleinkram.cc:1063:5: note: in expansion of macro ‘RFERROR2’
  1063 |     RFERROR2("option '%.50s' is too lengthy. Maximum length is %d.",
       |     ^~~~~~~~
Basic_utils.h:77:37: error: format not a string literal and no format arguments [-Werror=format-security]
    77 |     SPRINTF(E_AUX, M, A,B); RFERROR(E_AUX);}
       |                                     ^~~~~
kleinkram.cc:1105:3: note: in expansion of macro ‘RFERROR2’
  1105 |   RFERROR2("%.900s and '%.50s'.", msg0, List[i]);
       |   ^~~~~~~~
Basic_utils.h:75:35: error: format not a string literal and no format arguments [-Werror=format-security]
    75 |     SPRINTF(E_AUX, M, A); RFERROR(E_AUX);}
       |                                   ^~~~~
kleinkram.cc:1114:3: note: in expansion of macro ‘RFERROR1’
  1114 |   RFERROR1("'%.50s': no value given.", name);
       |   ^~~~~~~~
cc1plus: some warnings being treated as errors
make[1]: *** [/usr/lib/R/etc/Makeconf:202: kleinkram.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: Entering directory '/<<PKGBUILDDIR>>/src'
make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
ERROR: compilation failed for package ‘RandomFieldsUtils’
* removing ‘/<<PKGBUILDDIR>>/debian/r-cran-randomfieldsutils/usr/lib/R/site-library/RandomFieldsUtils’
dh_auto_install: error: R CMD INSTALL -l /<<PKGBUILDDIR>>/debian/r-cran-randomfieldsutils/usr/lib/R/site-library --clean . "--built-timestamp='Wed, 18 May 2022 13:00:18 +0200'" returned exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202405/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the R-pkg-team mailing list