Dear Sebastien, on my ubuntu 9.04 machine I get the attached error trying make. Autoreconf works without errors; make pdf and make html are ok. do you have any hints? many thanks for your help best wishes Marco Sébastien Villemot wrote:
Le lundi 21 septembre 2009 à 18:14 -0400, houtan a écrit :
I have created a small section on http://www.dynare.org/DynareWiki/BuildingDynareFromSource for Mac OS X. There are some problems (specifically building MEX files for Octave and Matlab), which I have not figured out yet. In addition, running make pdf causes my version of pdflatex to fail. Before spending more time figuring this out, could you please verify that these problems are specific to my platform?
I have successfully built MEX for Matlab & Octave and PDF on the 3 platforms that I described on the page (Debian GNU/Linux, Windows/Cygwin, Windows/MinGW). So this is a MacOS specific issue.
Don't hesitate to post the error messages, maybe I can help.
Best,
-- Marco Ratto, Euro-area Economy Modelling Centre (http://eemc.jrc.ec.europa.eu), Joint Research Centre The European Commission, TP 361, 21027 ISPRA(VA), ITALY Tel: +39 0332 78 5639 Fax: +39 0332 78 5733 marco.ratto@jrc.ec.europa.eu Making all in preprocessor make[1]: Entering directory `/home/rattoma/dynare_v4/trunk/preprocessor' make all-recursive make[2]: Entering directory `/home/rattoma/dynare_v4/trunk/preprocessor' Making all in macro make[3]: Entering directory `/home/rattoma/dynare_v4/trunk/preprocessor/macro' make all-am make[4]: Entering directory `/home/rattoma/dynare_v4/trunk/preprocessor/macro' g++ -DPACKAGE_NAME=\"dynare\" -DPACKAGE_TARNAME=\"dynare\" -DPACKAGE_VERSION=\"4.1-unstable\" -DPACKAGE_STRING=\"dynare\ 4.1-unstable\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"dynare\" -DVERSION=\"4.1-unstable\" -DHAVE_BOOST=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP=1 -DBOOST_NO_HASH=/\*\*/ -DHAVE_BLAS=1 -DHAVE_LAPACK=1 -DHAVE_PTHREAD=1 -I. -I.. -g -O2 -Wall -MT libmacro_a-MacroFlex.o -MD -MP -MF .deps/libmacro_a-MacroFlex.Tpo -c -o libmacro_a-MacroFlex.o `test -f 'MacroFlex.cc' || echo './'`MacroFlex.cc In file included from MacroFlex.cc:248: ../FlexLexer.h:130: error: expected unqualified-id before numeric constant MacroFlex.cc: In member function ‘Macro::parser::token::yytokentype MacroFlex::lex(Macro::parser::semantic_type*, Macro::location*, MacroDriver&)’: MacroFlex.cc:706: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc:726: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In constructor ‘MacroFlexLexer::MacroFlexLexer(std::istream*, std::ostream*)’: MacroFlex.cc:1406: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In destructor ‘virtual MacroFlexLexer::~MacroFlexLexer()’: MacroFlex.cc:1418: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In member function ‘virtual void MacroFlexLexer::switch_streams(std::istream*, std::ostream*)’: MacroFlex.cc:1425: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In member function ‘int MacroFlexLexer::yy_get_next_buffer()’: MacroFlex.cc:1478: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In member function ‘yy_state_type MacroFlexLexer::yy_get_previous_state()’: MacroFlex.cc:1614: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In member function ‘void MacroFlexLexer::yyunput(int, char*)’: MacroFlex.cc:1674: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In member function ‘int MacroFlexLexer::yyinput()’: MacroFlex.cc:1716: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc:1768: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In member function ‘virtual void MacroFlexLexer::yyrestart(std::istream*)’: MacroFlex.cc:1776: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc:1779: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In member function ‘virtual void MacroFlexLexer::yy_switch_to_buffer(yy_buffer_state*)’: MacroFlex.cc:1786: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc:1789: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc:1797: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In member function ‘void MacroFlexLexer::yy_load_buffer_state()’: MacroFlex.cc:1811: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In member function ‘virtual void MacroFlexLexer::yy_delete_buffer(yy_buffer_state*)’: MacroFlex.cc:1848: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.cc: In member function ‘void MacroFlexLexer::yy_flush_buffer(yy_buffer_state*)’: MacroFlex.cc:1889: error: ‘yy_current_buffer’ was not declared in this scope MacroFlex.ll: In member function ‘void MacroFlex::save_context(Macro::location*)’: MacroFlex.ll:337: error: ‘yy_current_buffer’ was not declared in this scope make[4]: *** [libmacro_a-MacroFlex.o] Error 1 make[4]: Leaving directory `/home/rattoma/dynare_v4/trunk/preprocessor/macro' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/rattoma/dynare_v4/trunk/preprocessor/macro' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/rattoma/dynare_v4/trunk/preprocessor' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/rattoma/dynare_v4/trunk/preprocessor' make: *** [all-recursive] Error 1