failed to compile

Issue #9 resolved
Former user created an issue

Hi, I'm trying to compile kma but failed.

$ git log 
commit 9b2ab8fc11c55dba01f27d151b4fc4046cbb6acf (HEAD -> master, tag: 1.2.26, origin/master, origin/HEAD)

$ uname -a
Linux mBio 5.4.44-1-MANJARO #1 SMP PREEMPT Wed Jun 3 14:48:07 UTC 2020 x86_64 GNU/Linux

$ cc --version cc (GCC) 10.1.0

......
cc -Wall -O3 -std=c99   -c -o valueshash.o valueshash.c
cc -Wall -O3 -std=c99   -c -o vcf.o vcf.c
ar -csru libkma.a align.o alnfrags.o ankers.o assembly.o chain.o compdna.o compkmers.o compress.o decon.o ef.o filebuff.o frags.o hashmap.o hashmapindex.o hashmapkma.o hashmapkmers.o hashtable.o index.o kma.o kmapipe.o kmeranker.o kmers.o kmmap.o loadupdate.o makeindex.o mt1.o nw.o pherror.o printconsensus.o qseqs.o qualcheck.o runinput.o runkma.o sam.o savekmers.o seq2fasta.o seqmenttree.o seqparse.o shm.o sparse.o spltdb.o stdnuc.o stdstat.o tmp.o update.o updateindex.o updatescores.o valueshash.o vcf.o
ar: `u' modifier ignored since `D' is the default (see `U')
cc -Wall -O3 -std=c99 -o kma main.c libkma.a -lm -lpthread -lz 
/usr/bin/ld: libkma.a(index.o):(.bss+0x68): multiple definition of `hashMapKMA_addExist_ptr'; /tmp/ccifkHnQ.o:(.bss+0x0): first defined here
/usr/bin/ld: libkma.a(index.o):(.bss+0x70): multiple definition of `hashMapKMA_addValue_ptr'; /tmp/ccifkHnQ.o:(.bss+0x8): first defined here
......
/usr/bin/ld: libkma.a(hashtable.o):(.bss+0x18): multiple definition of `getSizePtr'; /tmp/ccifkHnQ.o:(.bss+0x18): first defined here
/usr/bin/ld: libkma.a(hashtable.o):(.bss+0x20): multiple definition of `intpos_bin_contaminationPtr'; /tmp/ccifkHnQ.o:(.bss+0x20): first defined here
/usr/bin/ld: libkma.a(hashtable.o):(.bss+0x30): multiple definition of `getValuePtr'; /tmp/ccifkHnQ.o:(.bss+0x30): first defined here
/usr/bin/ld: libkma.a(hashtable.o):(.bss+0x38): multiple definition of `getValueIndexPtr'; /tmp/ccifkHnQ.o:(.bss+0x38): first defined here
/usr/bin/ld: libkma.a(hashtable.o):(.bss+0x40): multiple definition of `getKeyPtr'; /tmp/ccifkHnQ.o:(.bss+0x40): first defined here
/usr/bin/ld: libkma.a(hashtable.o):(.bss+0x48): multiple definition of `getExistPtr'; /tmp/ccifkHnQ.o:(.bss+0x48): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:12: kma] Error 1

Comments (2)

  1. Log in to comment