Untitled
unknown
makefile
2 years ago
6.0 kB
3
Indexable
Never
pdss.c: At top level: pdss.c:87:1: warning: return type defaults to ‘int’ [-Wimplicit-int] abort_pdss(sig) ^~~~~~~~~~ pdss.c:93:1: warning: return type defaults to ‘int’ [-Wimplicit-int] exit_pdss(code) ^~~~~~~~~ pdss.c: In function ‘exit_pdss’: pdss.c:98:5: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] exit(code); ^~~~ pdss.c:98:5: warning: incompatible implicit declaration of built-in function ‘exit’ pdss.c:98:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ pdss.c: At top level: pdss.c:106:8: warning: return type defaults to ‘int’ [-Wimplicit-int] static load_kl1b_file() ^~~~~~~~~~~~~~ pdss.c:106:8: error: static declaration of ‘load_kl1b_file’ follows non-static declaration pdss.c:50:5: note: previous implicit declaration of ‘load_kl1b_file’ was here load_kl1b_file(); ^~~~~~~~~~~~~~ pdss.c: In function ‘load_kl1b_file’: pdss.c:129:12: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] len = strlen(file_name); ^~~~~~ pdss.c:129:12: warning: incompatible implicit declaration of built-in function ‘strlen’ pdss.c:129:12: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ pdss.c:132:6: warning: implicit declaration of function ‘load_kl1b_file_and_enter_module’; did you mean ‘load_and_link_native_code_module’? [-Wimplicit-function-declaration] load_kl1b_file_and_enter_module(file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load_and_link_native_code_module pdss.c:136:12: warning: incompatible implicit declaration of built-in function ‘strlen’ len = strlen(execute_goal); ^~~~~~ pdss.c:136:12: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ pdss.c:151:28: warning: ‘return’ with no value, in function returning non-void if(file_name[0] == 0) return; ^~~~~~ pdss.c:106:8: note: declared here static load_kl1b_file() ^~~~~~~~~~~~~~ pdss.c: At top level: pdss.c:159:8: warning: return type defaults to ‘int’ [-Wimplicit-int] static load_kl1b_file_and_enter_module(file) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pdss.c:159:8: error: static declaration of ‘load_kl1b_file_and_enter_module’ follows non-static declaration pdss.c:132:6: note: previous implicit declaration of ‘load_kl1b_file_and_enter_module’ was here load_kl1b_file_and_enter_module(file_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pdss.c:194:13: error: static declaration of ‘read_top_level_goal’ follows non-static declaration static OBJ *read_top_level_goal() ^~~~~~~~~~~~~~~~~~~ pdss.c:32:23: note: previous declaration of ‘read_top_level_goal’ was here OBJ *top_level, *read_top_level_goal(); ^~~~~~~~~~~~~~~~~~~ pdss.c:242:14: error: static declaration of ‘scan_name’ follows non-static declaration static CHAR *scan_name(s) ^~~~~~~~~ pdss.c:196:36: note: previous declaration of ‘scan_name’ was here CHAR *module, *predicate, *c, *scan_name(); ^~~~~~~~~ pdss.c:283:8: warning: return type defaults to ‘int’ [-Wimplicit-int] static write_result() ^~~~~~~~~~~~ pdss.c:283:8: error: static declaration of ‘write_result’ follows non-static declaration pdss.c:66:6: note: previous implicit declaration of ‘write_result’ was here write_result(); ^~~~~~~~~~~~ In file included from pdss.h:30:0, from pdss.c:12: pdss.c: In function ‘write_result’: cell.h:24:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define Objectof(X) ((CELL *)Valueof(X)) ^ cell.h:15:21: note: in definition of macro ‘Typeof’ #define Typeof(X) ((X)->type) ^ pdss.h:548:5: note: in expansion of macro ‘IsUnbound’ if(IsUnbound(Objectof(Var))){\ ^~~~~~~~~ pdss.h:548:15: note: in expansion of macro ‘Objectof’ if(IsUnbound(Objectof(Var))){\ ^~~~~~~~ pdss.c:287:5: note: in expansion of macro ‘Dereference2’ Dereference2(result_of_grand_mother, tmp); ^~~~~~~~~~~~ cell.h:24:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define Objectof(X) ((CELL *)Valueof(X)) ^ pdss.h:549:12: note: in expansion of macro ‘Objectof’ Var = Objectof(Var);\ ^~~~~~~~ pdss.c:287:5: note: in expansion of macro ‘Dereference2’ Dereference2(result_of_grand_mother, tmp); ^~~~~~~~~~~~ pdss.c:297:2: warning: ‘return’ with no value, in function returning non-void return; ^~~~~~ pdss.c:283:8: note: declared here static write_result() ^~~~~~~~~~~~ pdss.c: At top level: pdss.c:337:1: warning: return type defaults to ‘int’ [-Wimplicit-int] timeit(routine) ^~~~~~ In file included from pdss.c:13:0: pdss.c: In function ‘timeit’: pdss.c:349:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] PrintCons2F("\nSystem: %8d msec\nUser: %10d msec\n", sspent, uspent); ^ io.h:149:35: note: in definition of macro ‘PrintCons2F’ { SelectWindow(CONSOLE); printf(format, x1, x2); } ^~~~~~ pdss.c:349:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] PrintCons2F("\nSystem: %8d msec\nUser: %10d msec\n", sspent, uspent); ^ io.h:149:35: note: in definition of macro ‘PrintCons2F’ { SelectWindow(CONSOLE); printf(format, x1, x2); } ^~~~~~ <builtin>: recipe for target 'pdss.o' failed make[1]: *** [pdss.o] Error 1 make[1]: Leaving directory '/home/prokhor/work/5thgcs/pdss/emulator' Makefile:19: recipe for target 'all' failed make: *** [all] Error 2