Advertisement
Guest User

Untitled

a guest
Aug 4th, 2014
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. $ make
  2. gcc -c -std=c99 -Wall -Werror -Wno-unused-variable -Wno-format-security -O3 -static src/carp_instructions.c src/carp_lexer.c src/carp_machine.c src/carp_tokenizer.c src/lib/carp_stack.c src/lib/carp_ht.c
  3.  
  4. In file included from src/carp_machine.h:8:0,
  5. from src/carp_instructions.c:1:
  6. src/carp_instructions.h:4:15: error: redeclaration of enumerator ‘CARP_INSTR_MOV’
  7. #define ci(x) CARP_INSTR_##x
  8. ^
  9. src/carp_instructions.h:29:3: note: in expansion of macro ‘ci’
  10. ci(MOV) ,
  11. ^
  12. src/carp_instructions.h:4:15: note: previous definition of ‘CARP_INSTR_MOV’ was here
  13. #define ci(x) CARP_INSTR_##x
  14. ^
  15. src/carp_instructions.h:12:3: note: in expansion of macro ‘ci’
  16. ci(MOV) ,
  17. ^
  18. In file included from src/carp_instructions.c:1:0:
  19. src/carp_machine.h:67:25: error: ‘CARP_INSTR_REM’ undeclared here (not in a function)
  20. #define assigninstr(x) [CARP_INSTR_##x] = carp_instr_##x
  21. ^
  22. src/carp_machine.h:77:21: note: in expansion of macro ‘assigninstr’
  23. assigninstr(MOD), assigninstr(REM),
  24. ^
  25. src/carp_machine.h:77:3: error: array index in initializer not of integer type
  26. assigninstr(MOD), assigninstr(REM),
  27. ^
  28. src/carp_machine.h:77:3: error: (near initialization for ‘carp_instructions’)
  29. src/carp_machine.h:44:26: error: redefinition of ‘carp_instr_MOV’
  30. #define definstr(x) void carp_instr_##x (carp_machine_state *m)
  31. ^
  32. src/carp_instructions.c:103:1: note: in expansion of macro ‘definstr’
  33. definstr (MOV) {
  34. ^
  35. src/carp_machine.h:44:26: note: previous definition of ‘carp_instr_MOV’ was here
  36. #define definstr(x) void carp_instr_##x (carp_machine_state *m)
  37. ^
  38. src/carp_instructions.c:24:1: note: in expansion of macro ‘definstr’
  39. definstr (MOV) {
  40. ^
  41. src/carp_instructions.c: In function ‘carp_instr_MOV’:
  42. src/carp_instructions.c:104:21: error: initialization makes pointer from integer without a cast [-Werror]
  43. long long *rega = m->regs[carp_vm_next(m)],
  44. ^
  45. src/carp_instructions.c:105:13: error: initialization makes pointer from integer without a cast [-Werror]
  46. *regb = m->regs[carp_vm_next(m)];
  47. ^
  48. cc1: all warnings being treated as errors
  49. In file included from src/carp_tokenizer.h:11:0,
  50. from src/carp_lexer.h:5,
  51. from src/carp_lexer.c:1:
  52. src/carp_instructions.h:4:15: error: redeclaration of enumerator ‘CARP_INSTR_MOV’
  53. #define ci(x) CARP_INSTR_##x
  54. ^
  55. src/carp_instructions.h:29:3: note: in expansion of macro ‘ci’
  56. ci(MOV) ,
  57. ^
  58. src/carp_instructions.h:4:15: note: previous definition of ‘CARP_INSTR_MOV’ was here
  59. #define ci(x) CARP_INSTR_##x
  60. ^
  61. src/carp_instructions.h:12:3: note: in expansion of macro ‘ci’
  62. ci(MOV) ,
  63. ^
  64. In file included from src/carp_lexer.h:6:0,
  65. from src/carp_lexer.c:1:
  66. src/carp_machine.h:67:25: error: ‘CARP_INSTR_REM’ undeclared here (not in a function)
  67. #define assigninstr(x) [CARP_INSTR_##x] = carp_instr_##x
  68. ^
  69. src/carp_machine.h:77:21: note: in expansion of macro ‘assigninstr’
  70. assigninstr(MOD), assigninstr(REM),
  71. ^
  72. src/carp_machine.h:77:3: error: array index in initializer not of integer type
  73. assigninstr(MOD), assigninstr(REM),
  74. ^
  75. src/carp_machine.h:77:3: error: (near initialization for ‘carp_instructions’)
  76. In file included from src/carp_machine.h:8:0,
  77. from src/carp_machine.c:1:
  78. src/carp_instructions.h:4:15: error: redeclaration of enumerator ‘CARP_INSTR_MOV’
  79. #define ci(x) CARP_INSTR_##x
  80. ^
  81. src/carp_instructions.h:29:3: note: in expansion of macro ‘ci’
  82. ci(MOV) ,
  83. ^
  84. src/carp_instructions.h:4:15: note: previous definition of ‘CARP_INSTR_MOV’ was here
  85. #define ci(x) CARP_INSTR_##x
  86. ^
  87. src/carp_instructions.h:12:3: note: in expansion of macro ‘ci’
  88. ci(MOV) ,
  89. ^
  90. In file included from src/carp_machine.c:1:0:
  91. src/carp_machine.h:67:25: error: ‘CARP_INSTR_REM’ undeclared here (not in a function)
  92. #define assigninstr(x) [CARP_INSTR_##x] = carp_instr_##x
  93. ^
  94. src/carp_machine.h:77:21: note: in expansion of macro ‘assigninstr’
  95. assigninstr(MOD), assigninstr(REM),
  96. ^
  97. src/carp_machine.h:77:3: error: array index in initializer not of integer type
  98. assigninstr(MOD), assigninstr(REM),
  99. ^
  100. src/carp_machine.h:77:3: error: (near initialization for ‘carp_instructions’)
  101. In file included from src/carp_tokenizer.h:11:0,
  102. from src/carp_tokenizer.c:1:
  103. src/carp_instructions.h:4:15: error: redeclaration of enumerator ‘CARP_INSTR_MOV’
  104. #define ci(x) CARP_INSTR_##x
  105. ^
  106. src/carp_instructions.h:29:3: note: in expansion of macro ‘ci’
  107. ci(MOV) ,
  108. ^
  109. src/carp_instructions.h:4:15: note: previous definition of ‘CARP_INSTR_MOV’ was here
  110. #define ci(x) CARP_INSTR_##x
  111. ^
  112. src/carp_instructions.h:12:3: note: in expansion of macro ‘ci’
  113. ci(MOV) ,
  114. ^
  115. Makefile:11: recipe for target 'all' failed
  116. make: *** [all] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement