Open mathog opened 4 years ago
In case anybody else runs into this, for the files maqread.cpp, bamread.cpp, and bed2vector.cpp modify so that they look like this (add the last line):
using namespace std;
using namespace __gnu_cxx;
#define hash __gnu_cxx::hash // resolve std::hash vs. __gnu_cxx::hash collision otherwise present
It appears that when this code was written there was no std::hash so these lines:
hash_map<string, int, hash<string>,equal_to<string> > cind_map;
were unambiguously the __gnu_cxx::hash. In more recent c++ compilers there are two and g++ is picking std::hash instead of __gnu_cxx::hash, which is not compatible with the template.
After installing RSEM (and the R packages caTools, data.table, GenomicRanges, and ShortRead, all newer versions than are listed in pRSEM/installRLib.R) commented out the stanza that loads those packages (to skip needless reinstallation) and in main RSEM level ran:
make pRSEM
that fails with:
Modified RSEM/pRSEM/phantompeakqualtools/spp_1.10.1_on_R3.3/src/Makevars.in to
PKG_CXXFLAGS=-I./ -I/usr/include/boost169 -D_FASTMAP -DMAQ_LONGREADS @HAVE_LIBBZ2@
Returned to pRSEM level and did "make clean", then to top level and once again didmake pRSEM
which failed at:This was using gcc 7.3.1 and R 3.6.1. Suggestions?
Thank you.