I'm trying to complie BWA on my Linux (Fedora 9, x86_64) box from bwa-0.6.4 source. But, when I type 'make',
make[1]: Entering directory `/usr/local/bwa-0.4.6'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/usr/local/bwa-0.4.6'
make[1]: Entering directory `/usr/local/bwa-0.4.6/bwt_gen'
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD bwt_gen.c -o bwt_gen.o
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD QSufSort.c -o QSufSort.o
ar -cru libbwtgen.a bwt_gen.o QSufSort.o
make[1]: Leaving directory `/usr/local/bwa-0.4.6/bwt_gen'
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD utils.c -o utils.o
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD bwt.c -o bwt.o
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD bwtio.c -o bwtio.o
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD bwtaln.c -o bwtaln.o
bwtaln.c: In function ‘bwa_aln’:
bwtaln.c:227: warning: implicit declaration of function ‘getopt’
bwtaln.c:230: error: ‘optarg’ undeclared (first use in this function)
bwtaln.c:230: error: (Each undeclared identifier is reported only once
bwtaln.c:230: error: for each function it appears in.)
bwtaln.c:256: error: ‘optind’ undeclared (first use in this function)
make: *** [bwtaln.o] Error 1
Any suggestions would be appreciated.
Thanks.
make[1]: Entering directory `/usr/local/bwa-0.4.6'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/usr/local/bwa-0.4.6'
make[1]: Entering directory `/usr/local/bwa-0.4.6/bwt_gen'
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD bwt_gen.c -o bwt_gen.o
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD QSufSort.c -o QSufSort.o
ar -cru libbwtgen.a bwt_gen.o QSufSort.o
make[1]: Leaving directory `/usr/local/bwa-0.4.6/bwt_gen'
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD utils.c -o utils.o
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD bwt.c -o bwt.o
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD bwtio.c -o bwtio.o
gcc -c -g -Wall -O2 -m64 -DHAVE_PTHREAD bwtaln.c -o bwtaln.o
bwtaln.c: In function ‘bwa_aln’:
bwtaln.c:227: warning: implicit declaration of function ‘getopt’
bwtaln.c:230: error: ‘optarg’ undeclared (first use in this function)
bwtaln.c:230: error: (Each undeclared identifier is reported only once
bwtaln.c:230: error: for each function it appears in.)
bwtaln.c:256: error: ‘optind’ undeclared (first use in this function)
make: *** [bwtaln.o] Error 1
Any suggestions would be appreciated.
Thanks.
Comment