Open wookietreiber opened 6 years ago
An alternative solution is editing the make to not include the variant calling sources given that they aren't required to generate the contigs. We have done that on the latest but unstable branch.
Just in case this would be helpful, I was able to install w2rap-contigger by installing gcc6 using conda:
conda create -n w2rap -c omgarcia gcc-6 conda activate w2rap
cmake -D CMAKE_CXX_COMPILER=g++ . make -j 4
tested compilers
The compiler I used (current Arch Linux):
I suppose, other GCC versions, i.e. 7+, are affected as well, because GCC changes default compiler flags between major releases. At another system, I compiled using a GCC from the 6 series and there were no problems:
error messages
The error is this one:
analysis / probable fix
As far as I can tell, the ambiguity can be resolved, across all compiler versions, by explicitly casting the expression inside the
abs
call to the correct type, e.g.:Useful:
Note: I used
long double
here just to get it to compile and to test #30, don't know if that's the correct type. I didn't want to look at the codebase in depth to figure it out, but you surely can ;)