compliation error V13

I’m having some trouble with the new version of mothur. I can install and run V1.12, but not V1.13. I’m running ubuntu 64-bit. When I make the previous version of mothur it compiles with no problems, but when I try and make 1.13 I get the following error:

g++ -O3 -m64 -DRELEASE_DATE=“"9/9/2010"” -DVERSION=“"1.13.0"” -DBIT_VERSION -DUSE_READLINE -I. -arch x86_64 -c -o ace.o ace.cpp
g++: x86_64: No such file or directory
cc1plus: error: unrecognised command line option “-arch”
make: *** [ace.o] Error 1

If I change the makefile to be consistent with the previous version’s, by changing

< 64BIT_VERSION ?= no

64BIT_VERSION ?= yes

the compilation completes and I am able to run mothur. I am, however not sure if this was a good idea or not???


Do you have any ideas as to the problem,

Thanks, Andrew

The compile error you are getting is because the -arch x86_64 option is for building a 64 bit executable on a mac. You want to change the following lines:

TARGET_ARCH += -arch x86_64
to #TARGET_ARCH += -arch x86_64

and

#CXXFLAGS += -mtune=native -march=native -m64
to CXXFLAGS += -mtune=native -march=native -m64

I hope this helps.

Great, seemed to work fine with your suggested changes. I guess I should update the wiki, given I was just following instructions from there!

Thanks!

Glad to help, sorry for the errors in the wiki documentation.