[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

compilation failed for package 'RandomFields'



Hi,

when trying to update r-cran-randomfields I get the following error:

g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/RandomFieldsUtils/include'   -fopenmp   -fpic  -g -O2 -ffile-prefix-map=/build/r-base-PT7Nxy/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c Brown.cc -o Brown.o
In file included from RF.h:1898,
                 from questions.h:31,
                 from Brown.cc:34:
Brown.cc: In function 'void OptimArea(model*)':
Machine.h:185:11: error: 'ERR0' was not declared in this scope; did you mean 'ERR7'?
  185 |           ERR0("argument value recognized as distribution family although it should not. Maybe the error is caused by a non-existing variable."); \
      |           ^~~~
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*)':
Machine.h:185:11: error: 'ERR0' was not declared in this scope; did you mean 'ERR7'?
  185 |           ERR0("argument value recognized as distribution family although it should not. Maybe the error is caused by a non-existing variable."); \
      |           ^~~~
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**)':
Machine.h:185:11: error: 'ERR0' was not declared in this scope; did you mean 'ERR7'?
  185 |           ERR0("argument value recognized as distribution family although it should not. Maybe the error is caused by a non-existing variable."); \
      |           ^~~~
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 init_brnormed(model*, gen_storage*)':
Machine.h:185:11: error: 'ERR0' was not declared in this scope; did you mean 'ERR7'?
  185 |           ERR0("argument value recognized as distribution family although it should not. Maybe the error is caused by a non-existing variable."); \
      |           ^~~~
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);
      |     ^~~~~~
make[1]: *** [/usr/lib/R/etc/Makeconf:175: Brown.o] Error 1


You can read the full build log on Salsa-CI[1].

Kind regards

       Andreas.


[1] https://salsa.debian.org/r-pkg-team/r-cran-randomfields/-/jobs/2396798

-- 
http://fam-tille.de


Reply to: