bioinfologics/w2rap-contigger

Installation error

vtrinca opened this issue · 6 comments

Hi,
When installing the w2rap-contigger I get the following error:

In file included from /mnt/HD2/seq_an/w2rap-contigger/src/kmers/KmerRecord.h:15,
                 from /mnt/HD2/seq_an/w2rap-contigger/src/kmers/KmerRecord.cc:11:
/mnt/HD2/seq_an/w2rap-contigger/src/kmers/KmerShape.h: In static member function ‘static KmerShapeId kmer_shape_zebra<K>::getId()’:
/mnt/HD2/seq_an/w2rap-contigger/src/kmers/KmerShape.h:566:49: error: could not convert ‘kmer_shape_zebra<K>::getStringId()’ from ‘String’ {aka ‘FeudalString<char>’} to ‘KmerShapeId’
  566 |  static KmerShapeId getId() { return getStringId(); }
      |                                      ~~~~~~~~~~~^~
      |                                                 |
      |                                                 String {aka FeudalString<char>}
[ 33%] Building CXX object CMakeFiles/hb_base_libs.dir/src/math/HoInterval.cc.o
make[2]: *** [CMakeFiles/hb_base_libs.dir/src/kmers/KmerRecord.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/base_libs.dir/all] Error 2
make[1]: *** [CMakeFiles/hb_base_libs.dir/all] Error 2
make: *** [all] Error 2

The compiler I used:

gcc --version
gcc (GCC) 10.1.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

yes , I also get the same error

same here. any solution?

Mmm, that is old code that's not used really, I think. But it never was prunned and it compiled OK with older GCCs.

Can you all confirm this is using GCC10? @shenweima @amvarani.

I may give it a try to compile with GCC10 in linux if that's the case.

I got the same problem. My gcc version is 8.5.
Any one can help me ?

I got the same problem. My gcc version is 8.5. Any one can help me ?

I use docker image

#31
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