You are here

Simplest rosetta compilation

3 posts / 0 new
Last post
Simplest rosetta compilation
#1

I used to compile rosetta with mode=release ~5 yrs ago with no problem.

But now I can't..

With

rosetta_bin_linux_2021.16.61629_bundle

Red Hat Enterprise Linux Workstation release 6.6 (Santiago)
Release:    6.6

I tried

scons.py -j4 bin mode=release

Then, I see

tType, Signal>::buffer_size() const':
src/utility/signals/BufferedSignalHub.hh:141: error: 'buffer_' was not declared in this scope
src/utility/signals/BufferedSignalHub.hh: In member function 'void utility::signals::BufferedSignalHub<ResultType, Signal>::release_buffer()':
src/utility/signals/BufferedSignalHub.hh:151: error: 'buffer_' was not declared in this scope
src/utility/signals/BufferedSignalHub.hh: At global scope:
src/utility/signals/BufferedSignalHub.hh:156: error: expected unqualified-id at end of input
src/utility/signals/BufferedSignalHub.hh:156: error: expected '}' at end of input
src/utility/signals/BufferedSignalHub.hh:156: error: expected '}' at end of input
scons: *** [build/src/release/linux/2.6/64/x86/gcc/4.4/default/protocols/init/register1.os] Error 1
scons: building terminated because of errors....

Category: 
Post Situation: 
Sat, 2022-05-28 11:41
dnamkr

What's your compiler version? From the build path, it looks like you're trying to compile with GCC 4.4, which won't work. Rosetta now needs a C++11 compatible compiler, which means GCC 4.8 or greater (preferably 5.2 or greater). For Clang, you're looking at Clang 3.3 or later. -- https://new.rosettacommons.org/docs/latest/build_documentation/Build-Documentation#setting-up-rosetta-3_dependencies-troubleshooting

You should check to see if you have alternate compilers installed, and then edit Rosetta/source/tools/build/site.settings to put in the full path to the updated compiler in the provided lines. (Remember to uncomment them when you do.)

Sat, 2022-05-28 12:58
rmoretti

Thank you Rocco.

 

Using gcc/5.2.0 allowed me to compile well.

 

Below I leave a record (for beginner).

 

At HPC, after

module avail

I see

gcc/5.2.0

not

gcc/5.3.0

 

So, I did

module purge

 

[kimd999@constance02 rosetta_bin_linux_2021.16.61629_bundle]$ module load gcc/5.2.0

[kimd999@constance02 rosetta_bin_linux_2021.16.61629_bundle]$ module list

Currently Loaded Modulefiles:

  1. gcc/5.2.0

 

Then I did

source ~/.bash_profile_constance_public_miniconda3.8

since

[kimd999@constance02 source]$ which python

/usr/bin/python

[kimd999@constance02 source]$ ./scons.py -j4 mode=release extras=mpi bin

scons: * ** SCons version 3.0.4 does not run under Python version 2.6.6.

Python 2.7 or >= 3.5 is required.

 

Then, I did

(ncAA) [kimd999@constance02 source]$ which python

~/.conda/envs/env_name/bin/python

(ncAA) [kimd999@constance02 source]$ ./scons.py -j4 mode=release extras=mpi bin

Tue, 2022-05-31 10:32
dnamkr