Running ‘tinytest.R’ [4s/6s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
  > 
  > if (requireNamespace("tinytest", quietly=TRUE) &&
  +   utils::packageVersion("tinytest") >= "1.1.0") {
  + 
  +   ## Set a seed to make the tests deterministic
  +   set.seed(42)
  + 
  +   tinytest::test_package("inline")
  + }
  
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    1 tests [0;32mOK[0m 
  test_cfunction.R..............    1 tests [0;32mOK[0m 
  test_cfunction.R..............    2 tests [0;32mOK[0m 
  test_cfunction.R..............    3 tests [0;32mOK[0m 
  test_cfunction.R..............    3 tests [0;32mOK[0m 
  test_cfunction.R..............    3 tests [0;32mOK[0m 
  test_cfunction.R..............    3 tests [0;32mOK[0m 
  test_cfunction.R..............    4 tests [0;32mOK[0m 
  test_cfunction.R..............    4 tests [0;32mOK[0m 
  test_cfunction.R..............    4 tests [0;32mOK[0m 
  test_cfunction.R..............    4 tests [0;32mOK[0m 
  test_cfunction.R..............    5 tests [0;32mOK[0m 
  test_cfunction.R..............    5 tests [0;32mOK[0m 
  test_cfunction.R..............    5 tests [0;32mOK[0m 
  test_cfunction.R..............    5 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    8 tests [0;32mOK[0m 
  test_cfunction.R..............    9 tests [0;32mOK[0m 
  test_cfunction.R..............    9 tests [0;32mOK[0m 
  test_cfunction.R..............    9 tests [0;32mOK[0m 
  test_cfunction.R..............    9 tests [0;32mOK[0m 
  test_cfunction.R..............   10 tests [0;32mOK[0m 
  test_cfunction.R..............   11 tests [0;32mOK[0m [0;34m5.0s[0m
  
  test_cxxfunction.R............    0 tests    
  ERROR(s) during compilation: source code errors or compiler configuration errors!
  make cmd is
    make -f '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf' -f '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/share/make/shlib.mk' -f '/home/hornik/.R/Makevars-gcc' SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB='file22a925235c41ea.so' CXX_DEFS=-DR_NO_REMAP XDEFS=-DSTRICT_R_HEADERS=1 OBJECTS='file22a925235c41ea.o'
  
  make would use
  make[1]: Entering directory '/tmp/RtmpO9rzPl'
  g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1  -fpic  -g -O2 -Wall -pedantic -mtune=native  -DR_NO_REMAP -c file22a925235c41ea.cpp -o file22a925235c41ea.o
  if test  "zfile22a925235c41ea.o" != "z"; then \
    echo g++-14 -std=gnu++17 -shared -L"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib" -Wl,-O1 -o file22a925235c41ea.so file22a925235c41ea.o    -L"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib" -lR; \
    g++-14 -std=gnu++17 -shared -L"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib" -Wl,-O1 -o file22a925235c41ea.so file22a925235c41ea.o    -L"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib" -lR; \
  fi
  make[1]: Leaving directory '/tmp/RtmpO9rzPl'
  
  Program source:
    1: 
    2: // includes from the plugin
    3: 
    4: #include <R.h>
    5: #include <Rdefines.h>
    6: #include <R_ext/Error.h>
    7: 
    8: 
    9: // user includes
   10: 
   11: 
   12: // declarations
   13: extern "C" {
   14: SEXP file22a925235c41ea( SEXP x, SEXP y) ;
   15: }
   16: 
   17: // definition
   18: SEXP file22a925235c41ea(SEXP x, SEXP y) {
   19: return ScalarReal(INTEGER(x)[0] * REAL(y)[0]);
   20: Rf_warning("your C++ program does not return anything");
   21: return R_NilValue;
   22: }
  
  Compilation ERROR, function(s)/method(s) not created!
  Error in compileCode(f, code, language = language, verbose = verbose) : 
    using C++ compiler: ‘g++-14 (Debian 14.2.0-1) 14.2.0’file22a925235c41ea.cpp: In function ‘SEXPREC* file22a925235c41ea(SEXP, SEXP)’:file22a925235c41ea.cpp:19:8: error: ‘ScalarReal’ was not declared in this scope; did you mean ‘Rf_ScalarReal’?   19 | return ScalarReal(INTEGER(x)[0] * REAL(y)[0]);      |        ^~~~~~~~~~      |        Rf_ScalarRealmake[1]: *** [/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf:204: file22a925235c41ea.o] Error 1
  Calls: <Anonymous> ... lapply -> FUN -> eval -> eval -> cxxfunction -> compileCode
  Execution halted