Question: error with trinity installation
gravatar for Kurban
4.6 years ago by
china/Urumqi/xinjiang academy of animal scinces
Kurban170 wrote:

hello everyone,

i have rent server from school computer center, and trying to install Trinity on it via SSH. but i got the following error message:

kurban910@node9:~/trinityrnaseq-2.0.6> make
Using gnu compiler for Inchworm and Chrysalis
cd Inchworm && (test -e configure || autoreconf) \
                && sh ./configure --prefix=`pwd`  && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for library containing cos... none required
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make[1]: Entering directory `/public/home/kurban910/trinityrnaseq-2.0.6/Inchworm'
make[1]: Warning: File `Makefile' has modification time 5e+04 s in the future
Making install in src
make[2]: Entering directory `/public/home/kurban910/trinityrnaseq-2.0.6/Inchworm/src'
make[2]: Warning: File `.deps/string_util.Po' has modification time 4.9e+04 s in the future
g++ -DHAVE_CONFIG_H -I. -I..    -std=c++0x -pedantic -fopenmp -Wall -Wextra -Wno-deprecated -m64 -g -O2 -MT Fasta_entry.o -MD -MP -MF .deps/Fasta_entry.Tpo -c -o Fasta_entry.o Fasta_entry.cpp
cc1plus: error: unrecognized command line option "-std=c++0x"
cc1plus: error: unrecognized command line option "-fopenmp"
make[2]: *** [Fasta_entry.o] Error 1
make[2]: Leaving directory `/public/home/kurban910/trinityrnaseq-2.0.6/Inchworm/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/public/home/kurban910/trinityrnaseq-2.0.6/Inchworm'
make: *** [inchworm_target] Error 2

i am still new at linux operation. could anyone give me some sugessions what have gone wrong here?


ADD COMMENTlink modified 4.0 years ago • written 4.6 years ago by Kurban170

What is your GCC version?

ADD REPLYlink written 4.6 years ago by arnstrm1.7k

Hi @iamtuttu5

did u solve the problem? when the time I was trying to install trinity, it was truly the problem of GCC version and the IT guy who was admin in the computer center at the time said they can not update gcc compiler at that time just for me. then I contacted a friend of mine who had another server, then I checked the compiler version and it was new , and its version as shown as below:

[WHL@server ~]$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl= --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj- --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)


then I used his server which installed trinity successfully, then I used 50 threads and 200G memory in one night when no body using it finished my job .

sorry about this comment sent as an answer, it is because the place where I am now has a little problem opening the biostars every time. I can only sent something this way.

ADD REPLYlink modified 7 days ago by RamRS25k • written 4.0 years ago by Kurban170

thank you guys,

yes, the gcc version on the server is really old, its gcc 4.1 version. then i contacted with IT in the computer center. 

ADD REPLYlink written 4.6 years ago by Kurban170
gravatar for h.mon
4.6 years ago by
h.mon28k wrote:

It seems you are using an old version of GCC, you probably need to use a more recent one. You could have easily found that out searching a bit, when I googled for your first error ( cc1plus: error: unrecognized command line option "-std=c++0x" ) I found this StackOverflow thread, and for the second error ( cc1plus: error: unrecognized command line option "-fopenmp" ), I found this one.

Which Linux and GCC version are you using? Type the following at the terminal:

cat /etc/issue

uname -a

gcc -v

Oftentimes the system default GCC is old, but there is a newer one installed as gcc-X.Y (e.g. gcc-4.7), if such is the case you may edit the Makefile and replace gcc by gcc-X.Y (the one available at your system). You should probably ask for help for your school IT guys, they will be able to guide you through the initial difficulties and point to relevant resources.

ADD COMMENTlink modified 4.6 years ago • written 4.6 years ago by h.mon28k
gravatar for iamtuttu5
4.1 years ago by
United States
iamtuttu540 wrote:

Hello Kurban

Me also going through the same condtition that you been through

I am also accessing server system for running trinity , I am getting this errorr

I tried the commands mentioned by h.mon in this page

cat /etc/issue
uname -a
gcc -v

It outputs the following

tuttu@kau:~$ cat /etc/issue
Ubuntu 14.04.3 LTS \n \l

tuttu@kau:~$ uname -a
Linux jntbgri 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

tuttu@kau:~$  gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)
ADD COMMENTlink modified 9 days ago by RamRS25k • written 4.1 years ago by iamtuttu540
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1228 users visited in the last hour