[R-pkg-team] Bug#1071356: r-cran-randomfields: FTBFS: /usr/lib/R/site-library/RandomFieldsUtils/include/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:27 BST 2024
Package: src:r-cran-randomfields
Version: 3.3.14-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-randomfields/ -O--buildsystem=R
I: R Package: RandomFields Version: 3.3.14
I: Building using R version 4.4.0-2
I: R API version: r-api-4.0
I: Using built-time from d/changelog: Sat, 12 Feb 2022 23:40:29 +0100
mkdir -p /<<PKGBUILDDIR>>/debian/r-cran-randomfields/usr/lib/R/site-library
xvfb-run --auto-servernum --server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" R CMD INSTALL -l /<<PKGBUILDDIR>>/debian/r-cran-randomfields/usr/lib/R/site-library --clean . "--built-timestamp='Sat, 12 Feb 2022 23:40:29 +0100'"
* installing *source* package ‘RandomFields’ ...
file ‘configure’ has the wrong MD5 checksum
** using staged installation
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: ‘gcc (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 -I'/usr/lib/R/site-library/RandomFieldsUtils/include' -fopenmp -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 AutoRandomFields.cc -o AutoRandomFields.o
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/RandomFieldsUtils/include' -fopenmp -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 Brown.cc -o Brown.o
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
In file included from Brown.cc:31:
Brown.cc: In function ‘int checkBrownResnickProc(model*)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Machine.h:287:74: note: in expansion of macro ‘BUG’
287 | /* || !equalsIsotropic(OWNISO(1)) */ )) BUG;}
| ^~~
Brown.cc:135:3: note: in expansion of macro ‘ASSERT_ONESYSTEM’
135 | ASSERT_ONESYSTEM;
| ^~~~~~~~~~~~~~~~
Brown.cc: In function ‘int init_BRorig(model*, gen_storage*)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Brown.cc:224:20: note: in expansion of macro ‘BUG’
224 | if (key == NULL) BUG;
| ^~~
Brown.cc: In function ‘void do_BRshifted(model*, gen_storage*)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Brown.cc:375:41: note: in expansion of macro ‘BUG’
375 | if (mem2loc[trendindex] != zeropos) BUG;
| ^~~
Brown.cc: In function ‘void OptimArea(model*)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Machine.h:186:14: note: in expansion of macro ‘BUG’
186 | } else BUG; \
| ^~~
Machine.h:195:31: note: in expansion of macro ‘PARAMALLOC’
195 | #define PALLOC(IDX, ROW, COL) PARAMALLOC(cov, IDX, ROW, COL)
| ^~~~~~~~~~
Brown.cc:600:3: note: in expansion of macro ‘PALLOC’
600 | PALLOC(BR_OPTIMAREA, 1, minradius+1);
| ^~~~~~
In file included from RF.h:2061,
from questions.h:31,
from Brown.cc:34:
Error.h:57:68: error: format not a string literal and no format arguments [-Werror=format-security]
57 | #define XERR(X) {LOCAL_MSG; /* UERR; */ errorMSG(X, MSG); RFERROR(MSG);}
| ^~~
Machine.h:192:7: note: in expansion of macro ‘XERR’
192 | XERR(ERRORMEMORYALLOCATION) \
| ^~~~
Machine.h:195:31: note: in expansion of macro ‘PARAMALLOC’
195 | #define PALLOC(IDX, ROW, COL) PARAMALLOC(cov, IDX, ROW, COL)
| ^~~~~~~~~~
Brown.cc:600:3: note: in expansion of macro ‘PALLOC’
600 | PALLOC(BR_OPTIMAREA, 1, minradius+1);
| ^~~~~~
Brown.cc: In function ‘int prepareBRoptim(model*)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Brown.cc:678:68: note: in expansion of macro ‘BUG’
678 | if (sBR->m3.countvector != NULL || sBR->m3.areamatrix != NULL) BUG;
| ^~~
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Machine.h:186:14: note: in expansion of macro ‘BUG’
186 | } else BUG; \
| ^~~
Machine.h:195:31: note: in expansion of macro ‘PARAMALLOC’
195 | #define PALLOC(IDX, ROW, COL) PARAMALLOC(cov, IDX, ROW, COL)
| ^~~~~~~~~~
Brown.cc:712:3: note: in expansion of macro ‘PALLOC’
712 | PALLOC(BR_OPTIMAREA, 1, minradius + 1);
| ^~~~~~
Error.h:57:68: error: format not a string literal and no format arguments [-Werror=format-security]
57 | #define XERR(X) {LOCAL_MSG; /* UERR; */ errorMSG(X, MSG); RFERROR(MSG);}
| ^~~
Machine.h:192:7: note: in expansion of macro ‘XERR’
192 | XERR(ERRORMEMORYALLOCATION) \
| ^~~~
Machine.h:195:31: note: in expansion of macro ‘PARAMALLOC’
195 | #define PALLOC(IDX, ROW, COL) PARAMALLOC(cov, IDX, ROW, COL)
| ^~~~~~~~~~
Brown.cc:712:3: note: in expansion of macro ‘PALLOC’
712 | PALLOC(BR_OPTIMAREA, 1, minradius + 1);
| ^~~~~~
Brown.cc: In function ‘int structBRuser(model*, model**)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
RF.h:1682:31: note: in expansion of macro ‘BUG’
1682 | if ((cov)->S##new == NULL) BUG; \
| ^~~
RF.h:1687:3: note: in expansion of macro ‘ONCE_NEW_COV_STORAGE’
1687 | ONCE_NEW_COV_STORAGE(cov, new)
| ^~~~~~~~~~~~~~~~~~~~
Brown.cc:1002:3: note: in expansion of macro ‘ONCE_NEW_STORAGE’
1002 | ONCE_NEW_STORAGE(gen);
| ^~~~~~~~~~~~~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Machine.h:186:14: note: in expansion of macro ‘BUG’
186 | } else BUG; \
| ^~~
Brown.cc:1050:7: note: in expansion of macro ‘PARAMALLOC’
1050 | PARAMALLOC(cov->key, BR_OPTIMAREA, cov->nrow[BR_OPTIMAREA],
| ^~~~~~~~~~
Error.h:57:68: error: format not a string literal and no format arguments [-Werror=format-security]
57 | #define XERR(X) {LOCAL_MSG; /* UERR; */ errorMSG(X, MSG); RFERROR(MSG);}
| ^~~
Machine.h:192:7: note: in expansion of macro ‘XERR’
192 | XERR(ERRORMEMORYALLOCATION) \
| ^~~~
Brown.cc:1050:7: note: in expansion of macro ‘PARAMALLOC’
1050 | PARAMALLOC(cov->key, BR_OPTIMAREA, cov->nrow[BR_OPTIMAREA],
| ^~~~~~~~~~
Brown.cc: In function ‘int structBRintern(model*, model**)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
RF.h:1682:31: note: in expansion of macro ‘BUG’
1682 | if ((cov)->S##new == NULL) BUG; \
| ^~~
RF.h:1687:3: note: in expansion of macro ‘ONCE_NEW_COV_STORAGE’
1687 | ONCE_NEW_COV_STORAGE(cov, new)
| ^~~~~~~~~~~~~~~~~~~~
Brown.cc:1094:3: note: in expansion of macro ‘ONCE_NEW_STORAGE’
1094 | ONCE_NEW_STORAGE(gen);
| ^~~~~~~~~~~~~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
RF.h:1672:32: note: in expansion of macro ‘BUG’
1672 | if ((cov)->S##new == NULL) BUG; \
| ^~~
RF.h:1676:3: note: in expansion of macro ‘NEW_COV_STORAGE_WITH_SAVE’
1676 | NEW_COV_STORAGE_WITH_SAVE(cov, new)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Brown.cc:1095:3: note: in expansion of macro ‘NEW_STORAGE_WITH_SAVE’
1095 | NEW_STORAGE_WITH_SAVE(br);
| ^~~~~~~~~~~~~~~~~~~~~
Brown.cc: In function ‘void brnormed()’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Brown.cc:1489:3: note: in expansion of macro ‘BUG’
1489 | BUG;
| ^~~
Brown.cc: In function ‘int check_brnormed(model*)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Machine.h:287:74: note: in expansion of macro ‘BUG’
287 | /* || !equalsIsotropic(OWNISO(1)) */ )) BUG;}
| ^~~
Brown.cc:1498:3: note: in expansion of macro ‘ASSERT_ONESYSTEM’
1498 | ASSERT_ONESYSTEM;
| ^~~~~~~~~~~~~~~~
Brown.cc: In function ‘int struct_brnormed(model*, model**)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
RF.h:1672:32: note: in expansion of macro ‘BUG’
1672 | if ((cov)->S##new == NULL) BUG; \
| ^~~
RF.h:1676:3: note: in expansion of macro ‘NEW_COV_STORAGE_WITH_SAVE’
1676 | NEW_COV_STORAGE_WITH_SAVE(cov, new)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Brown.cc:1578:3: note: in expansion of macro ‘NEW_STORAGE_WITH_SAVE’
1578 | NEW_STORAGE_WITH_SAVE(br);
| ^~~~~~~~~~~~~~~~~~~~~
Brown.cc: In function ‘void NormedSimulation(model*, gen_storage*)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Brown.cc:1665:5: note: in expansion of macro ‘BUG’
1665 | BUG;
| ^~~
Brown.cc: In function ‘int init_brnormed(model*, gen_storage*)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Machine.h:186:14: note: in expansion of macro ‘BUG’
186 | } else BUG; \
| ^~~
Machine.h:195:31: note: in expansion of macro ‘PARAMALLOC’
195 | #define PALLOC(IDX, ROW, COL) PARAMALLOC(cov, IDX, ROW, COL)
| ^~~~~~~~~~
Brown.cc:1749:5: note: in expansion of macro ‘PALLOC’
1749 | PALLOC(NORMED_PROB, total, 1);
| ^~~~~~
Error.h:57:68: error: format not a string literal and no format arguments [-Werror=format-security]
57 | #define XERR(X) {LOCAL_MSG; /* UERR; */ errorMSG(X, MSG); RFERROR(MSG);}
| ^~~
Machine.h:192:7: note: in expansion of macro ‘XERR’
192 | XERR(ERRORMEMORYALLOCATION) \
| ^~~~
Machine.h:195:31: note: in expansion of macro ‘PARAMALLOC’
195 | #define PALLOC(IDX, ROW, COL) PARAMALLOC(cov, IDX, ROW, COL)
| ^~~~~~~~~~
Brown.cc:1749:5: note: in expansion of macro ‘PALLOC’
1749 | PALLOC(NORMED_PROB, total, 1);
| ^~~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Brown.cc:1780:26: note: in expansion of macro ‘BUG’
1780 | if (key == NULL) BUG;
| ^~~
In file included from /usr/lib/R/site-library/RandomFieldsUtils/include/RFU.h:4,
from /usr/lib/R/site-library/RandomFieldsUtils/include/General_utils.h:33,
from Brown.cc:32:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
Brown.cc:1874:9: note: in expansion of macro ‘WARN2’
1874 | WARN2("'%.50s'=%d is very large", KNAME(NORMED_NTH), nth);
| ^~~~~
Brown.cc: In function ‘void do_brnormed(model*, gen_storage*)’:
/usr/lib/R/site-library/RandomFieldsUtils/include/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);}
| ^~~~~
/usr/lib/R/site-library/RandomFieldsUtils/include/Basic_utils.h:227:5: note: in expansion of macro ‘RFERROR4’
227 | RFERROR4("Severe error occured in function '%.50s' (file '%.50s', line %d).%.200s", \
| ^~~~~~~~
Brown.cc:1909:7: note: in expansion of macro ‘BUG’
1909 | BUG;
| ^~~
cc1plus: some warnings being treated as errors
make[1]: *** [/usr/lib/R/etc/Makeconf:202: Brown.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 ‘RandomFields’
* removing ‘/<<PKGBUILDDIR>>/debian/r-cran-randomfields/usr/lib/R/site-library/RandomFields’
dh_auto_install: error: xvfb-run --auto-servernum --server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" R CMD INSTALL -l /<<PKGBUILDDIR>>/debian/r-cran-randomfields/usr/lib/R/site-library --clean . "--built-timestamp='Sat, 12 Feb 2022 23:40:29 +0100'" 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