ruanjue / wtdbg2

Redbean: A fuzzy Bruijn graph approach to long noisy reads assembly
GNU General Public License v3.0
504 stars 92 forks source link

Failed Build #177

Closed rracicot closed 4 years ago

rracicot commented 4 years ago

Failed to build wtdbg2, 8 warnings 1 error:

gcc -g3 -W -Wall -Wno-unused-but-set-variable -O4 -DVERSION="2.5" -DRELEASE="20190621" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -mpopcnt -msse4.2 -o kbm2 kbm.c ksw.c -lm -lrt -lpthread -lz clang: warning: -O4 is equivalent to -O3 [-Wdeprecated] clang: warning: -O4 is equivalent to -O3 [-Wdeprecated] warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option] In file included from kbm.c:20: In file included from ./kbm.h:25: ./dna.h:488:122: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] ...int idx){ return ((((BaseBank)obj)->size + 31) / 32 + 1) 8; idx = idx; }


In file included from kbm.c:20:
In file included from ./kbm.h:26:
In file included from ./filereader.h:30:
./chararray.h:65:6: warning: explicitly assigning value of variable of type 'int' to
      itself [-Wself-assign]
        idx = idx;
        ~~~ ^ ~~~
In file included from kbm.c:20:
In file included from ./kbm.h:28:
./bitsvec.h:92:6: warning: explicitly assigning value of variable of type 'int' to
      itself [-Wself-assign]
        idx = idx;
        ~~~ ^ ~~~
In file included from kbm.c:20:
In file included from ./kbm.h:29:
./bit2vec.h:46:6: warning: explicitly assigning value of variable of type 'int' to
      itself [-Wself-assign]
        idx = idx;
        ~~~ ^ ~~~
In file included from kbm.c:21:
In file included from ./kbmpoa.h:24:
In file included from ./wtpoa.h:23:
In file included from ./tripoa.h:23:
./poacns.h:34:9: warning:  ** ./poacns.h hasn't been tested in BIG_ENDIAN **
      [-W#pragma-messages]
#pragma message(" ** " __FILE__ " hasn't been tested in BIG_ENDIAN **\n")
        ^
In file included from kbm.c:21:
In file included from ./kbmpoa.h:24:
./wtpoa.h:77:31: warning: too many arguments in call to 'init_basebank'
        ctg->seq = init_basebank(2048);
                   ~~~~~~~~~~~~~     ^
./wtpoa.h:78:31: warning: too many arguments in call to 'init_basebank'
        ctg->cns = init_basebank(2048);
                   ~~~~~~~~~~~~~     ^
kbm.c:326:10: error: use of undeclared identifier '_proc_deamon'; did you mean
      '_sig_proc_deamon'?
                ncpu = _proc_deamon->ncpu;
                       ^~~~~~~~~~~~
                       _sig_proc_deamon
./mem_share.h:587:36: note: '_sig_proc_deamon' declared here
static struct _proc_deamon_struct* _sig_proc_deamon = NULL;
                                   ^
8 warnings and 1 error generated.
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
make: *** [kbm2] Error 1
ruanjue commented 4 years ago

Please compile the wtdbg2 in linux gcc.