Failure to compile multi-thread version of FDPPDiv

109 views
Skip to first unread message

Satoshi Eguchi

unread,
Nov 28, 2014, 2:27:19 AM11/28/14
to dppdiv...@googlegroups.com
Hello all,


Although single thread version of FDPPDiv 1.3 was successfully compiled, multi-thread version failed.
I tried to make dppdiv-par on Mac OS 10.10 and following error was produced:

$ make dppdiv-par
g++ -o dppdiv-par -fopenmp dppdiv.o Alignment.o MbEigensystem.o MbMath.o MbRandom.o MbTransitionMatrix.o Mcmc.o Parameter.o Parameter_basefreq.o Parameter_exchangeability.o Parameter_rate.o Parameter_shape.o Parameter_tree.o Parameter_cphyperp.o Parameter_treescale.o Parameter_speciaton.o Parameter_expcalib.o Calibration.o Model.o Model_likelihood-par.o
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [dppdiv-par] Error 1

I also tried on Windows 7 with MinGW but it failed.

g++ -o dppdiv-par -fopenmp dppdiv.o Alignment.o MbEigensystem.o MbMath.o MbRandom.o MbTransitionMatrix.o Mcmc.o Parameter.o Parameter_basefreq.o Parameter_exchangeability.o Parameter_rate.o Parameter_shape.o Parameter_tree.o Parameter_cphyperp.o Parameter_treescale.o Parameter_speciaton.o Parameter_expcalib.o Calibration.o Model.o Model_likelihood-par.o
c:mingw/bin/../lib/gcc/minggw32/4.8.1/../../../../ming32/bin/ld.exe: cannot find -lpthread
collect2.exe: error: ld returned 1 exit status
make : *** [dppdiv-par] Error 1

What is wrong?
Please help me to solve the problem.

Thank you,
Satoshi Eguchi

Tomas Flouri

unread,
Nov 28, 2014, 9:42:19 AM11/28/14
to dppdiv...@googlegroups.com
Hello Satoshi,

> $ make dppdiv-par
> g++ -o dppdiv-par -fopenmp dppdiv.o Alignment.o MbEigensystem.o
> MbMath.o MbRandom.o MbTransitionMatrix.o Mcmc.o Parameter.o
> Parameter_basefreq.o Parameter_exchangeability.o Parameter_rate.o
> Parameter_shape.o Parameter_tree.o Parameter_cphyperp.o
> Parameter_treescale.o Parameter_speciaton.o Parameter_expcalib.o
> Calibration.o Model.o Model_likelihood-par.o
> ld: library not found for -lgomp
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make: *** [dppdiv-par] Error 1

You'll need to install openmp on your machine. If you use a debian-based
distro, you can run (as root):

apt-get install libgomp1

> I also tried on Windows 7 with MinGW but it failed.
>
> g++ -o dppdiv-par -fopenmp dppdiv.o Alignment.o MbEigensystem.o
> MbMath.o MbRandom.o MbTransitionMatrix.o Mcmc.o Parameter.o
> Parameter_basefreq.o Parameter_exchangeability.o Parameter_rate.o
> Parameter_shape.o Parameter_tree.o Parameter_cphyperp.o
> Parameter_treescale.o Parameter_speciaton.o Parameter_expcalib.o
> Calibration.o Model.o Model_likelihood-par.o
> c:mingw/bin/../lib/gcc/minggw32/4.8.1/../../../../ming32/bin/ld.exe:
> cannot find -lpthread
> collect2.exe: error: ld returned 1 exit status
> make : *** [dppdiv-par] Error 1

pthreads do not come on Windows by default; you'll need to install them
separately. This page might help:

https://www.sourceware.org/pthreads-win32/

However, there might be more problems when compiling on Windows that I
am not aware of.

Hope this helps,

Tomas

Satoshi Eguchi

unread,
Nov 28, 2014, 11:20:20 PM11/28/14
to dppdiv...@googlegroups.com
Hello Tomas,


Thanks!
Your advise led me to compile without error.

However, I have another problem.
Analysing my data which has about five hundred fossils resulted in segmentation fault.
When I reduced fossils to 200, it runs well.
Is the number of fossil calibrations limited?


Satoshi


2014年11月28日金曜日 23時42分19秒 UTC+9 Tomas Flouri:

Tracy Heath

unread,
Dec 3, 2014, 3:09:21 PM12/3/14
to dppdiv...@googlegroups.com
Hi Stoshi,

It should work with 500 fossils, I have run it with that many before. It might be that there was some interaction among the fossils that caused the tree initialization to fail. How many extant taxa are in your tree? 500 fossils is quite a lot for MCMC under the FBD model and will lead to extremely long mixing times. 

Cheers!
Tracy

--
You received this message because you are subscribed to the Google Groups "dppdiv-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dppdiv-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Satoshi Eguchi

unread,
Dec 3, 2014, 9:07:17 PM12/3/14
to dppdiv...@googlegroups.com
Hi Tracy,

My data contains 120 taxa.

Thanks,
Satoshi
Reply all
Reply to author
Forward
0 new messages