Compiling 8.2: "/usr/bin/ld: cannot find /usr/local/lib/: File format not recognised"

1,896 views
Skip to first unread message

Kevin Kocot

unread,
Jul 12, 2015, 7:03:06 PM7/12/15
to ra...@googlegroups.com
Hi all,

I'm having some trouble compiling RAxML 8.2.0 and I was wondering if you could help me out. Compilation of the .PTHREADS version proceeds normally until this point:


gcc  -o  raxmlHPC-PTHREADS axml.o  optimizeModel.o multiple.o searchAlgo.o topologies.o parsePartitions.o treeIO.o models.o bipartitionList.o rapidBootstrap.o evaluatePartialGenericSpecial.o evaluateGenericSpecial.o newviewGenericSpecial.o makenewzGenericSpecial.o   classify.o  fastDNAparsimony.o fastSearch.o leaveDropping.o rmqs.o rogueEPA.o ancestralStates.o  mem_alloc.o eigen.o   -lm -pthread /usr/local/lib/
/usr/bin/ld: cannot find /usr/local/lib/: File format not recognised
collect2: error: ld returned 1 exit status
make: *** [raxmlHPC-PTHREADS] Error 1

I can't really make heads or tails of this. Is it looking for a particular .o file in /usr/local/lib/? Any advice would be greatly appreciated.

Best,
Kevin

Alexey Kozlov

unread,
Jul 13, 2015, 7:20:15 AM7/13/15
to ra...@googlegroups.com
Hi Kevin,

it looks like you have "/usr/local/lib/" in your LDFLAGS, which is not a valid value for this environment variable. You
could try something like

LDFLAGS= make -f Makefile.AVX.PTHREADS.gcc

or just

unset LDFLAGS

which should solve the problem.

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

Kevin Kocot

unread,
Jul 13, 2015, 5:26:58 PM7/13/15
to ra...@googlegroups.com
That worked! Thank you!!


--
You received this message because you are subscribed to a topic in the Google Groups "raxml" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/raxml/1hOLuNW990A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to raxml+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages