Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install bwa 0.7.17 in alpine docker image #353

Open
cmccabe0728 opened this issue May 5, 2022 · 1 comment
Open

install bwa 0.7.17 in alpine docker image #353

cmccabe0728 opened this issue May 5, 2022 · 1 comment

Comments

@cmccabe0728
Copy link

cmccabe0728 commented May 5, 2022

I am trying to install bwa 0.7.17 in alpine:3.15.4. I am reading issue PR275 which if I am reading correctly I need to replace the makefile in the install directory with the makefile from github? Or is there something else? Thank you :).

 https://github.com/lh3/bwa/issues/275

/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: ./libbwa.a(rope.o):/home/ec2
-user/bwa-0.7.17/rle.h:33: multiple definition of `rle_auxtab'; ./libbwa.a(bwtindex.o):/home/ec2-user/bwa-0.7.17/rle.h
:33: first defined here
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: ./libbwa.a(rle.o):/home/ec2-
user/bwa-0.7.17/rle.h:33: multiple definition of `rle_auxtab'; ./libbwa.a(bwtindex.o):/home/ec2-user/bwa-0.7.17/rle.h:
33: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:30: bwa] Error 1

Post also suggest adding two lines to the docker might help:

sed -i 's/a\/rle.h//' makefile
sed -i 's/b\/rle.h//' makefile
@jmarshall
Copy link
Contributor

Crossposted to biostars.

You need to apply 2a1ae7b from #267. And BWA needs a new release that actually compiles with current compilers, but several outstanding PRs should be merged before a new release is made: see the commentary in my biostars answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants