Hi all!
Can someone tell me, if it is possible to use BWA in windows, and if it is, then how can I install it?
I was told, that I should install a program called Cygwin, and use it to build BWA from the source. I've never done anything like this, so its quite possible that I'm doing it wrong, here is how I tried to do it:
I managed to get to the directory in cygwin, where the source files are, then typed ./configure . However, I got an error that there is no such file or directory. I checked the directory, and there really aren't configure files in the source (I don't know, if this is normal). So I thought okay, im gonna skip the configure part, and jump to the make part. I typed make, and got a whole lot of errors:
$ make
gcc -c -g -Wall -O2 -DHAVE_PTHREAD QSufSort.c -o QSufSort.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwt_gen.c -o bwt_gen.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD utils.c -o utils.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwt.c -o bwt.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwtio.c -o bwtio.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwtaln.c -o bwtaln.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwtgap.c -o bwtgap.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD is.c -o is.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bntseq.c -o bntseq.o
bntseq.c: In function ‘ks_getuntil’:
bntseq.c:38:1: warning: array subscript has type ‘char’
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwtmisc.c -o bwtmisc.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwtindex.c -o bwtindex.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD ksw.c -o ksw.o
In file included from ksw.c:29:0:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/emmintrin.h:32:3: error: #error "SSE2 instruction set not enabled"
ksw.c:43:2: error: expected specifier-qualifier-list before ‘__m128i’
ksw.c: In function ‘ksw_qinit’:
ksw.c:55:3: error: ‘ksw_query_t’ has no member named ‘qp’
ksw.c:55:11: error: ‘__m128i’ undeclared (first use in this function)
ksw.c:55:11: note: each undeclared identifier is reported only once for each fun ction it appears in
ksw.c:55:19: error: expected expression before ‘)’ token
ksw.c:56:3: error: ‘ksw_query_t’ has no member named ‘H0’
ksw.c:56:11: error: ‘ksw_query_t’ has no member named ‘qp’
ksw.c:57:3: error: ‘ksw_query_t’ has no member named ‘H1’
ksw.c:57:11: error: ‘ksw_query_t’ has no member named ‘H0’
ksw.c:58:3: error: ‘ksw_query_t’ has no member named ‘E’
ksw.c:58:11: error: ‘ksw_query_t’ has no member named ‘H1’
ksw.c:59:3: error: ‘ksw_query_t’ has no member named ‘Hmax’
ksw.c:59:13: error: ‘ksw_query_t’ has no member named ‘E’
ksw.c:73:25: error: ‘ksw_query_t’ has no member named ‘qp’
ksw.c:82:27: error: ‘ksw_query_t’ has no member named ‘qp’
ksw.c: In function ‘ksw_sse2_16’:
ksw.c:98:2: error: ‘__m128i’ undeclared (first use in this function)
ksw.c:98:10: error: expected ‘;’ before ‘zero’
ksw.c:110:2: error: ‘zero’ undeclared (first use in this function)
ksw.c:110:2: warning: implicit declaration of function ‘_mm_set1_epi32’
ksw.c:111:2: error: ‘gapoe’ undeclared (first use in this function)
ksw.c:111:2: warning: implicit declaration of function ‘_mm_set1_epi8’
ksw.c:112:2: error: ‘gape’ undeclared (first use in this function)
ksw.c:113:2: error: ‘shift’ undeclared (first use in this function)
ksw.c:114:2: error: ‘H0’ undeclared (first use in this function)
ksw.c:114:8: error: ‘ksw_query_t’ has no member named ‘H0’
ksw.c:114:14: error: ‘H1’ undeclared (first use in this function)
ksw.c:114:20: error: ‘ksw_query_t’ has no member named ‘H1’
ksw.c:114:26: error: ‘E’ undeclared (first use in this function)
ksw.c:114:31: error: ‘ksw_query_t’ has no member named ‘E’
ksw.c:114:36: error: ‘Hmax’ undeclared (first use in this function)
ksw.c:114:44: error: ‘ksw_query_t’ has no member named ‘Hmax’
ksw.c:117:3: warning: implicit declaration of function ‘_mm_store_si128’
ksw.c:124:11: error: expected ‘;’ before ‘e’
ksw.c:125:3: error: ‘h’ undeclared (first use in this function)
ksw.c:125:3: warning: implicit declaration of function ‘_mm_load_si128’
ksw.c:126:3: warning: implicit declaration of function ‘_mm_slli_si128’
ksw.c:134:4: warning: implicit declaration of function ‘_mm_adds_epu8’
ksw.c:134:40: error: ‘S’ undeclared (first use in this function)
ksw.c:135:4: warning: implicit declaration of function ‘_mm_subs_epu8’
ksw.c:136:4: error: ‘e’ undeclared (first use in this function)
ksw.c:137:4: warning: implicit declaration of function ‘_mm_max_epu8’
ksw.c:138:24: error: ‘f’ undeclared (first use in this function)
ksw.c:139:4: error: ‘max’ undeclared (first use in this function)
ksw.c:161:5: warning: implicit declaration of function ‘_mm_movemask_epi8’
ksw.c:161:5: warning: implicit declaration of function ‘_mm_cmpeq_epi8’
ksw.c:167:3: warning: implicit declaration of function ‘_mm_srli_si128’
ksw.c:167:3: warning: implicit declaration of function ‘_mm_extract_epi16’
ksw.c: In function ‘ksw_sse2_8’:
ksw.c:208:2: error: ‘__m128i’ undeclared (first use in this function)
ksw.c:208:10: error: expected ‘;’ before ‘zero’
ksw.c:219:2: error: ‘zero’ undeclared (first use in this function)
ksw.c:220:2: error: ‘gapoe’ undeclared (first use in this function)
ksw.c:220:2: warning: implicit declaration of function ‘_mm_set1_epi16’
ksw.c:221:2: error: ‘gape’ undeclared (first use in this function)
ksw.c:222:2: error: ‘H0’ undeclared (first use in this function)
ksw.c:222:8: error: ‘ksw_query_t’ has no member named ‘H0’
ksw.c:222:14: error: ‘H1’ undeclared (first use in this function)
ksw.c:222:20: error: ‘ksw_query_t’ has no member named ‘H1’
ksw.c:222:26: error: ‘E’ undeclared (first use in this function)
ksw.c:222:31: error: ‘ksw_query_t’ has no member named ‘E’
ksw.c:222:36: error: ‘Hmax’ undeclared (first use in this function)
ksw.c:222:44: error: ‘ksw_query_t’ has no member named ‘Hmax’
ksw.c:232:11: error: expected ‘;’ before ‘e’
ksw.c:233:3: error: ‘h’ undeclared (first use in this function)
ksw.c:236:4: warning: implicit declaration of function ‘_mm_adds_epi16’
ksw.c:236:27: error: ‘S’ undeclared (first use in this function)
ksw.c:237:4: error: ‘e’ undeclared (first use in this function)
ksw.c:238:4: warning: implicit declaration of function ‘_mm_max_epi16’
ksw.c:239:25: error: ‘f’ undeclared (first use in this function)
ksw.c:240:4: error: ‘max’ undeclared (first use in this function)
ksw.c:242:4: warning: implicit declaration of function ‘_mm_subs_epu16’
ksw.c:258:5: warning: implicit declaration of function ‘_mm_cmpgt_epi16’
make: *** [ksw.o] Error 1
I would really appreciate, if someone could help me out with this.
Thanks, Attila Vikor
Can someone tell me, if it is possible to use BWA in windows, and if it is, then how can I install it?
I was told, that I should install a program called Cygwin, and use it to build BWA from the source. I've never done anything like this, so its quite possible that I'm doing it wrong, here is how I tried to do it:
I managed to get to the directory in cygwin, where the source files are, then typed ./configure . However, I got an error that there is no such file or directory. I checked the directory, and there really aren't configure files in the source (I don't know, if this is normal). So I thought okay, im gonna skip the configure part, and jump to the make part. I typed make, and got a whole lot of errors:
$ make
gcc -c -g -Wall -O2 -DHAVE_PTHREAD QSufSort.c -o QSufSort.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwt_gen.c -o bwt_gen.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD utils.c -o utils.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwt.c -o bwt.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwtio.c -o bwtio.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwtaln.c -o bwtaln.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwtgap.c -o bwtgap.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD is.c -o is.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bntseq.c -o bntseq.o
bntseq.c: In function ‘ks_getuntil’:
bntseq.c:38:1: warning: array subscript has type ‘char’
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwtmisc.c -o bwtmisc.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD bwtindex.c -o bwtindex.o
gcc -c -g -Wall -O2 -DHAVE_PTHREAD ksw.c -o ksw.o
In file included from ksw.c:29:0:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/emmintrin.h:32:3: error: #error "SSE2 instruction set not enabled"
ksw.c:43:2: error: expected specifier-qualifier-list before ‘__m128i’
ksw.c: In function ‘ksw_qinit’:
ksw.c:55:3: error: ‘ksw_query_t’ has no member named ‘qp’
ksw.c:55:11: error: ‘__m128i’ undeclared (first use in this function)
ksw.c:55:11: note: each undeclared identifier is reported only once for each fun ction it appears in
ksw.c:55:19: error: expected expression before ‘)’ token
ksw.c:56:3: error: ‘ksw_query_t’ has no member named ‘H0’
ksw.c:56:11: error: ‘ksw_query_t’ has no member named ‘qp’
ksw.c:57:3: error: ‘ksw_query_t’ has no member named ‘H1’
ksw.c:57:11: error: ‘ksw_query_t’ has no member named ‘H0’
ksw.c:58:3: error: ‘ksw_query_t’ has no member named ‘E’
ksw.c:58:11: error: ‘ksw_query_t’ has no member named ‘H1’
ksw.c:59:3: error: ‘ksw_query_t’ has no member named ‘Hmax’
ksw.c:59:13: error: ‘ksw_query_t’ has no member named ‘E’
ksw.c:73:25: error: ‘ksw_query_t’ has no member named ‘qp’
ksw.c:82:27: error: ‘ksw_query_t’ has no member named ‘qp’
ksw.c: In function ‘ksw_sse2_16’:
ksw.c:98:2: error: ‘__m128i’ undeclared (first use in this function)
ksw.c:98:10: error: expected ‘;’ before ‘zero’
ksw.c:110:2: error: ‘zero’ undeclared (first use in this function)
ksw.c:110:2: warning: implicit declaration of function ‘_mm_set1_epi32’
ksw.c:111:2: error: ‘gapoe’ undeclared (first use in this function)
ksw.c:111:2: warning: implicit declaration of function ‘_mm_set1_epi8’
ksw.c:112:2: error: ‘gape’ undeclared (first use in this function)
ksw.c:113:2: error: ‘shift’ undeclared (first use in this function)
ksw.c:114:2: error: ‘H0’ undeclared (first use in this function)
ksw.c:114:8: error: ‘ksw_query_t’ has no member named ‘H0’
ksw.c:114:14: error: ‘H1’ undeclared (first use in this function)
ksw.c:114:20: error: ‘ksw_query_t’ has no member named ‘H1’
ksw.c:114:26: error: ‘E’ undeclared (first use in this function)
ksw.c:114:31: error: ‘ksw_query_t’ has no member named ‘E’
ksw.c:114:36: error: ‘Hmax’ undeclared (first use in this function)
ksw.c:114:44: error: ‘ksw_query_t’ has no member named ‘Hmax’
ksw.c:117:3: warning: implicit declaration of function ‘_mm_store_si128’
ksw.c:124:11: error: expected ‘;’ before ‘e’
ksw.c:125:3: error: ‘h’ undeclared (first use in this function)
ksw.c:125:3: warning: implicit declaration of function ‘_mm_load_si128’
ksw.c:126:3: warning: implicit declaration of function ‘_mm_slli_si128’
ksw.c:134:4: warning: implicit declaration of function ‘_mm_adds_epu8’
ksw.c:134:40: error: ‘S’ undeclared (first use in this function)
ksw.c:135:4: warning: implicit declaration of function ‘_mm_subs_epu8’
ksw.c:136:4: error: ‘e’ undeclared (first use in this function)
ksw.c:137:4: warning: implicit declaration of function ‘_mm_max_epu8’
ksw.c:138:24: error: ‘f’ undeclared (first use in this function)
ksw.c:139:4: error: ‘max’ undeclared (first use in this function)
ksw.c:161:5: warning: implicit declaration of function ‘_mm_movemask_epi8’
ksw.c:161:5: warning: implicit declaration of function ‘_mm_cmpeq_epi8’
ksw.c:167:3: warning: implicit declaration of function ‘_mm_srli_si128’
ksw.c:167:3: warning: implicit declaration of function ‘_mm_extract_epi16’
ksw.c: In function ‘ksw_sse2_8’:
ksw.c:208:2: error: ‘__m128i’ undeclared (first use in this function)
ksw.c:208:10: error: expected ‘;’ before ‘zero’
ksw.c:219:2: error: ‘zero’ undeclared (first use in this function)
ksw.c:220:2: error: ‘gapoe’ undeclared (first use in this function)
ksw.c:220:2: warning: implicit declaration of function ‘_mm_set1_epi16’
ksw.c:221:2: error: ‘gape’ undeclared (first use in this function)
ksw.c:222:2: error: ‘H0’ undeclared (first use in this function)
ksw.c:222:8: error: ‘ksw_query_t’ has no member named ‘H0’
ksw.c:222:14: error: ‘H1’ undeclared (first use in this function)
ksw.c:222:20: error: ‘ksw_query_t’ has no member named ‘H1’
ksw.c:222:26: error: ‘E’ undeclared (first use in this function)
ksw.c:222:31: error: ‘ksw_query_t’ has no member named ‘E’
ksw.c:222:36: error: ‘Hmax’ undeclared (first use in this function)
ksw.c:222:44: error: ‘ksw_query_t’ has no member named ‘Hmax’
ksw.c:232:11: error: expected ‘;’ before ‘e’
ksw.c:233:3: error: ‘h’ undeclared (first use in this function)
ksw.c:236:4: warning: implicit declaration of function ‘_mm_adds_epi16’
ksw.c:236:27: error: ‘S’ undeclared (first use in this function)
ksw.c:237:4: error: ‘e’ undeclared (first use in this function)
ksw.c:238:4: warning: implicit declaration of function ‘_mm_max_epi16’
ksw.c:239:25: error: ‘f’ undeclared (first use in this function)
ksw.c:240:4: error: ‘max’ undeclared (first use in this function)
ksw.c:242:4: warning: implicit declaration of function ‘_mm_subs_epu16’
ksw.c:258:5: warning: implicit declaration of function ‘_mm_cmpgt_epi16’
make: *** [ksw.o] Error 1
I would really appreciate, if someone could help me out with this.
Thanks, Attila Vikor
Comment