--
You received this message because you are subscribed to a topic in the Google Groups "Broad Viral Tool Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/viral-tool-users/r-AVQsaRj-c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to viral-tool-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I've been able to get around this problem. Building VPhaser2 on mac OS X (I run v10.11 El Capitan) runs into problems because OS X has substituted the clang/llmv compiler for g++ in recent releases. So when you call g++ or gcc, you are actually calling clang. The VPhaser2 build fails because clang doesn't connect to openmp, at least not using the -fopenmp flag. I am not an expert on all this, but this is what I've gathered.
Looking through some posts there seemed to be two options (1) install openmp and then link using clang or (2) install g++ in Mac OS. I went with the second option.
Installing g++ was easy (although took about 2 hours including build) using these directions.
https://solarianprogrammer.com/2015/05/01/compiling-gcc-5-mac-os-x/
I then went on to build VPhaser2 using the provided makefile. One change that needs to be made is that the makefile COMPILER option needs to be changed to the following (I added the g++-5.2.0 path to my PATH):
COMPILER=g++-5.2.0
Note that if you use gcc-5.2.0 the build won't work, apparently due to differences in g++ and gcc standard library files. So use g++-5.2.0.
BUT, I then ran into another problem similar to that noted in the post here
https://groups.google.com/forum/#!topic/viral-tool-users/JVp5RIxj8N8
I was able to fix this problem by just adding
#include <climits>
to bam_manip.cpp (found in src folder of VPhaser2). I did also reinstall bamtools using g++-5.2.0 rather than the OS X gcc (i.e. clang). I'm not sure if this made any difference, but at some point I had problems linking to bamtools when I built VPhaser2 using g++-5.2.0.
Best,
Sivan
--
You received this message because you are subscribed to the Google Groups "Broad Viral Tool Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to viral-tool-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to viral-tool-use...@googlegroups.com.