fsolt / dem_mood

1 stars 0 forks source link

Codes unable to go through #7

Closed sammo3182 closed 1 year ago

sammo3182 commented 2 years ago

Fred @fsolt, I can't get through the following codes. R returned an error like this:

  make -f "D:/R/Rdevel/etc/x64/Makeconf" -f "D:/R/Rdevel/share/make/winshlib.mk" CXX='$(CXX14) $(CXX14STD)' CXXFLAGS='$(CXX14FLAGS)' CXXPICFLAGS='$(CXX14PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX14LDFLAGS)' SHLIB_LD='$(SHLIB_CXX14LD)' SHLIB="file588c69991ed1.dll" WIN=64 TCLBIN= OBJECTS="file588c69991ed1.o"

make would use
if test "zfile588c69991ed1.o" != "z"; then \
  if test -e "file588c69991ed1-win.def"; then \
    echo D:/R/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file588c69991ed1.dll file588c69991ed1-win.def file588c69991ed1.o  -L"c:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64" -L"c:/rtools42/x86_64-w64-mingw32.static.posix/lib"  -L"D:/R/Rdevel/bin/x64" -lR ; \
    D:/R/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file588c69991ed1.dll file588c69991ed1-win.def file588c69991ed1.o  -L"c:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64" -L"c:/rtools42/x86_64-w64-mingw32.static.posix/lib"  -L"D:/R/Rdevel/bin/x64" -lR ; \
  else \
    echo EXPORTS > tmp.def; \
    D:/R/rtools40/mingw64/bin/nm file588c69991ed1.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g'  >> tmp.def; \
    echo D:/R/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file588c69991ed1.dll tmp.def file588c69991ed1.o  -L"c:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64" -L"c:/rtools42/x86_64-w64-mingw32.static.posix/lib"  -L"D:/R/Rdevel/bin/x64" -lR ; \
    D:/R/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file588c69991ed1.dll tmp.def file588c69991ed1.o  -L"c:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64" -L"c:/rtools42/x86_64-w64-mingw32.static.posix/lib"  -L"D:/R/Rdevel/bin/x64" -lR ; \
    rm -f tmp.def; \
  fi \
fi
Error in compileCode(f, code, language = language, verbose = verbose) : 
  D:/R/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: file588c69991ed1.o:file588c69991ed1.cpp:(.text$_ZN3tbb8internal26task_scheduler_observer_v3D1Ev[_ZN3tbb8internal26task_scheduler_observer_v3D1Ev]+0x14): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'D:/R/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: file588c69991ed1.o:file588c69991ed1.cpp:(.text$_ZN3tbb8internal26task_scheduler_observer_v3D0Ev[_ZN3tbb8internal26task_scheduler_observer_v3D0Ev]+0x1c): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'D:/R/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: file588c69991ed1.o:file588c69991ed1.cpp:(.text$_ZN3tbb10interface623task_scheduler_observerD0Ev[_ZN3tbb10interface623task_scheduler_observerD0Ev]+0x1c): undefined reference to `tbb::internal::task_scheduler_o
Error in sink(type = "output") : invalid connection

I'm not quite sure this's a problem with windows or the codes. Cassandra @Tyhcass, do you mind having a try of the codes to see if it works on your machine? In the meantime, Fred @fsolt, do you mind sending me the claassen_m5.rda? Thanks!

https://github.com/fsolt/dem_mood/blob/ee97a28a865bc3428c96959a7cfaf408d69be0db/R/compare_supdem_cri.R#L237-L244

fsolt commented 2 years ago

I'm working on adding code to the Rmd to replace these data file reads, but my internet is painfully slow here in Madrid. Hopefully better tomorrow in Konstanz (and with more time to work, too). I'll tag you when I get that done.

Thoughts on the text?

sammo3182 commented 2 years ago

The paper is well structured! Also, the reference to Barchard and Pace (2011) is so amazing, ha-ha! How did you find it! The current version doesn't sound as strong as our APSR one, though. Do you mind if I make a revision (if I have time after figuring out the comparison plot :P)

fsolt commented 2 years ago

I'm tempted to say those country-by-country plots we discussed before aren't really necessary--and they'd have to go in the appendix anyway since there's no more room in the manuscript. So please prioritize your ideas for the text