+
Skip to content

make is failed on gcc 10 #275

@junaruga

Description

@junaruga

Hello,

I am seeing that the bwa latest version 0.7.17 is failed to build on gcc 10.0.1.

$ gcc --version
gcc (GCC) 10.0.1 20200311 (Red Hat 10.0.1-0.9)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

My environment is Linux, Fedora 33 x86_64.

$ uname -m
x86_64

$ cat /etc/fedora-release  
Fedora release 33 (Rawhide)

Here is the log.

$ make
...
gcc -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwashm.o bwase.o bwaseqio.o bwtgap.o bwtaln.o bamlite.o bwape.o kopen.o pemerge.o maxk.o bwtsw2_core.o bwtsw2_main.o bwtsw2_aux.o bwt_lite.o bwtsw2_chain.o fastmap.o bwtsw2_pair.o main.o -o bwa -L. -lbwa -lm -lz -lpthread -lrt
/usr/bin/ld: ./libbwa.a(rope.o):/builddir/build/BUILD/bwa-0.7.17/rle.h:33: multiple definition of `rle_auxtab'; ./libbwa.a(bwtindex.o):/builddir/build/BUILD/bwa-0.7.17/rle.h:33: first defined here
/usr/bin/ld: ./libbwa.a(rle.o):/builddir/build/BUILD/bwa-0.7.17/rle.h:33: multiple definition of `rle_auxtab'; ./libbwa.a(bwtindex.o):/builddir/build/BUILD/bwa-0.7.17/rle.h:33: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:30: bwa] Error 1

Could you fix it?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载