refresh-bio / KMC

Fast and frugal disk based k-mer counter
266 stars 73 forks source link

compile issue #49

Closed conchoecia closed 6 years ago

conchoecia commented 6 years ago

Hello, ran into this problem with make today:

g++ -Wall -O3 -m64 -static -Wl,--whole-archive -lpthread -Wl,--no-whole-archive -std=c++11  -c kmer_counter/kmer_counter.cpp -o kmer_counter/kmer_counter.o
In file included from /usr/local/include/assert.h:5:0,
                 from /usr/include/c++/5/cassert:43,
                 from kmer_counter/radix.h:13,
                 from kmer_counter/kb_collector.h:18,
                 from kmer_counter/kmc.h:26,
                 from kmer_counter/kmer_counter.cpp:18:
/usr/local/include/except.h:15:32: error: conflicting declaration ‘typedef struct Except_Frame_T* Except_Frame_T’
 typedef struct Except_Frame_T *Except_Frame_T;
                                ^
/usr/local/include/except.h:15:16: note: previous declaration as ‘struct Except_Frame_T’
 typedef struct Except_Frame_T *Except_Frame_T;
                ^
/usr/local/include/except.h:17:18: error: field ‘prev’ has incomplete type ‘Except_Frame_T’
   Except_Frame_T prev;
                  ^
/usr/local/include/except.h:16:8: note: definition of ‘struct Except_Frame_T’ is not complete until the closing brace
 struct Except_Frame_T {
        ^
makefile:79: recipe for target 'kmer_counter/kmer_counter.o' failed
make: *** [kmer_counter/kmer_counter.o] Error 1
marekkokot commented 6 years ago

Hi,

Sorry for the late response. I am not sure what causes this issue, I am not able to reproduce it. After a while of googling I was able to find this thread: https://github.com/isovic/graphmap/issues/77

Maybe the following will help: https://github.com/isovic/graphmap/issues/77#issuecomment-342840966 but I am not sure, notice the warning.

Let me know if you were able to solve the problem.

conchoecia commented 6 years ago

No worries - I was never able to get it to compile, but I just downloaded one the binaries from the main KMC website and got that to run fine. I'll leave the issue open but feel free to close it if you'd like?

marekkokot commented 6 years ago

Ok. Thanks for the info and for using KMC. In case of any other questions don't hesitate and ask.