You are here

Error compiling on ubuntu 16.04

4 posts / 0 new
Last post
Error compiling on ubuntu 16.04
#1

Hi,

I'm having trouble compiling PyRosetta on Ubuntu 16.04 64-bit

Rosetta version is: rosetta_src_2016.46.59086_bundle

gcc version is 5.4.0

Python version is 2.7.12

Initially I set up PyRosetta for compilation by executing "DeployPyRosetta.py" in  "tools/PyRosetta.develop".  I ran into an issue compiling gccxml, and added the flag "-DCMAKE_C_FLAGS=-fgnu89-inline" to the DeployPyRosetta.py script to get the setup script to run to completion.

I've copied BuildPyRosetta.sh to "main/source", and trid to run it.  The compilation gets as far as "Generating XML representation" before throwing an error:

"gccxml_cc1plus: error: gccxml_builtins.h: No such file or directory".

From what I can tell, this seems to be an issue with gcc versions > 5.0

 

Any ideas how to fix this?

Thanks!

Category: 
Post Situation: 
Wed, 2016-11-30 13:26
SenyorDrew

Recently the Rosetta codebase switched over to C++11.  Unfortunately, GCCXML can't handle C++11 code, so the old way of building PyRosetta doesn't work anymore with new weekly releases. There is a new way of building PyRosetta that does work with C++11, but that needs a different approach to building.

Do you need to build PyRosetta from source? If you're not doing any C++ code modifications, you probably don't. Especially on Ubuntu 16.04, the provided binaries from http://www.pyrosetta.org/dow should work for you, with less hassle than trying to build PyRosetta it yourself.

Wed, 2016-11-30 13:34
rmoretti

For information of building PyRosetta-4 from source please see: http://www.pyrosetta.org/documentation#TOC-Building-PyRosetta-from-source

Wed, 2016-11-30 16:40
Sergey

Thanks!  That worked great.

Thu, 2016-12-08 07:27
SenyorDrew