Open source installation problems

Hi there,
I am struggling to install the package gEcon. The package is not on CRAN.

I have loaded all the dependencies.
The package writers suggest installing gEcon through the command-line interface - with R CMD INSTALL gEcon_x_x_x.tar.gz or from R using installation options available in the GUI used.

I am unsure how to do this, as I have only recently started to use R, and have mainly been using R Studio.

Any help would be appreciated


install.packages("~/Desktop/Service/Current Tasks/Term 2/Macroeconomics/Term 2/MacroWork/gEcon_1.2.0.tar.gz", repos = NULL, type = "source")

  • installing source package ‘gEcon’ ...
    ** using staged installation
    ** libs

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [parser/grammar/gEconParser.o] Error 1
ERROR: compilation failed for package ‘gEcon’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/gEcon’
    Warning in install.packages :
    installation of package ‘/Users/sebastianuys/Desktop/Service/Current Tasks/Term 2/Macroeconomics/Term 2/MacroWork/gEcon_1.2.0.tar.gz’ had non-zero exit status

Is this the complete message you get? I have tried to replicate your issue on RStudio Cloud but the package compiles normally on Linux, this seems like an issue with Xcode in macOS but without more information (more informative error message) there is not much we can do for you.

> install.packages("~/Desktop/Service/Current Tasks/Term 2/Macroeconomics/Term 2/MacroWork/gEcon_1.2.0.tar.gz", repos = NULL, type = "source", lib="/Library/Frameworks/R.framework/Versions/3.6/Resources/library")
* installing *source* package ‘gEcon’ ...
** using staged installation
** libs
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c gecon_info.cpp -o gecon_info.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/utils.cpp -o symbolic/utils.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/stringhash.cpp -o symbolic/stringhash.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_base.cpp -o symbolic/ex_base.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_num.cpp -o symbolic/ex_num.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_delta.cpp -o symbolic/ex_delta.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_symb.cpp -o symbolic/ex_symb.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_symbidx.cpp -o symbolic/ex_symbidx.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_vart.cpp -o symbolic/ex_vart.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_vartidx.cpp -o symbolic/ex_vartidx.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_pow.cpp -o symbolic/ex_pow.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_func.cpp -o symbolic/ex_func.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_e.cpp -o symbolic/ex_e.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/num_ex_pair_vec.cpp -o symbolic/num_ex_pair_vec.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_add.cpp -o symbolic/ex_add.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_mul.cpp -o symbolic/ex_mul.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/idx_set_impl.cpp -o symbolic/idx_set_impl.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/idx_set.cpp -o symbolic/idx_set.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/idx_ex.cpp -o symbolic/idx_ex.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_sum.cpp -o symbolic/ex_sum.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_prod.cpp -o symbolic/ex_prod.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex_idx.cpp -o symbolic/ex_idx.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ptr_base.cpp -o symbolic/ptr_base.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ops_mk.cpp -o symbolic/ops_mk.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ops_trans.cpp -o symbolic/ops_trans.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ops_search.cpp -o symbolic/ops_search.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c symbolic/ex.cpp -o symbolic/ex.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c parser/grammar/gEconLexer.cpp -o parser/grammar/gEconLexer.o
In file included from parser/grammar/gEconLexer.cpp:44:
In file included from ./parser/grammar/gEconLexer.hpp:59:
In file included from ./parser/antlr_include/antlr3.hpp:41:
In file included from ./parser/antlr_include/antlr3bitset.hpp:221:
./parser/antlr_include/antlr3bitset.inl:54:6: warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to true [-Wtautological-undefined-compare]
        if      (this != NULL)
                 ^~~~    ~~~~
./parser/antlr_include/antlr3exception.inl:314:40: note: in instantiation of member function 'antlr3::BitsetList<antlr3::TraitsBase<UserTraits> >::bitsetLoad' requested here
                        errBits = BaseType::m_expectingSet->bitsetLoad();
                                                            ^
./parser/antlr_include/antlr3exception.hpp:197:2: note: in instantiation of member function 'antlr3::ANTLR_Exception<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty>, antlr3::RECOGNITION_EXCEPTION, antlr3::InputStream<antlr3::TraitsBase<UserTraits> > >::displayRecognitionError' requested here
        ANTLR_Exception(BaseRecognizerType* recognizer, const StringType& message);
        ^
./parser/antlr_include/antlr3lexer.inl:393:6: note: in instantiation of function template specialization 'antlr3::ANTLR_Exception<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty>, antlr3::RECOGNITION_EXCEPTION, antlr3::InputStream<antlr3::TraitsBase<UserTraits> > >::ANTLR_Exception<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty>::RecognizerType<antlr3::InputStream<antlr3::TraitsBase<UserTraits> > > >' requested here
        new ANTLR_Exception<ImplTraits, RECOGNITION_EXCEPTION, InputStreamType>( this->get_rec(), "" );
            ^
./parser/antlr_include/antlr3lexer.inl:253:10: note: in instantiation of member function 'antlr3::Lexer<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >::exConstruct' requested here
                        this->exConstruct();
                              ^
parser/grammar/gEconLexer.cpp:2654:15: note: in instantiation of member function 'antlr3::Lexer<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >::matchs' requested here
        this->matchs(lit_1);
              ^
parser/grammar/gEconLexer.cpp:245:27: warning: unused variable 'dfa24_T_empty' [-Wunused-variable]
static const ANTLR_INT32* dfa24_T_empty  =   NULL;
                          ^
parser/grammar/gEconLexer.cpp:525:27: warning: unused variable 'dfa45_T_empty' [-Wunused-variable]
static const ANTLR_INT32* dfa45_T_empty  =   NULL;
                          ^
3 warnings generated.
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I./symbolic -I./parser -I./parser/antlr_include -I./parser/grammar -I./model `/Library/Frameworks/R.framework/Resources/bin/Rscript --vanilla -e "Rcpp:::CxxFlags()"`  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -DR_DLL -fPIC  -Wall -g -O2  -c parser/grammar/gEconParser.cpp -o parser/grammar/gEconParser.o
In file included from parser/grammar/gEconParser.cpp:44:
In file included from ./parser/grammar/gEconParser.hpp:59:
In file included from ./parser/antlr_include/antlr3.hpp:37:
In file included from ./parser/antlr_include/antlr3memory.hpp:35:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/map:910:5: error: static_assert failed due to requirement 'is_same<std::__1::pair<long long, antlr3::CommonToken<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> > >, std::__1::pair<const long long, antlr3::CommonToken<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> > > >::value' "Allocator::value_type must be same type as value_type"
    static_assert((is_same<typename allocator_type::value_type, value_type>::value),
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./parser/antlr_include/antlr3memory.hpp:108:32: note: in instantiation of template class 'std::__1::map<long long, antlr3::CommonToken<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >, std::__1::less<long long>, antlr3::DefaultAllocPolicy::AllocatorType<std::__1::pair<long long, antlr3::CommonToken<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> > > > >' requested here
        class OrderedMapType : public std::map< KeyType, ValueType, std::less<KeyType>, 
                                      ^
./parser/antlr_include/antlr3tokenstream.hpp:263:18: note: in instantiation of template class 'antlr3::DefaultAllocPolicy::OrderedMapType<long long, antlr3::CommonToken<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> > >' requested here
    TokensType                  m_tokens;
                                ^
./parser/antlr_include/antlr3baserecognizer.hpp:51:19: note: in instantiation of template class 'antlr3::CommonTokenStream<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >' requested here
        typedef typename StreamType::IntStreamType      IntStreamType;
                         ^
./parser/antlr_include/antlr3traits.hpp:215:17: note: in instantiation of template class 'antlr3::BaseRecognizer<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty>, antlr3::CommonTokenStream<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> > >' requested here
                                   : public TraitsOneArgSelector< 
                                            ^
./parser/antlr_include/antlr3parser.hpp:44:25: note: in instantiation of template class 'antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty>::RecognizerType<antlr3::CommonTokenStream<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> > >' requested here
class Parser  :  public ImplTraits::template RecognizerType< typename ImplTraits::TokenStreamType >
                        ^
./parser/grammar/gEconParser.hpp:229:1: note: in instantiation of template class 'antlr3::Parser<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >' requested here
gEconParserImplTraits::BaseParserType
^

Hi, thanks Andre.
No, that was not the full error message - sorry. I have sent the full error message above, as two chronological posts.

In file included from parser/grammar/gEconParser.cpp:44:
In file included from ./parser/grammar/gEconParser.hpp:59:
In file included from ./parser/antlr_include/antlr3.hpp:37:
In file included from ./parser/antlr_include/antlr3memory.hpp:35:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/map:910:5: error: static_assert failed due to requirement 'is_same<std::__1::pair<unsigned int, unsigned int>, std::__1::pair<const unsigned int, unsigned int> >::value' "Allocator::value_type must be same type as value_type"
static_assert((is_same<typename allocator_type::value_type, value_type>::value),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./parser/antlr_include/antlr3memory.hpp:102:34: note: in instantiation of template class 'std::__1::map<unsigned int, unsigned int, std::__1::less, antlr3::DefaultAllocPolicy::AllocatorType<std::__1::pair<unsigned int, unsigned int> > >' requested here
class UnOrderedMapType : public std::map< KeyType, ValueType, std::less,
^
./parser/antlr_include/antlr3tokenstream.hpp:269:26: note: in instantiation of template class 'antlr3::DefaultAllocPolicy::UnOrderedMapType<unsigned int, unsigned int>' requested here
ChannelOverridesType m_channelOverrides;
^
./parser/antlr_include/antlr3baserecognizer.hpp:51:19: note: in instantiation of template class 'antlr3::CommonTokenStream<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >' requested here
typedef typename StreamType::IntStreamType IntStreamType;
^
./parser/antlr_include/antlr3traits.hpp:215:17: note: in instantiation of template class 'antlr3::BaseRecognizer<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty>, antlr3::CommonTokenStream<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> > >' requested here
: public TraitsOneArgSelector<
^
./parser/antlr_include/antlr3parser.hpp:44:25: note: in instantiation of template class 'antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty>::RecognizerType<antlr3::CommonTokenStream<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> > >' requested here
class Parser : public ImplTraits::template RecognizerType< typename ImplTraits::TokenStreamType >
^
./parser/grammar/gEconParser.hpp:229:1: note: in instantiation of template class 'antlr3::Parser<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >' requested here
gEconParserImplTraits::BaseParserType
^
./parser/grammar/gEconParser.hpp:235:25: error: no type named 'StreamType' in 'parser::gEconParser'
typedef ComponentType::StreamType StreamType;
~^
parser/grammar/gEconParser.cpp:179:6: error: type 'ImplTraits::BaseParserType' (aka 'antlr3::Parser<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >') is not a direct or virtual base of 'parser::gEconParser'
:ImplTraits::BaseParserType(ANTLR_SIZE_HINT, instream, NULL)
^
~
parser/grammar/gEconParser.cpp:194:6: error: type 'ImplTraits::BaseParserType' (aka 'antlr3::Parser<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >') is not a direct or virtual base of 'parser::gEconParser'
:ImplTraits::BaseParserType(ANTLR_SIZE_HINT, instream, state)
^
~~~~~~~
parser/grammar/gEconParser.cpp:204:8: error: no member named 'get_psrstate' in 'parser::gEconParser'
this->get_psrstate()->set_tokenNames( gEconParserTokenNames );
~~~~ ^
parser/grammar/gEconParser.cpp:212:11: error: no member named 'get_rec' in 'parser::gEconParser'
this->get_rec()->reset();
~~~~ ^
In file included from parser/grammar/gEconParser.cpp:44:
In file included from ./parser/grammar/gEconParser.hpp:59:
In file included from ./parser/antlr_include/antlr3.hpp:46:
./parser/antlr_include/antlr3cyclicdfa.hpp:53:28: error: no type named 'ExceptionBaseType' in 'parser::gEconParser'
typedef typename CtxType::ExceptionBaseType ExceptionBaseType;
^
parser/grammar/gEconParser.cpp:1846:39: note: in instantiation of template class 'antlr3::CyclicDFA<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty>, parser::gEconParser>' requested here
class gEconParserCyclicDFA35 : public CyclicDFA< gEconParserImplTraits, gEconParser >, public gEconParserTokens
^
In file included from parser/grammar/gEconParser.cpp:44:
In file included from ./parser/grammar/gEconParser.hpp:59:
In file included from ./parser/antlr_include/antlr3.hpp:46:
./parser/antlr_include/antlr3cyclicdfa.hpp:55:19: error: type 'antlr3::CyclicDFA<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty>, parser::gEconParser>::StreamType' (aka 'int') cannot be used prior to '::' because it has no members
typedef typename StreamType::IntStreamType IntStreamType;
^
./parser/antlr_include/antlr3cyclicdfa.hpp:56:19: error: type 'antlr3::CyclicDFA<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty>, parser::gEconParser>::StreamType' (aka 'int') cannot be used prior to '::' because it has no members
typedef typename StreamType::TokenType TokenType;
^
parser/grammar/gEconParser.cpp:1865:7: error: type 'parser::gEconParserCyclicDFA35::BaseType' (aka 'CyclicDFA<Traits<parser::gEconLexer, parser::gEconParser, UserTraits>, parser::gEconParser>') is not a direct or virtual base of 'parser::gEconParserCyclicDFA35'
:BaseType( decisionNumber, description, eot, eof, min, max, accept,
^
~~~~~
parser/grammar/gEconParser.cpp:2123:52: error: no matching constructor for initialization of 'gEconParserImplTraits::RuleReturnValueType' (aka 'antlr3::RuleReturnValue_1<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >')
gEconParserImplTraits::RuleReturnValueType _antlr_rule_exit(this);
^ ~~~~
./parser/antlr_include/antlr3parser.hpp:190:2: note: candidate constructor not viable: no known conversion from 'parser::gEconParser *' to 'antlr3::RuleReturnValue_1<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >::BaseParserType *' (aka 'antlr3::Parser<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> > ') for 1st argument
RuleReturnValue_1( BaseParserType
psr);
^
./parser/antlr_include/antlr3parser.hpp:191:2: note: candidate constructor not viable: no known conversion from 'parser::gEconParser *' to 'const antlr3::RuleReturnValue_1<antlr3::Traits<parser::gEconLexer, parser::gEconParser, UserTraits, antlr3::Empty> >' for 1st argument
RuleReturnValue_1( const RuleReturnValue_1& val );
^
./parser/antlr_include/antlr3parser.hpp:189:2: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
RuleReturnValue_1();
^
parser/grammar/gEconParser.cpp:2139:32: error: no member named 'LA' in 'parser::gEconParser'
switch ( this->LA(1) )
~~~~ ^
parser/grammar/gEconParser.cpp:2153:28: error: no member named 'followPush' in 'parser::gEconParser'
this->followPush(FOLLOW_opts_in_model83);
~~~~ ^
parser/grammar/gEconParser.cpp:2156:28: error: no member named 'followPop' in 'parser::gEconParser'
this->followPop();
~~~~ ^
parser/grammar/gEconParser.cpp:2157:33: error: no member named 'hasException' in 'parser::gEconParser'
if (this->hasException())
~~~~ ^
parser/grammar/gEconParser.cpp:2173:32: error: no member named 'LA' in 'parser::gEconParser'
switch ( this->LA(1) )
~~~~ ^
parser/grammar/gEconParser.cpp:2187:28: error: no member named 'followPush' in 'parser::gEconParser'
this->followPush(FOLLOW_sets_in_model86);
~~~~ ^
parser/grammar/gEconParser.cpp:2190:28: error: no member named 'followPop' in 'parser::gEconParser'
this->followPop();
~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [parser/grammar/gEconParser.o] Error 1
ERROR: compilation failed for package ‘gEcon’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/gEcon’
    Warning in install.packages :
    installation of package ‘/Users/sebastianuys/Desktop/Service/Current Tasks/Term 2/Macroeconomics/Term 2/MacroWork/gEcon_1.2.0.tar.gz’ had non-zero exit status

Sadly, there is nothing evident to me on that error message, but I'm not a macOS user, so hopefully someone else will be able to help you.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.