how to recompile the parser?

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

how to recompile the parser?

Postby ricardo » Wed Jun 21, 2006 8:43 pm

Dear all:

I want to run Matlab on unix and I have no clue how to recompile the parser. Can somebody help?

Best

Ricardo
ricardo
 
Posts: 5
Joined: Thu Jun 15, 2006 8:11 pm

Postby MichelJuillard » Mon Jun 26, 2006 7:24 pm

Look at the makefile in parser.src

Kind regards

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby fhamann » Wed Aug 02, 2006 2:17 pm

Ricardo:
I have run into a similar problem. The Makefile, if you are not familiar to C, is not very informative. I have managed to compile dynare.c file but here is what I get:

bash-2.05$ gcc -Wall -g -c -I/.. dynare.c -DMATLAB
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `copy_update_indexed_var':
dynare.c:1652: warning: embedded `\0' in format
dynare.c:1656: warning: embedded `\0' in format
dynare.c:1694: warning: embedded `\0' in format
bash-2.05$ ls
d.h d_tab.c #dynare.c# dyn.l makefile
d_ll.c d_tab.h dynare.c #makefile# mymakefile
d.output d.y dynare.o makefile~
bash-2.05$ chmod 777 *.o
bash-2.05$ dynare.o
bash: dynare.o: command not found
bash-2.05$ ./dynare.o
bash: ./dynare.o: cannot execute binary file

I don't know if you managed to sort out this problem... So far I am not able to execute dynare in Solaris 9 on a Sparc. Any clue of what might be going on?
fhamann
 
Posts: 6
Joined: Wed Dec 29, 2004 2:57 pm
Location: Bogotá

Postby MichelJuillard » Wed Aug 02, 2006 4:56 pm

fhamann wrote:
bash-2.05$ gcc -Wall -g -c -I/.. dynare.c -DMATLAB


is only one of the instructions that need to be ran.

At the shell prompt, just type 'make'
this will run the make file and execute all the required instructions.

The warnings that you are getting are harmless and expected.

Please report any error that you get while running 'make'

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby fhamann » Wed Aug 02, 2006 7:29 pm

Michel:
thanks for your answer. In the makefile I have replaced:
- the -mno-cygwin option
- the flex command by lex (flex is a Linux command and lex is its equivalent in Solaris)
and the output is below. Thanks again for your help!

make -k
gcc -g -c dynare.c -o dynare_m.o -DMATLAB -Wall #-DDEBUG
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `copy_update_indexed_var':
dynare.c:1652: warning: embedded `\0' in format
dynare.c:1656: warning: embedded `\0' in format
dynare.c:1694: warning: embedded `\0' in format
gcc -g -c -DYYDEBUG=1 d_tab.c
gcc -g -c d_ll.c
make: Warning: Don't know how to make target `precompiler.cc'
make: Warning: Don't know how to make target `precompiler.hh'
gcc -g -c dynare.c -o dynare_s.o -DSCILAB -Wall
dynare.c: In function `main':
dynare.c:82: warning: unused variable `buffer'
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `p_i_shocks':
dynare.c:1341: warning: unused variable `buff'
dynare.c: In function `copy_update_indexed_var':
dynare.c:1652: warning: embedded `\0' in format
dynare.c:1656: warning: embedded `\0' in format
dynare.c:1694: warning: embedded `\0' in format
gcc -g -o dynare_s.exe dynare_s.o d_tab.o d_ll.o
Undefined first referenced
symbol in file
compile_endif d_tab.o
compile_define d_tab.o
compile_elseif d_tab.o
compile_else d_tab.o
compile_if d_tab.o
ld: fatal: Symbol referencing errors. No output written to dynare_s.exe
collect2: ld returned 1 exit status
*** Error code 1
gcc -g -c dynare.c -o dynare_g.o -DGAUSS -Wall #-DDEBUG
dynare.c: In function `main':
dynare.c:82: warning: unused variable `buffer'
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `print_recur':
dynare.c:958: error: parse error before '<' token
dynare.c: At top level:
dynare.c:968: error: parse error before '}' token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to `int' in declaration of `str_output'
dynare.c:969: error: conflicting types for `str_output'
dynare.c:69: error: previous declaration of `str_output'
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to `int' in declaration of `sprintf'
dynare.c:994: warning: conflicting types for built-in function `sprintf'
dynare.c:994: warning: data definition has no type or storage class
dynare.c:995: warning: type defaults to `int' in declaration of `str_output'
dynare.c:995: warning: parameter names (without types) in function declaration
dynare.c:995: warning: data definition has no type or storage class
dynare.c:996: error: parse error before '}' token
dynare.c:1000: error: conflicting types for `str_output'
dynare.c:995: error: previous declaration of `str_output'
dynare.c: In function `p_i_shocks':
dynare.c:1341: warning: unused variable `buff'
dynare.c: In function `p_e_shocks':
dynare.c:1360: warning: unused variable `buffer'
dynare.c: In function `print_param':
dynare.c:1754: warning: unused variable `i'
dynare.c: In function `p_stoch_simul':
dynare.c:1776: warning: unused variable `buffer'
dynare.c:1777: warning: unused variable `i'
dynare.c: In function `p_irf':
dynare.c:1876: warning: unused variable `i'
dynare.c: In function `p_disp_dr':
dynare.c:1950: warning: unused variable `i'
dynare.c: In function `p_disp_moments':
dynare.c:1983: warning: unused variable `i'
dynare.c: In function `p_calib_init':
dynare.c:2159: warning: unused variable `i'
dynare.c:2160: warning: unused variable `buffer'
dynare.c: In function `p_dynatype':
dynare.c:2276: warning: unused variable `i'
dynare.c: In function `p_dynasave':
dynare.c:2338: warning: unused variable `i'
dynare.c: In function `p_sigma_e':
dynare.c:2399: warning: unused variable `up'
dynare.c:2399: warning: unused variable `i'
dynare.c:2399: warning: unused variable `j'
dynare.c:2399: warning: unused variable `i1'
dynare.c:2399: warning: unused variable `j1'
dynare.c:2399: warning: unused variable `p1'
dynare.c:2399: warning: unused variable `p2'
dynare.c:2400: warning: unused variable `order'
dynare.c:2401: warning: unused variable `po'
dynare.c:2402: warning: unused variable `p_q1'
dynare.c: In function `p_osr':
dynare.c:2519: warning: unused variable `buffer'
dynare.c:2520: warning: unused variable `i'
dynare.c: In function `p_olr':
dynare.c:2564: warning: unused variable `buffer'
dynare.c:2565: warning: unused variable `i'
dynare.c: In function `p_estimation':
dynare.c:2967: warning: unused variable `buffer'
dynare.c:2968: warning: unused variable `i'
dynare.c: In function `p_forecast':
dynare.c:3143: warning: unused variable `buffer'
dynare.c:3144: warning: unused variable `i'
*** Error code 1
gcc -g -c dynare.c -o dynare_OxPro.o -DGAUSS -DOXGAUSS -Wall
dynare.c: In function `main':
dynare.c:82: warning: unused variable `buffer'
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `print_recur':
dynare.c:958: error: parse error before '<' token
dynare.c: At top level:
dynare.c:968: error: parse error before '}' token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to `int' in declaration of `str_output'
dynare.c:969: error: conflicting types for `str_output'
dynare.c:69: error: previous declaration of `str_output'
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to `int' in declaration of `sprintf'
dynare.c:994: warning: conflicting types for built-in function `sprintf'
dynare.c:994: warning: data definition has no type or storage class
dynare.c:995: warning: type defaults to `int' in declaration of `str_output'
dynare.c:995: warning: parameter names (without types) in function declaration
dynare.c:995: warning: data definition has no type or storage class
dynare.c:996: error: parse error before '}' token
dynare.c:1000: error: conflicting types for `str_output'
dynare.c:995: error: previous declaration of `str_output'
dynare.c: In function `p_i_shocks':
dynare.c:1341: warning: unused variable `buff'
dynare.c: In function `p_e_shocks':
dynare.c:1360: warning: unused variable `buffer'
dynare.c: In function `print_param':
dynare.c:1754: warning: unused variable `i'
dynare.c: In function `p_stoch_simul':
dynare.c:1776: warning: unused variable `buffer'
dynare.c:1777: warning: unused variable `i'
dynare.c: In function `p_irf':
dynare.c:1876: warning: unused variable `i'
dynare.c: In function `p_disp_dr':
dynare.c:1950: warning: unused variable `i'
dynare.c: In function `p_disp_moments':
dynare.c:1983: warning: unused variable `i'
dynare.c: In function `p_calib_init':
dynare.c:2159: warning: unused variable `i'
dynare.c:2160: warning: unused variable `buffer'
dynare.c: In function `p_dynatype':
dynare.c:2276: warning: unused variable `i'
dynare.c: In function `p_dynasave':
dynare.c:2338: warning: unused variable `i'
dynare.c: In function `p_sigma_e':
dynare.c:2399: warning: unused variable `up'
dynare.c:2399: warning: unused variable `i'
dynare.c:2399: warning: unused variable `j'
dynare.c:2399: warning: unused variable `i1'
dynare.c:2399: warning: unused variable `j1'
dynare.c:2399: warning: unused variable `p1'
dynare.c:2399: warning: unused variable `p2'
dynare.c:2400: warning: unused variable `order'
dynare.c:2401: warning: unused variable `po'
dynare.c:2402: warning: unused variable `p_q1'
dynare.c: In function `p_osr':
dynare.c:2519: warning: unused variable `buffer'
dynare.c:2520: warning: unused variable `i'
dynare.c: In function `p_olr':
dynare.c:2564: warning: unused variable `buffer'
dynare.c:2565: warning: unused variable `i'
dynare.c: In function `p_estimation':
dynare.c:2967: warning: unused variable `buffer'
dynare.c:2968: warning: unused variable `i'
dynare.c: In function `p_forecast':
dynare.c:3143: warning: unused variable `buffer'
dynare.c:3144: warning: unused variable `i'
*** Error code 1
gcc -g -c dynare.c -o dynare_Oxcons.o -DGAUSS -DOXGAUSS -DOXGAUSS_GNU -Wall
dynare.c: In function `main':
dynare.c:82: warning: unused variable `buffer'
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `print_recur':
dynare.c:958: error: parse error before '<' token
dynare.c: At top level:
dynare.c:968: error: parse error before '}' token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to `int' in declaration of `str_output'
dynare.c:969: error: conflicting types for `str_output'
dynare.c:69: error: previous declaration of `str_output'
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to `int' in declaration of `sprintf'
dynare.c:994: warning: conflicting types for built-in function `sprintf'
dynare.c:994: warning: data definition has no type or storage class
dynare.c:995: warning: type defaults to `int' in declaration of `str_output'
dynare.c:995: warning: parameter names (without types) in function declaration
dynare.c:995: warning: data definition has no type or storage class
dynare.c:996: error: parse error before '}' token
dynare.c:1000: error: conflicting types for `str_output'
dynare.c:995: error: previous declaration of `str_output'
dynare.c: In function `p_i_shocks':
dynare.c:1341: warning: unused variable `buff'
dynare.c: In function `p_e_shocks':
dynare.c:1360: warning: unused variable `buffer'
dynare.c: In function `print_param':
dynare.c:1754: warning: unused variable `i'
dynare.c: In function `p_stoch_simul':
dynare.c:1776: warning: unused variable `buffer'
dynare.c:1777: warning: unused variable `i'
dynare.c: In function `p_irf':
dynare.c:1876: warning: unused variable `i'
dynare.c: In function `p_disp_dr':
dynare.c:1950: warning: unused variable `i'
dynare.c: In function `p_disp_moments':
dynare.c:1983: warning: unused variable `i'
dynare.c: In function `p_calib_init':
dynare.c:2159: warning: unused variable `i'
dynare.c:2160: warning: unused variable `buffer'
dynare.c: In function `p_dynatype':
dynare.c:2276: warning: unused variable `i'
dynare.c: In function `p_dynasave':
dynare.c:2338: warning: unused variable `i'
dynare.c: In function `p_sigma_e':
dynare.c:2399: warning: unused variable `up'
dynare.c:2399: warning: unused variable `i'
dynare.c:2399: warning: unused variable `j'
dynare.c:2399: warning: unused variable `i1'
dynare.c:2399: warning: unused variable `j1'
dynare.c:2399: warning: unused variable `p1'
dynare.c:2399: warning: unused variable `p2'
dynare.c:2400: warning: unused variable `order'
dynare.c:2401: warning: unused variable `po'
dynare.c:2402: warning: unused variable `p_q1'
dynare.c: In function `p_osr':
dynare.c:2519: warning: unused variable `buffer'
dynare.c:2520: warning: unused variable `i'
dynare.c: In function `p_olr':
dynare.c:2564: warning: unused variable `buffer'
dynare.c:2565: warning: unused variable `i'
dynare.c: In function `p_estimation':
dynare.c:2967: warning: unused variable `buffer'
dynare.c:2968: warning: unused variable `i'
dynare.c: In function `p_forecast':
dynare.c:3143: warning: unused variable `buffer'
dynare.c:3144: warning: unused variable `i'
*** Error code 1
make: Warning: Target `all' not remade because of errors

Compilation exited abnormally with code 1 at Wed Aug 2 14:19:09
fhamann
 
Posts: 6
Joined: Wed Dec 29, 2004 2:57 pm
Location: Bogotá

Postby admin » Wed Aug 02, 2006 8:04 pm

Hi Franz,

I realize that the makefile is messy, lots of useless things for most people. Sorry about that.

Also, there were two files precompiler.cc and precompiler.hh missing from the zip file. I have updated dyn_parser_v3_064.zip on the server, could you download it again?

In order to get what you want, it is enough to do make -k dynare_m.exe

You can also rename dynare_m.exe into dynare_m to make it more like a Unix executable. Change dynare.m accordingly

Kind regards

Michel
admin
 

Postby fhamann » Wed Aug 02, 2006 8:09 pm

Oops, I apologize for a mistake: I replaced the first line for:
all: dynare_m.o dynare_s.exe dynare_g.exe dynare_OxPro.exe dynare_Oxcons.exe
and here is what I got:



make -k
gcc -g -c dynare.c -o dynare_m.o -DMATLAB -Wall #-DDEBUG
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `copy_update_indexed_var':
dynare.c:1652: warning: embedded `\0' in format
dynare.c:1656: warning: embedded `\0' in format
dynare.c:1694: warning: embedded `\0' in format
gcc -g -c dynare.c -o dynare_s.o -DSCILAB -Wall
dynare.c: In function `main':
dynare.c:82: warning: unused variable `buffer'
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `p_i_shocks':
dynare.c:1341: warning: unused variable `buff'
dynare.c: In function `copy_update_indexed_var':
dynare.c:1652: warning: embedded `\0' in format
dynare.c:1656: warning: embedded `\0' in format
dynare.c:1694: warning: embedded `\0' in format
gcc -g -c -DYYDEBUG=1 d_tab.c
gcc -g -c d_ll.c
gcc -g -o dynare_s.exe dynare_s.o d_tab.o d_ll.o
Undefined first referenced
symbol in file
compile_endif d_tab.o
compile_define d_tab.o
compile_elseif d_tab.o
compile_else d_tab.o
compile_if d_tab.o
ld: fatal: Symbol referencing errors. No output written to dynare_s.exe
collect2: ld returned 1 exit status
*** Error code 1
gcc -g -c dynare.c -o dynare_g.o -DGAUSS -Wall #-DDEBUG
dynare.c: In function `main':
dynare.c:82: warning: unused variable `buffer'
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `print_recur':
dynare.c:958: error: parse error before '<' token
dynare.c: At top level:
dynare.c:968: error: parse error before '}' token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to `int' in declaration of `str_output'
dynare.c:969: error: conflicting types for `str_output'
dynare.c:69: error: previous declaration of `str_output'
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to `int' in declaration of `sprintf'
dynare.c:994: warning: conflicting types for built-in function `sprintf'
dynare.c:994: warning: data definition has no type or storage class
dynare.c:995: warning: type defaults to `int' in declaration of `str_output'
dynare.c:995: warning: parameter names (without types) in function declaration
dynare.c:995: warning: data definition has no type or storage class
dynare.c:996: error: parse error before '}' token
dynare.c:1000: error: conflicting types for `str_output'
dynare.c:995: error: previous declaration of `str_output'
dynare.c: In function `p_i_shocks':
dynare.c:1341: warning: unused variable `buff'
dynare.c: In function `p_e_shocks':
dynare.c:1360: warning: unused variable `buffer'
dynare.c: In function `print_param':
dynare.c:1754: warning: unused variable `i'
dynare.c: In function `p_stoch_simul':
dynare.c:1776: warning: unused variable `buffer'
dynare.c:1777: warning: unused variable `i'
dynare.c: In function `p_irf':
dynare.c:1876: warning: unused variable `i'
dynare.c: In function `p_disp_dr':
dynare.c:1950: warning: unused variable `i'
dynare.c: In function `p_disp_moments':
dynare.c:1983: warning: unused variable `i'
dynare.c: In function `p_calib_init':
dynare.c:2159: warning: unused variable `i'
dynare.c:2160: warning: unused variable `buffer'
dynare.c: In function `p_dynatype':
dynare.c:2276: warning: unused variable `i'
dynare.c: In function `p_dynasave':
dynare.c:2338: warning: unused variable `i'
dynare.c: In function `p_sigma_e':
dynare.c:2399: warning: unused variable `up'
dynare.c:2399: warning: unused variable `i'
dynare.c:2399: warning: unused variable `j'
dynare.c:2399: warning: unused variable `i1'
dynare.c:2399: warning: unused variable `j1'
dynare.c:2399: warning: unused variable `p1'
dynare.c:2399: warning: unused variable `p2'
dynare.c:2400: warning: unused variable `order'
dynare.c:2401: warning: unused variable `po'
dynare.c:2402: warning: unused variable `p_q1'
dynare.c: In function `p_osr':
dynare.c:2519: warning: unused variable `buffer'
dynare.c:2520: warning: unused variable `i'
dynare.c: In function `p_olr':
dynare.c:2564: warning: unused variable `buffer'
dynare.c:2565: warning: unused variable `i'
dynare.c: In function `p_estimation':
dynare.c:2967: warning: unused variable `buffer'
dynare.c:2968: warning: unused variable `i'
dynare.c: In function `p_forecast':
dynare.c:3143: warning: unused variable `buffer'
dynare.c:3144: warning: unused variable `i'
*** Error code 1
gcc -g -c dynare.c -o dynare_OxPro.o -DGAUSS -DOXGAUSS -Wall
dynare.c: In function `main':
dynare.c:82: warning: unused variable `buffer'
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `print_recur':
dynare.c:958: error: parse error before '<' token
dynare.c: At top level:
dynare.c:968: error: parse error before '}' token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to `int' in declaration of `str_output'
dynare.c:969: error: conflicting types for `str_output'
dynare.c:69: error: previous declaration of `str_output'
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to `int' in declaration of `sprintf'
dynare.c:994: warning: conflicting types for built-in function `sprintf'
dynare.c:994: warning: data definition has no type or storage class
dynare.c:995: warning: type defaults to `int' in declaration of `str_output'
dynare.c:995: warning: parameter names (without types) in function declaration
dynare.c:995: warning: data definition has no type or storage class
dynare.c:996: error: parse error before '}' token
dynare.c:1000: error: conflicting types for `str_output'
dynare.c:995: error: previous declaration of `str_output'
dynare.c: In function `p_i_shocks':
dynare.c:1341: warning: unused variable `buff'
dynare.c: In function `p_e_shocks':
dynare.c:1360: warning: unused variable `buffer'
dynare.c: In function `print_param':
dynare.c:1754: warning: unused variable `i'
dynare.c: In function `p_stoch_simul':
dynare.c:1776: warning: unused variable `buffer'
dynare.c:1777: warning: unused variable `i'
dynare.c: In function `p_irf':
dynare.c:1876: warning: unused variable `i'
dynare.c: In function `p_disp_dr':
dynare.c:1950: warning: unused variable `i'
dynare.c: In function `p_disp_moments':
dynare.c:1983: warning: unused variable `i'
dynare.c: In function `p_calib_init':
dynare.c:2159: warning: unused variable `i'
dynare.c:2160: warning: unused variable `buffer'
dynare.c: In function `p_dynatype':
dynare.c:2276: warning: unused variable `i'
dynare.c: In function `p_dynasave':
dynare.c:2338: warning: unused variable `i'
dynare.c: In function `p_sigma_e':
dynare.c:2399: warning: unused variable `up'
dynare.c:2399: warning: unused variable `i'
dynare.c:2399: warning: unused variable `j'
dynare.c:2399: warning: unused variable `i1'
dynare.c:2399: warning: unused variable `j1'
dynare.c:2399: warning: unused variable `p1'
dynare.c:2399: warning: unused variable `p2'
dynare.c:2400: warning: unused variable `order'
dynare.c:2401: warning: unused variable `po'
dynare.c:2402: warning: unused variable `p_q1'
dynare.c: In function `p_osr':
dynare.c:2519: warning: unused variable `buffer'
dynare.c:2520: warning: unused variable `i'
dynare.c: In function `p_olr':
dynare.c:2564: warning: unused variable `buffer'
dynare.c:2565: warning: unused variable `i'
dynare.c: In function `p_estimation':
dynare.c:2967: warning: unused variable `buffer'
dynare.c:2968: warning: unused variable `i'
dynare.c: In function `p_forecast':
dynare.c:3143: warning: unused variable `buffer'
dynare.c:3144: warning: unused variable `i'
*** Error code 1
gcc -g -c dynare.c -o dynare_Oxcons.o -DGAUSS -DOXGAUSS -DOXGAUSS_GNU -Wall
dynare.c: In function `main':
dynare.c:82: warning: unused variable `buffer'
dynare.c: In function `add_var_range':
dynare.c:234: warning: embedded `\0' in format
dynare.c: In function `m_del':
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function `p_histval':
dynare.c:740: warning: unused variable `buffer'
dynare.c: In function `print_recur':
dynare.c:958: error: parse error before '<' token
dynare.c: At top level:
dynare.c:968: error: parse error before '}' token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to `int' in declaration of `str_output'
dynare.c:969: error: conflicting types for `str_output'
dynare.c:69: error: previous declaration of `str_output'
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to `int' in declaration of `sprintf'
dynare.c:994: warning: conflicting types for built-in function `sprintf'
dynare.c:994: warning: data definition has no type or storage class
dynare.c:995: warning: type defaults to `int' in declaration of `str_output'
dynare.c:995: warning: parameter names (without types) in function declaration
dynare.c:995: warning: data definition has no type or storage class
dynare.c:996: error: parse error before '}' token
dynare.c:1000: error: conflicting types for `str_output'
dynare.c:995: error: previous declaration of `str_output'
dynare.c: In function `p_i_shocks':
dynare.c:1341: warning: unused variable `buff'
dynare.c: In function `p_e_shocks':
dynare.c:1360: warning: unused variable `buffer'
dynare.c: In function `print_param':
dynare.c:1754: warning: unused variable `i'
dynare.c: In function `p_stoch_simul':
dynare.c:1776: warning: unused variable `buffer'
dynare.c:1777: warning: unused variable `i'
dynare.c: In function `p_irf':
dynare.c:1876: warning: unused variable `i'
dynare.c: In function `p_disp_dr':
dynare.c:1950: warning: unused variable `i'
dynare.c: In function `p_disp_moments':
dynare.c:1983: warning: unused variable `i'
dynare.c: In function `p_calib_init':
dynare.c:2159: warning: unused variable `i'
dynare.c:2160: warning: unused variable `buffer'
dynare.c: In function `p_dynatype':
dynare.c:2276: warning: unused variable `i'
dynare.c: In function `p_dynasave':
dynare.c:2338: warning: unused variable `i'
dynare.c: In function `p_sigma_e':
dynare.c:2399: warning: unused variable `up'
dynare.c:2399: warning: unused variable `i'
dynare.c:2399: warning: unused variable `j'
dynare.c:2399: warning: unused variable `i1'
dynare.c:2399: warning: unused variable `j1'
dynare.c:2399: warning: unused variable `p1'
dynare.c:2399: warning: unused variable `p2'
dynare.c:2400: warning: unused variable `order'
dynare.c:2401: warning: unused variable `po'
dynare.c:2402: warning: unused variable `p_q1'
dynare.c: In function `p_osr':
dynare.c:2519: warning: unused variable `buffer'
dynare.c:2520: warning: unused variable `i'
dynare.c: In function `p_olr':
dynare.c:2564: warning: unused variable `buffer'
dynare.c:2565: warning: unused variable `i'
dynare.c: In function `p_estimation':
dynare.c:2967: warning: unused variable `buffer'
dynare.c:2968: warning: unused variable `i'
dynare.c: In function `p_forecast':
dynare.c:3143: warning: unused variable `buffer'
dynare.c:3144: warning: unused variable `i'
*** Error code 1
make: Warning: Target `all' not remade because of errors

Compilation exited abnormally with code 1 at Wed Aug 2 14:34:42
fhamann
 
Posts: 6
Joined: Wed Dec 29, 2004 2:57 pm
Location: Bogotá

Postby admin » Wed Aug 02, 2006 8:36 pm

You don't want to remake all the different configuration. The only thing that you want is
dynare_m.exe
and that requires
d_tab.h d_tab.c (created by bison)
d_ll.c (created by (f)lex)
dynare_m.o precompiler.o d_tab.o d_ll.o

Best

Michel
admin
 

Postby fhamann » Wed Aug 02, 2006 9:02 pm

Thanks Michel. What confuses me is the extension .exe since I am running solaris on a sparc machine. I guess this is irrelevant...One final thing, I tried to download the parser*.zip and I get the message: "the document is being edited/updated by an user and is unavailable at this moment." I will wait for your updates. Thanks again, you are very kind!!!
fhamann
 
Posts: 6
Joined: Wed Dec 29, 2004 2:57 pm
Location: Bogotá

Postby MichelJuillard » Thu Aug 10, 2006 1:57 pm

Dear Franz,

for some reason I only see your message now.
1) whenever you have dynare_m.exe, you can substitute dynare_m (but be systematical!)

2) sorry about the archive, I had forgotten to close it properly. You should be able to download it now.

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby fhamann » Thu Aug 10, 2006 2:43 pm

Thanks Michel! I was able to recompile the parser. Anyone interested in the dynare_m binary file please send me an email. Two important things that people (at least unix newbies like me) might want to know when recompiling in Solaris (I used Solaris 9):
1. erase the cygwin option
2. replace bison by yacc and flex by lex.
Dynare runs nicely in unix!
Best regards,
Franz
fhamann
 
Posts: 6
Joined: Wed Dec 29, 2004 2:57 pm
Location: Bogotá


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 10 guests