bioinfologics / w2rap-contigger

An Illumina PE genome contig assembler, can handle large (17Gbp) complex (hexaploid) genomes.
http://bioinfologics.github.io/the-w2rap-contigger/
MIT License
44 stars 14 forks source link

Installation error #45

Open vtrinca opened 4 years ago

vtrinca commented 4 years ago

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.
shenweima commented 3 years ago

yes , I also get the same error

amvarani commented 3 years ago

same here. any solution?

bjclavijo commented 3 years ago

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.

yuzhenpeng commented 2 years ago

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

shenweima commented 2 years ago

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

I use docker image

yuzhenpeng commented 1 year ago

https://github.com/bioinfologics/w2rap-contigger/issues/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