[Bioperl-l] Problem compiling Bio::DB::Sam

20 views
Skip to first unread message

Miquel Ràmia

unread,
May 16, 2013, 6:42:29 AM5/16/13
to biop...@lists.open-bio.org
Hi all,

I get this message when compiling Bio::DB::Sam:

Building Bio-SamTools

gcc -g -Wall -O2 -fPIC -o bam2bedgraph bam2bedgraph.o -L/var/lib/gbrowse2/databases/samtools/samtools-0.1.19 -lbam -lm -lz

/var/lib/gbrowse2/databases/samtools/samtools-0.1.19/libbam.a(bgzf.o): In function `mt_destroy':

/var/lib/gbrowse2/databases/samtools/samtools-0.1.19/bgzf.c:458: undefined reference to `pthread_join'

/var/lib/gbrowse2/databases/samtools/samtools-0.1.19/libbam.a(bgzf.o): In function `bgzf_mt':

/var/lib/gbrowse2/databases/samtools/samtools-0.1.19/bgzf.c:445: undefined reference to `pthread_create'

collect2: ld returned 1 exit status

make: *** [bam2bedgraph] Error 1


Is this error related to the module or some dependencies? or maybe a
problem with my system?

Any help appreciated, thanks!


--
Miquel Ràmia Jesús
PhD. candidate (PIF)
Evolutionary Bioinformatics Group
(Genomics, Bioinformatics and Evolution Group)
Lab MRB/014 - 93 586 89 58
MRB - Institut de Biologia i Biomedicina (IBB)
Universitat Autònoma de Barcelona (UAB)
08193, Cerdanyola del Vallès
Barcelona (Spain)

_______________________________________________
Bioperl-l mailing list
Biop...@lists.open-bio.org
http://lists.open-bio.org/mailman/listinfo/bioperl-l

Fields, Christopher J

unread,
May 16, 2013, 9:12:40 AM5/16/13
to Miquel Ràmia, <bioperl-l@lists.open-bio.org>
It may be due to the new samtools release (v 0.1.19). I know Heng Li has been working on the code over the last year for threading support (notice the undefined functions). Have you tried v 0.1.18?

chris

Fields, Christopher J

unread,
May 17, 2013, 12:16:12 AM5/17/13
to Miquel Ràmia, <bioperl-l@lists.open-bio.org>
For the record, this is now fixed in the latest Bio::Samtools (via Lincoln).

chris

Miquel Ràmia

unread,
May 21, 2013, 11:08:18 AM5/21/13
to biop...@lists.open-bio.org
On 17/05/13 06:16, Fields, Christopher J wrote:
> For the record, this is now fixed in the latest Bio::Samtools (via Lincoln).
>
> chris
>
>

Compiled correctly!

thank you
Reply all
Reply to author
Forward
0 new messages