Hi RStudio Community!
Wanted to see if anyone has a solution to this Shiny app deployment error that compilation had failed for package 'RcppEigen’, hoping to get to resolve this to get an app published. Appreciate your thoughts and help!
Sophia
[Connect] 2023/01/14 04:41:55.052064900 [1] "Command failed (1)\n\nFailed to run system command:\n\n\t'/usr/lib64/R/bin/R' --vanilla CMD INSTALL --preclean '/opt/rstudio-connect/mnt/tmp/RtmpguzGUF/RcppEigen' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.6.0' --install-tests --no-docs --no-multiarch --no-demo \n\nThe command failed with output:\n* installing *source* package ‘RcppEigen’ ...\n** package ‘RcppEigen’ successfully unpacked and MD5 sums checked\n** using staged installation\n** libs\ng++ -m64 -std=gnu++11 -I\"/usr/include/R\" -DNDEBUG -I\"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.6.0/Rcpp/include\" -I/usr/local/include -I../inst/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c RcppEigen.cpp -o RcppEigen.o\ng++ -m64 -std=gnu++11 -I\"/usr/include/R\" -DNDEBUG -I\"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gn
[Connect] u/3.6.0/Rcpp/include\" -I/usr/local/include -I../inst/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c RcppExports.cpp -o RcppExports.o\ng++ -m64 -std=gnu++11 -I\"/usr/include/R\" -DNDEBUG -I\"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.6.0/Rcpp/include\" -I/usr/local/include -I../inst/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c fastLm.cpp -o fastLm.o\ngcc -m64 -std=gnu99 -I\"/usr/include/R\" -DNDEBUG -I\"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.6.0/Rcpp/include\" -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c init.c -o init.o\nfastLm.cpp: In function ‘int lmsol::gesdd(Eigen::Matr
[Connect] ixXd&, Eigen::ArrayXd&, Eigen::MatrixXd&)’:\nfastLm.cpp:147:54: error: expected ‘)’ before ‘FCONE’\n &m, Vt.data(), &n, &wrk, &mone, &iwork[0], &info FCONE);\n ^\nfastLm.cpp:151:59: error: expected ‘)’ before ‘FCONE’\n &m, Vt.data(), &n, &work[0], &lwork, &iwork[0], &info FCONE);\n ^\nmake: *** [fastLm.o] Error 1\nERROR: compilation failed for package ‘RcppEigen’\n* removing ‘/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.6.0/RcppEigen’"
[Connect] 2023/01/14 04:41:55.052845235 Error: Command failed (1)
[Connect] 2023/01/14 04:41:55.052862170
[Connect] 2023/01/14 04:41:55.052919585 Failed to run system command:
[Connect] 2023/01/14 04:41:55.052923049
[Connect] 2023/01/14 04:41:55.052943626 '/usr/lib64/R/bin/R' --vanilla CMD INSTALL --preclean '/opt/rstudio-connect/mnt/tmp/RtmpguzGUF/RcppEigen' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.6.0' --install-tests --no-docs --no-multiarch --no-demo
[Connect] 2023/01/14 04:41:55.052953159
[Connect] 2023/01/14 04:41:55.052967937 The command failed with output:
[Connect] 2023/01/14 04:41:55.052970264 * installing *source* package ‘RcppEigen’ ...
[Connect] 2023/01/14 04:41:55.052980415 ** package ‘RcppEigen’ successfully unpacked and MD5 sums checked
[Connect] 2023/01/14 04:41:55.052982964 ** using staged installation
[Connect] 2023/01/14 04:41:55.052992590 ** libs
[Connect] 2023/01/14 04:41:55.052995118 g++ -m64 -std=gnu++11 -I"/usr/include/R" -DNDEBUG -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.6.0/Rcpp/include" -I/usr/local/include -I../inst/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c RcppEigen.cpp -o RcppEigen.o
[Connect] 2023/01/14 04:41:55.053009178 g++ -m64 -std=gnu++11 -I"/usr/include/R" -DNDEBUG -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.6.0/Rcpp/include" -I/usr/local/include -I../inst/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c RcppExports.cpp -o RcppExports.o
[Connect] 2023/01/14 04:41:55.053011432 g++ -m64 -std=gnu++11 -I"/usr/include/R" -DNDEBUG -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.6.0/Rcpp/include" -I/usr/local/include -I../inst/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c fastLm.cpp -o fastLm.o
[Connect] 2023/01/14 04:41:55.053021268 gcc -m64 -std=gnu99 -I"/usr/include/R" -DNDEBUG -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.6.0/Rcpp/include" -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c init.c -o init.o
[Connect] 2023/01/14 04:41:55.053026974 fastLm.cpp: In function ‘int lmsol::gesdd(Eigen::MatrixXd&, Eigen::ArrayXd&, Eigen::MatrixXd&)’:
[Connect] 2023/01/14 04:41:55.053041195 fastLm.cpp:147:54: error: expected ‘)’ before ‘FCONE’
[Connect] 2023/01/14 04:41:55.053048987 &m, Vt.data(), &n, &wrk, &mone, &iwork[0], &info FCONE);
[Connect] 2023/01/14 04:41:55.053065911 ^
[Connect] 2023/01/14 04:41:55.053069114 fastLm.cpp:151:59: error: expected ‘)’ before ‘FCONE’
[Connect] 2023/01/14 04:41:55.053083187 &m, Vt.data(), &n, &work[0], &lwork, &iwork[0], &info FCONE);
[Connect] 2023/01/14 04:41:55.053086509 ^
[Connect] 2023/01/14 04:41:55.053101897 make: *** [fastLm.o] Error 1
[Connect] 2023/01/14 04:41:55.053105173 ERROR: compilation failed for package ‘RcppEigen’