All,
I am pretty much a PC tech type, haven't really done programming and someone at my work is trying to use RStudio to run a project and I am somewhat lost. They are getting this error when the compile runs.
Error in compileCode(f, code, language = language, verbose = verbose) : C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: file2558114c4609.o:file2558114c4609.cpp:(.text$_ZN3tbb8internal26task_scheduler_observer_v3D0Ev[_ZN3tbb8internal26task_scheduler_observer_v3D0Ev]+0x1c): undefined reference to tbb::internal::task_scheduler_observer_v3::observe(bool)'C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: file2558114c4609.o:file2558114c4609.cpp:(.text$_ZN3tbb10interface623task_scheduler_observerD1Ev[_ZN3tbb10interface623task_scheduler_observerD1Ev]+0x1c): undefined reference to
tbb::internal::task_scheduler_observer_v3::observe(bool)'C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: file2558114c4609.o:file2558114c4609.cpp:(.text$_ZN3tbb10interface623task_scheduler_observerD1Ev[_ZN3tbb10interface623task_scheduler_observerD1Ev]+0x37): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: file2558114c4609.o:file2558114c4609.cpp:(.text$_ZN3tbb10interfaceError in sink(type = "output") : invalid connection
Originally, I thought it was because they installed rtools themselves and I saw similar errors when the System viarables didn't have c:\rtools43 or whatever it is however I uninstalled and reinstalled as an admin and it added the variable, I checked to see if there were any before I uninstalled and I didn't see anything.
The odd thing is the same code they are using works on two Mac's but not on Windows. She also signed up for the Rstudio cloud session and it gave another error which is some the same and different:
make cmd is make -f '/opt/R/4.3.1/lib/R/etc/Makeconf' -f '/opt/R/4.3.1/lib/R/share/make/shlib.mk' CXX='(CXX14) (CXX14STD)' CXXFLAGS='(CXX14FLAGS)' CXXPICFLAGS='(CXX14PICFLAGS)' SHLIB_LDFLAGS='(SHLIB_CXX14LDFLAGS)' SHLIB_LD='(SHLIB_CXX14LD)' SHLIB='filede6251e533d.so' OBJECTS='filede6251e533d.o' make would useg++ -std=gnu++14 -I"/opt/R/4.3.1/lib/R/include" -DNDEBUG -I"/cloud/lib/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/" -I"/cloud/lib/x86_64-pc-linux-gnu-library/4.3/RcppEigen/include/" -I"/cloud/lib/x86_64-pc-linux-gnu-library/4.3/RcppEigen/include/unsupported" -I"/cloud/lib/x86_64-pc-linux-gnu-library/4.3/BH/include" -I"/cloud/lib/x86_64-pc-linux-gnu-library/4.3/StanHeaders/include/src/" -I"/cloud/lib/x86_64-pc-linux-gnu-library/4.3/StanHeaders/include/" -I"/cloud/lib/x86_64-pc-linux-gnu-library/4.3/RcppParallel/include/" -I"/cloud/lib/x86_64-pc-linux-gnu-library/4.3/rstan/include" -DEIGEN_NO_DEBUG -DBOOST_DISABLE_ASSERTS -DBOOST_PENDING_INTEGER_LOG2_HPP -DSTAN_THREADS -DBOOST_NO_AUTO_PTR -include '/cloud/lib/x86_64-pc-linux-gnu-library/4.3/StanHeaders/include/stan/math/prim/fun/Eigen.hpp' -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1 -I/usr/local/include -fpic -g -O2 -c filede6251e533d.cpp -o filede6251e533d.oif test "zfilede6251e533d.o" != "z"; then \ echo g++ -std=gnu++14 -shared -L"/opt/R/4.3.1/lib/R/lib" -L/usr/local/lib -o filede6251e533d.so filede6251e533d.o '/cloud/lib/x86_64-pc-linux-gnu-library/4.3/rstan/lib//libStanServices.a' -L'/cloud/lib/x86_64-pc-linux-gnu-library/4.3/StanHeaders/lib/' -lStanHeaders -L'/cloud/lib/x86_64-pc-linux-gnu-library/4.3/RcppParallel/lib/' -ltbb -L"/opt/R/4.3.1/lib/R/lib" -lR; \ g++ -std=gnu++14 -shared -L"/opt/R/4.3.1/lib/R/lib" -L/usr/local/lib -o filede6251e533d.so filede6251e533d.o '/cloud/lib/x86_64-pc-linux-gnu-library/4.3/rstan/lib//libStanServices.a' -L'/cloud/lib/x86_64-pc-linux-gnu-library/4.3/StanHeaders/lib/' -lStanHeaders -L'/cloud/lib/x86_64-pc-linux-gnu-library/4.3/RcppParallel/lib/' -ltbb -L"/opt/R/4.3.1/lib/R/lib" -lR; \fiError in compileCode(f, code, language = language, verbose = verbose) : using C++ compiler: ‘g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0’using C++14g++: fatal error: Killed signal terminated program cc1pluscompilation terminated.make: *** [/opt/R/4.3.1/lib/R/etc/Makeconf:200: filede6251e533d.o] Error 1
Any thoughts? Ideas? Thanks