kaskr/adcomp

TMB upgrade from 1.9.11 to 1.9.12 fails under R 4.4.1

lghunsicker opened this issue · 4 comments

Description:

TMB upgrade from 1.9.11 to 1.9.12 fails under R 4.4.1. The upgrade works correctly under R 4.3.3. The problem is probably due to the update of Matrix under R 4.4.0+.

...
gcc -I"C:/PROGRA1/R/R-441.1RC/include" -DNDEBUG -I'C:/Larry/R/win-library/4.4/Matrix/include' -I'C:/Larry/R/win-library/4.4/RcppEigen/include' -I"C:/rtools44/x86_64-w64-mingw32.static.posix/include" -fopenmp -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c local_stubs.c -o local_stubs.o
local_stubs.c:4:10: fatal error: Matrix_stubs.c: No such file or directory
4 | #include "Matrix_stubs.c"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [C:/PROGRA1/R/R-441.1RC/etc/x64/Makeconf:289: local_stubs.o] Error 1
ERROR: compilation failed for package 'TMB'

  • removing 'C:/Larry/R/win-library/4.4/TMB'
  • restoring previous 'C:/Larry/R/win-library/4.4/TMB'
    Warning in install.packages :
    installation of package ‘TMB’ had non-zero exit status

Reproducible Steps:

See above

Current Output:

See above

Expected Output:

Correct update of package

TMB Version:

See above

R Version:

See above

Operating System:

Windows 11 updated.

I would have expected the folder C:/Larry/R/win-library/4.4/Matrix/include to contain Matrix_stubs.c. Which version of Matrix are you using?

Just checked that the Matrix-1.7.0 source has inst/include/Matrix_stubs.c as expected. I don't know what has gone wrong with your installation, but this is not an issue with TMB or the Matrix package.