You are here

Error compiling on ubuntu 16.04

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


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 "" in  "tools/PyRosetta.develop".  I ran into an issue compiling gccxml, and added the flag "-DCMAKE_C_FLAGS=-fgnu89-inline" to the script to get the setup script to run to completion.

I've copied 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?


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

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 should work for you, with less hassle than trying to build PyRosetta it yourself.

Wed, 2016-11-30 13:34

For information of building PyRosetta-4 from source please see:

Wed, 2016-11-30 16:40

Thanks!  That worked great.

Thu, 2016-12-08 07:27