# Compilation failing

**URL:** <https://forum.mothur.org/t/compilation-failing/880>\
**Category:** Commands in mothur\
**Created:** [April 25, 2012, 12:32pm UTC](https://forum.mothur.org/t/compilation-failing/880 "2012-04-25T12:32:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hyungz](https://avatars.discourse-cdn.com/v4/letter/h/a698b9/32.png) [@hyungz](https://forum.mothur.org/u/hyungz)\
**Post date:** [April 25, 2012, 12:32pm UTC](https://forum.mothur.org/t/compilation-failing/880/1 "2012-04-25T12:32:02Z")

</div>

Hi,

I am attempting to compile mother 1.24.1 on a 64 bit SUSE linux (gcc version 4.1.2 ) and getting the following error, which is about uchime.

cd uchime\_src && ./mk && mv uchime … && cd …  
addtargets2  
cc1plus: error: unrecognized command line option “-msse2”  
cc1plus: error: unrecognized command line option “-mfpmath=sse”  
alignchime  
cc1plus: error: unrecognized command line option “-msse2”  
cc1plus: error: unrecognized command line option “-mfpmath=sse”  
alignchimel  
cc1plus: error: unrecognized command line option “-msse2”  
cc1plus: error: unrecognized command line option “-mfpmath=sse”  
.  
.  
.  
.  
strip: ‘uchime’: No such file  
ls: uchime: ê·¸ëŸ° íŒŒì¼ì´ë‚˜ ë””ë ‰í† ë¦¬ê°€ ì—†ìŒ  
sum: uchime: ê·¸ëŸ° íŒŒì¼ì´ë‚˜ ë””ë ‰í† ë¦¬ê°€ ì—†ìŒ  
make: \*\*\* [uchime] ì˜¤ë¥˜ 1

  
Thanks for any help.

Hyungz.

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [April 25, 2012, 3:24pm UTC](https://forum.mothur.org/t/compilation-failing/880/2 "2012-04-25T15:24:40Z")

</div>

You could change the following line in the makefile from:

mothur : fortranSource $(OBJECTS) uchime  
$(CXX) $(LDFLAGS) $(TARGET\_ARCH) -o $@ $(OBJECTS) $(LIBS)

to

mothur : fortranSource $(OBJECTS)  
$(CXX) $(LDFLAGS) $(TARGET\_ARCH) -o $@ $(OBJECTS) $(LIBS)

Then mothur will build, but you won’t have the uchime executable. The uchime executable is included in the executable distribution of mothur, [http://www.mothur.org/wiki/Download\_mothur](http://www.mothur.org/wiki/Download_mothur).

---

<div class="post-metadata">

**Author:** ![hyungz](https://avatars.discourse-cdn.com/v4/letter/h/a698b9/32.png) [@hyungz](https://forum.mothur.org/u/hyungz)\
**Post date:** [April 25, 2012, 11:47pm UTC](https://forum.mothur.org/t/compilation-failing/880/3 "2012-04-25T23:47:32Z")

</div>

Thank you very much, Westcott.

I have one more question.

Because the SUSE linux is 64 bit, I changed

64BIT\_VERSION ?= no

#if you are a mac user use the following line  
TARGET\_ARCH += -arch x86\_64

#if you are a linux user use the following line  
#CXXFLAGS += -mtune=native -march=native -m64

to

64BIT\_VERSION ?= yes

#if you are a mac user use the following line  
#TARGET\_ARCH += -arch x86\_64

#if you are a linux user use the following line  
CXXFLAGS += -mtune=native -march=native -m64

in makefile and obtained following error.

gfortran -c -m64 \*.f  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
f951: error: unrecognized command line option “-m64”  
make: \*\*\* [fortranSource] ì˜¤ë¥˜ 1

  
Thank you for your concern.  
hyungz.

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [April 27, 2012, 12:53pm UTC](https://forum.mothur.org/t/compilation-failing/880/4 "2012-04-27T12:53:42Z")

</div>

Have you tried running the executable version of mothur instead of building from source?

---

<div class="post-metadata">

**Author:** ![hyungz](https://avatars.discourse-cdn.com/v4/letter/h/a698b9/32.png) [@hyungz](https://forum.mothur.org/u/hyungz)\
**Post date:** [April 27, 2012, 3:24pm UTC](https://forum.mothur.org/t/compilation-failing/880/5 "2012-04-27T15:24:17Z")

</div>

I tried already, but it did not work.

The executable version was runned on Redhat linux, which has been installed in anonther server computer, but it was not runned on SUSE linux, I don’t know why.

hyungz

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [April 27, 2012, 3:53pm UTC](https://forum.mothur.org/t/compilation-failing/880/6 "2012-04-27T15:53:13Z")

</div>

I am not familiar with the specific differences between SUSE Linux and CentOS Linux. You could try building the 32bit version?

---

<div class="post-metadata">

**Author:** ![hyungz](https://avatars.discourse-cdn.com/v4/letter/h/a698b9/32.png) [@hyungz](https://forum.mothur.org/u/hyungz)\
**Post date:** [April 28, 2012, 2:34am UTC](https://forum.mothur.org/t/compilation-failing/880/7 "2012-04-28T02:34:50Z")

</div>

Thank you, Westcott,

I could compile and install mothur from the source code with 32 bit version, and it works now.

But when I copies and pasted uchim executable and ran uchime, I obtained the following massage.

mothur \> chimera.uchime(fasta=chim1.fasta, reference=self)

  
uchime by Robert C. Edgar http://drive5.com/uchime This code is donated to the public domain.

Checking sequences from chim1.fasta …

No namesfile given, running unique.seqs command to generate one.

/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/  
Running command: unique.seqs(fasta=chim1.fasta)  
[WARNING]: This command can take a namefile and you did not provide one. The current namefile is chim1.names which seems to match chim1.fasta.  
1000 643  
2000 1274  
3000 1974  
4000 2734  
4164 2882

Output File Names:  
chim1.unique.fasta  
chim1.names

/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/  
sh: …/…/…/mothur/Mothur.source/uchime: í—ˆê°€ ê±°ë¶€ë¨ (This means “not permitted”)

It took 0 secs to check 1 sequences. 0 chimeras were found.

Output File Names:  
chim1.uchime.chimera  
chim1.uchime.accnos
