soapdenovo2 r239 compilation failure

292 views
Skip to first unread message

olivier sallou

unread,
Jul 1, 2013, 6:04:28 AM7/1/13
to bgi-...@googlegroups.com
Hi,
I took soapdenovo2 r239 but it fails to compile (make). Here are extract
logs:

osallou@debiansid:/tmp/soapdenovo2-239+dfsg.orig$ make
make[1]: Entering directory `/tmp/soapdenovo2-239+dfsg.orig/sparsePregraph'
pregraph_sparse_63mer.v1.0.3 cleaning done.
multi_threads.cpp: In function ‘void* threadRoutine(void*)’:
multi_threads.cpp:93:14: error: ‘usleep’ was not declared in this scope
multi_threads.cpp: In function ‘void sendWorkSignal(unsigned char,
unsigned char*)’:
multi_threads.cpp:115:15: error: ‘usleep’ was not declared in this scope
Error in command: g++ -c -O4 -fomit-frame-pointer -static -D_63MER_ -m64
-I./inc multi_threads.cpp
build_preArc.cpp: In function ‘void build_preArc_threaded(preArc_array*,
vertex_hash2*, int, int, std::vector<std::basic_string<char> >*, int)’:
build_preArc.cpp:1071:39: error: ‘usleep’ was not declared in this scope
Error in command: g++ -c -O4 -fomit-frame-pointer -static -D_63MER_ -m64
-I./inc build_preArc.cpp
pregraph_sparse.cpp: In function ‘int call_pregraph_sparse(int, char**)’:
pregraph_sparse.cpp:171:42: error: ‘usleep’ was not declared in this scope
pregraph_sparse.cpp:284:42: error: ‘usleep’ was not declared in this scope
pregraph_sparse.cpp: In function ‘void initenv(int, char**)’:
pregraph_sparse.cpp:504:2: error: ‘optind’ was not declared in this scope
pregraph_sparse.cpp:507:64: error: ‘getopt’ was not declared in this scope
Error in command: g++ -c -O4 -fomit-frame-pointer -static -D_63MER_ -m64
-I./inc pregraph_sparse.cpp
make[1]: Leaving directory `/tmp/soapdenovo2-239+dfsg.orig/sparsePregraph'
make[1]: Entering directory
`/tmp/soapdenovo2-239+dfsg.orig/standardPregraph'
SOAPdenovo-63mer cleaning done.
make[1]: Leaving directory `/tmp/soapdenovo2-239+dfsg.orig/standardPregraph'
standardPregraph/main.o: In function `main':
main.c:(.text.startup+0xfa): undefined reference to `call_pregraph_sparse'
collect2: error: ld returned 1 exit status
make: *** [SOAPdenovo-63mer] Error 1

I am on Debian with gcc version 4.7.2 (Debian 4.7.2-5)

Any idea of what is wrong in make ?
Reply all
Reply to author
Forward
0 new messages