Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ make
- 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
- In file included from src/carp_machine.h:8:0,
- from src/carp_instructions.c:1:
- src/carp_instructions.h:4:15: error: redeclaration of enumerator ‘CARP_INSTR_MOV’
- #define ci(x) CARP_INSTR_##x
- ^
- src/carp_instructions.h:29:3: note: in expansion of macro ‘ci’
- ci(MOV) ,
- ^
- src/carp_instructions.h:4:15: note: previous definition of ‘CARP_INSTR_MOV’ was here
- #define ci(x) CARP_INSTR_##x
- ^
- src/carp_instructions.h:12:3: note: in expansion of macro ‘ci’
- ci(MOV) ,
- ^
- In file included from src/carp_instructions.c:1:0:
- src/carp_machine.h:67:25: error: ‘CARP_INSTR_REM’ undeclared here (not in a function)
- #define assigninstr(x) [CARP_INSTR_##x] = carp_instr_##x
- ^
- src/carp_machine.h:77:21: note: in expansion of macro ‘assigninstr’
- assigninstr(MOD), assigninstr(REM),
- ^
- src/carp_machine.h:77:3: error: array index in initializer not of integer type
- assigninstr(MOD), assigninstr(REM),
- ^
- src/carp_machine.h:77:3: error: (near initialization for ‘carp_instructions’)
- src/carp_machine.h:44:26: error: redefinition of ‘carp_instr_MOV’
- #define definstr(x) void carp_instr_##x (carp_machine_state *m)
- ^
- src/carp_instructions.c:103:1: note: in expansion of macro ‘definstr’
- definstr (MOV) {
- ^
- src/carp_machine.h:44:26: note: previous definition of ‘carp_instr_MOV’ was here
- #define definstr(x) void carp_instr_##x (carp_machine_state *m)
- ^
- src/carp_instructions.c:24:1: note: in expansion of macro ‘definstr’
- definstr (MOV) {
- ^
- src/carp_instructions.c: In function ‘carp_instr_MOV’:
- src/carp_instructions.c:104:21: error: initialization makes pointer from integer without a cast [-Werror]
- long long *rega = m->regs[carp_vm_next(m)],
- ^
- src/carp_instructions.c:105:13: error: initialization makes pointer from integer without a cast [-Werror]
- *regb = m->regs[carp_vm_next(m)];
- ^
- cc1: all warnings being treated as errors
- In file included from src/carp_tokenizer.h:11:0,
- from src/carp_lexer.h:5,
- from src/carp_lexer.c:1:
- src/carp_instructions.h:4:15: error: redeclaration of enumerator ‘CARP_INSTR_MOV’
- #define ci(x) CARP_INSTR_##x
- ^
- src/carp_instructions.h:29:3: note: in expansion of macro ‘ci’
- ci(MOV) ,
- ^
- src/carp_instructions.h:4:15: note: previous definition of ‘CARP_INSTR_MOV’ was here
- #define ci(x) CARP_INSTR_##x
- ^
- src/carp_instructions.h:12:3: note: in expansion of macro ‘ci’
- ci(MOV) ,
- ^
- In file included from src/carp_lexer.h:6:0,
- from src/carp_lexer.c:1:
- src/carp_machine.h:67:25: error: ‘CARP_INSTR_REM’ undeclared here (not in a function)
- #define assigninstr(x) [CARP_INSTR_##x] = carp_instr_##x
- ^
- src/carp_machine.h:77:21: note: in expansion of macro ‘assigninstr’
- assigninstr(MOD), assigninstr(REM),
- ^
- src/carp_machine.h:77:3: error: array index in initializer not of integer type
- assigninstr(MOD), assigninstr(REM),
- ^
- src/carp_machine.h:77:3: error: (near initialization for ‘carp_instructions’)
- In file included from src/carp_machine.h:8:0,
- from src/carp_machine.c:1:
- src/carp_instructions.h:4:15: error: redeclaration of enumerator ‘CARP_INSTR_MOV’
- #define ci(x) CARP_INSTR_##x
- ^
- src/carp_instructions.h:29:3: note: in expansion of macro ‘ci’
- ci(MOV) ,
- ^
- src/carp_instructions.h:4:15: note: previous definition of ‘CARP_INSTR_MOV’ was here
- #define ci(x) CARP_INSTR_##x
- ^
- src/carp_instructions.h:12:3: note: in expansion of macro ‘ci’
- ci(MOV) ,
- ^
- In file included from src/carp_machine.c:1:0:
- src/carp_machine.h:67:25: error: ‘CARP_INSTR_REM’ undeclared here (not in a function)
- #define assigninstr(x) [CARP_INSTR_##x] = carp_instr_##x
- ^
- src/carp_machine.h:77:21: note: in expansion of macro ‘assigninstr’
- assigninstr(MOD), assigninstr(REM),
- ^
- src/carp_machine.h:77:3: error: array index in initializer not of integer type
- assigninstr(MOD), assigninstr(REM),
- ^
- src/carp_machine.h:77:3: error: (near initialization for ‘carp_instructions’)
- In file included from src/carp_tokenizer.h:11:0,
- from src/carp_tokenizer.c:1:
- src/carp_instructions.h:4:15: error: redeclaration of enumerator ‘CARP_INSTR_MOV’
- #define ci(x) CARP_INSTR_##x
- ^
- src/carp_instructions.h:29:3: note: in expansion of macro ‘ci’
- ci(MOV) ,
- ^
- src/carp_instructions.h:4:15: note: previous definition of ‘CARP_INSTR_MOV’ was here
- #define ci(x) CARP_INSTR_##x
- ^
- src/carp_instructions.h:12:3: note: in expansion of macro ‘ci’
- ci(MOV) ,
- ^
- Makefile:11: recipe for target 'all' failed
- make: *** [all] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement