Hello, I have had some problems with the compilation of Rosetta. I'm using Ubuntu 22.04.2 LTS. For compilation I used the release mode.
When I type: ./scons.py -j1 mode=release bin (OR) ./scons.py mode=release bin, I'm getting the following error:
scons: Reading SConscript files ...
Running versioning script ... Release package detected, using rosetta/main/.release.json to acquire version information...
Done. (0.0 seconds)
Number of option files updated: 0
Total 4580 options.
Finished updating ResidueProperty code
-- no changes needed
Finished updating VariantType code
-- no changes needed
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/src/release/linux/5.19/64/x86/gcc/11/default/protocols/antibody/AntibodyFeatures.os -c -std=c++0x -ffor-scope -isystem external/boost_submod/ -isystem external/ -isystem external/include/ -isystem external/dbio/ -isystem external/libxml2/include -isystem external/rdkit -pipe -Wall -Wextra -pedantic -Wno-long-long -Wno-strict-aliasing -march=core2 -mtune=generic -O3 -ffast-math -fno-finite-math-only -funroll-loops -finline-functions -finline-limit=20000 -s -Wno-unused-variable -Wno-unused-parameter -fPIC -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_DISABLE_THREADS -DPTR_STD -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/linux/64/gcc/11 -Isrc/platform/linux/64/gcc -Isrc/platform/linux/64 -Isrc/platform/linux src/protocols/antibody/AntibodyFeatures.cc
g++: warning: switch '-ffor-scope' is no longer supported
In file included from src/protocols/features/FeaturesReporter.hh:19,
from src/protocols/features/InterfaceFeatures.hh:18,
from src/protocols/antibody/AntibodyFeatures.hh:18,
from src/protocols/antibody/AntibodyFeatures.cc:14:
src/protocols/features/FeaturesReporter.fwd.hh:27:14: error: 'uint64_t' in namespace 'std' does not name a type; did you mean 'wint_t'?
27 | typedef std::uint64_t StructureID;
| ^~~~~~~~
| wint_t
In file included from src/protocols/features/InterfaceFeatures.hh:18,
from src/protocols/antibody/AntibodyFeatures.hh:18,
from src/protocols/antibody/AntibodyFeatures.cc:14:
src/protocols/features/FeaturesReporter.hh:99:17: error: 'StructureID' has not been declared
99 | StructureID /*parent id*/,
| ^~~~~~~~~~~
src/protocols/features/FeaturesReporter.hh:109:17: error: 'StructureID' has not been declared
109 | StructureID /*parent id*/,
| ^~~~~~~~~~~
src/protocols/features/FeaturesReporter.hh:124:17: error: 'StructureID' has not been declared
124 | StructureID,
| ^~~~~~~~~~~
src/protocols/features/FeaturesReporter.hh:130:17: error: 'StructureID' has not been declared
130 | StructureID,
| ^~~~~~~~~~~
In file included from src/protocols/features/InterfaceFeatures.hh:18,
from src/protocols/antibody/AntibodyFeatures.hh:18,
from src/protocols/antibody/AntibodyFeatures.cc:14:
src/protocols/features/FeaturesReporter.hh:185:17: error: 'StructureID' has not been declared
185 | StructureID struct_id,
| ^~~~~~~~~~~
In file included from src/protocols/antibody/AntibodyFeatures.hh:18,
from src/protocols/antibody/AntibodyFeatures.cc:14:
src/protocols/features/InterfaceFeatures.hh:71:17: error: 'StructureID' has not been declared
71 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/features/InterfaceFeatures.hh:126:17: error: 'StructureID' has not been declared
126 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/features/InterfaceFeatures.hh:135:17: error: 'StructureID' has not been declared
135 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/features/InterfaceFeatures.hh:144:17: error: 'StructureID' has not been declared
144 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/features/InterfaceFeatures.hh:156:17: error: 'StructureID' has not been declared
156 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/features/InterfaceFeatures.hh:181:17: error: 'StructureID' has not been declared
181 | StructureID struct_id,
| ^~~~~~~~~~~
In file included from src/protocols/antibody/AntibodyFeatures.cc:14:
src/protocols/antibody/AntibodyFeatures.hh:84:27: error: 'protocols::features::StructureID' has not been declared
84 | features::StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/antibody/AntibodyFeatures.hh:92:27: error: 'protocols::features::StructureID' has not been declared
92 | features::StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/antibody/AntibodyFeatures.hh:98:27: error: 'protocols::features::StructureID' has not been declared
98 | features::StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/antibody/AntibodyFeatures.hh:104:27: error: 'protocols::features::StructureID' has not been declared
104 | features::StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/antibody/AntibodyFeatures.hh:111:27: error: 'protocols::features::StructureID' has not been declared
111 | features::StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/antibody/AntibodyFeatures.hh:119:27: error: 'protocols::features::StructureID' has not been declared
119 | features::StructureID struct_id,
| ^~~~~~~~~~~
In file included from src/protocols/antibody/AntibodyFeatures.cc:30:
src/protocols/features/util.hh:79:9: error: 'StructureID' was not declared in this scope
79 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/features/util.hh:80:42: error: expected primary-expression before 'db_session'
80 | utility::sql_database::sessionOP db_session
| ^~~~~~~~~~
src/protocols/features/util.hh:81:1: error: expression list treated as compound expression in initializer [-fpermissive]
81 | );
| ^
src/protocols/features/util.hh:83:18: error: 'StructureID' was not declared in this scope
83 | utility::vector1<StructureID>
| ^~~~~~~~~~~
src/protocols/features/util.hh:83:29: error: template argument 1 is invalid
83 | utility::vector1<StructureID>
| ^
src/protocols/features/util.hh:83:29: error: template argument 2 is invalid
src/protocols/antibody/AntibodyFeatures.cc:118:9: error: 'StructureID' has not been declared
118 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/antibody/AntibodyFeatures.cc:321:9: error: 'StructureID' has not been declared
321 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/antibody/AntibodyFeatures.cc:443:9: error: 'StructureID' has not been declared
443 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/antibody/AntibodyFeatures.cc:540:9: error: 'StructureID' has not been declared
540 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/antibody/AntibodyFeatures.cc:557:9: error: 'StructureID' has not been declared
557 | StructureID struct_id,
| ^~~~~~~~~~~
src/protocols/antibody/AntibodyFeatures.cc:623:9: error: 'StructureID' has not been declared
623 | StructureID struct_id,
| ^~~~~~~~~~~
scons: *** [build/src/release/linux/5.19/64/x86/gcc/11/default/protocols/antibody/AntibodyFeatures.os] Error 1
scons: building terminated because of errors.
This is the same issue as here, and the fix is the same. Either upgrade to a more recent weekly release, or add the line `#include <cstdint>` to the top of `src/protocols/features/FeaturesReporter.fwd.hh`