Hi all,
I am trying to compile Rosetta-334 week 45, year 2022 in my old friend Mac Mini with macOS 10.11.6 El Capitan.
I am using the standard command line:
./scons.py bin mode=release -j4
After a few second I've got the following error:
clang++ -o build/src/release/macos/10.11/64/x86/clang/7.0/default/protocols/enzdes/AddorRemoveCsts.os -c -std=c++11 -isystem external/boost_submod/ -isystem external/ -isystem external/include/ -isystem external/dbio/ -isystem external/libxml2/include -isystem external/rdkit -isystem /usr/local/include -march=core2 -mtune=generic -pipe -Qunused-arguments -DUNUSUAL_ALLOCATOR_DECLARATION -ftemplate-depth-256 -stdlib=libstdc++ -W -Wall -Wextra -pedantic -Wno-long-long -Wno-strict-aliasing -march=native -mtune=native -stdlib=libc++ -Wno-unused-variable -Wno-implicit-function-declaration -O3 -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/macos/64/clang/7.0 -Isrc/platform/macos/64/clang -Isrc/platform/macos/64 -Isrc/platform/macos src/protocols/enzdes/AddorRemoveCsts.cc
src/protocols/enzdes/AddorRemoveCsts.cc:115:18: error: call to deleted member function 'getOption'
cstfile_ = tag->getOption<std::string>( "cstfile", "" );
~~~~~^~~~~~~~~~~~~~~~~~~~~~
src/utility/tag/Tag.hh:310:6: note: candidate function [with T = std::__1::basic_string<char>] has been implicitly deleted
Tag::getOption<std::string>( std::string const & key, char const * default_as_string_literal ) const;
^
src/utility/tag/Tag.hh:122:2: note: candidate function [with T = std::__1::basic_string<char>]
getOption(std::string const& key, T const& t_default) const {
^
src/utility/tag/Tag.hh:150:2: note: candidate function [with T = std::__1::basic_string<char>] not viable: no known conversion from 'const char [1]' to 'const int' for 2nd argument
getOption( std::string const &, int const ) const = delete;
^
src/utility/tag/Tag.hh:177:2: note: candidate function template not viable: requires single argument 'key', but 2 arguments were provided
getOption(std::string const& key) const {
^
src/protocols/enzdes/AddorRemoveCsts.cc:120:37: error: call to deleted member function 'getOption'
std::string cst_instruction = tag->getOption<std::string>( "cst_instruction", "void" );
~~~~~^~~~~~~~~~~~~~~~~~~~~~
src/utility/tag/Tag.hh:310:6: note: candidate function [with T = std::__1::basic_string<char>] has been implicitly deleted
Tag::getOption<std::string>( std::string const & key, char const * default_as_string_literal ) const;
^
src/utility/tag/Tag.hh:122:2: note: candidate function [with T = std::__1::basic_string<char>]
getOption(std::string const& key, T const& t_default) const {
^
src/utility/tag/Tag.hh:150:2: note: candidate function [with T = std::__1::basic_string<char>] not viable: no known conversion from 'const char [5]' to 'const int' for 2nd argument
getOption( std::string const &, int const ) const = delete;
^
src/utility/tag/Tag.hh:177:2: note: candidate function template not viable: requires single argument 'key', but 2 arguments were provided
getOption(std::string const& key) const {
^
2 errors generated.
scons: *** [build/src/release/macos/10.11/64/x86/clang/7.0/default/protocols/enzdes/AddorRemoveCsts.os] Error 1
scons: building terminated because of errors.
Any ideas how to troubleshoot this?
Thanks,
Danilo.
Category:
Post Situation:
Tried compiling with cmake/make and got basically the same error:
I did manage to compile Rosetta version 3.8. It seems that newer version of Rosetta do not support old compilers in my Mac Mini.