-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Description
root ➜ /workspaces/jdh-8 (master) $ make -j
mkdir -p bin
clang -o emu/emu.o -c emu/emu.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
clang -o emu/mod.o -c emu/mod.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
clang -o emu/screen.o -c emu/screen.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
xxd -i asm/macros.asm > asm/builtin_macros.c
clang -o asm/asm.o -c asm/asm.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
clang -o asm/builtin_macros.o -c asm/builtin_macros.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
clang -o asm/directive.o -c asm/directive.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
clang -o asm/lex.o -c asm/lex.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
clang -o asm/builtin_macros.o -c asm/builtin_macros.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
clang -o asm/macro.o -c asm/macro.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
clang -o asm/microcode.o -c asm/microcode.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
clang -o test/test.o -c test/test.c -std=c11 -O2 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-unused-parameter -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-statement-expression -I/usr/include/SDL2 -D_REENTRANT
asm/macro.c:49:26: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
49 | if (!strcasecmp(
| ^
asm/macro.c:190:18: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
190 | if (!strcasecmp(arg_name, op->arg_names[i])) {
| ^
2 errors generated.
make: *** [Makefile:83: asm/macro.o] Error 1
make: *** Waiting for unfinished jobs....
asm/directive.c:13:20: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
13 | In file included from test/test.c:7:
test/../emu/emu.h In file included from :emu/mod.c 35: :1 14:
b:o emu/emu.ho:l35 warning: :n14e:ga function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] at
ewarning: = a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]!s
t35r | cvaosiedc mm po35(d | d_veiofni_dik tim(no)dd;,_ i
"n ii| ftn( ^d)
e;f "
| ) ;| void
^
| ^|
void
emu/mod.c:20:14: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
20 | void mod_init() {
| ^
| void
asm/directive.c:121:23: error: test/test.c:call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]140:
12: 121error: | call to undeclared function 'mkstemp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
140 | ! d e f _avsasleuret (|m|k ssttermcpa(stemcpmfpi(ldee)f _!n=a m-e1, );
| ^
def_value),
| ^
test/test.c:199:25: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
199 | assert((i = strcasetab(R_NAMES, R_COUNT, name)) != -1);
| ^
test/../common/util.h:63:57: note: expanded from macro 'strcasetab'
63 | #define strcasetab(_a, _n, _s) _strtab_impl(_a, _n, _s, strcasecmp)
| ^
In file included from emu/emu.c:16:
emu/emu.h:35:14: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
35 | void mod_init();
| ^
| void
test/test.c:220:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
220 | staasm/directive.ctic void:312:14: usage() error: {
call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] |
^
| 312 | void
if (!strcasecmp(d->name, symbol)) {
| ^
3 errors generated.
emu/emu.c:39:14: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
39 | if (!strcasecmp(speed, "realtime")) {
| ^
2 warnings and 2 errors generated.
asm/microcode.c:64:18: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
64 | asm/lex.c:141:25 : error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
141 | while (d != NULL && s trcasecmp ( d ata, d->name)) {
| ^
!strcasecmp(name, MICRO_OPS[i].name)) {
| ^
asm/microcode.c:98:18: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
98 | if (!strcasecmp(symbol, "const")) {
| ^
asm/microcode.c:119:22: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]make: *** [Makefile:83: asm/directive.o] Error 1
emu/mod.c:40:14:make: *** [Makefile:83: test/test.o] Error 1
error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
40 | if (!strcasecmp(name, mod->name)) {
| ^
2 warnings and 1 error generated.
119 | (i = strcasetab(I_NAMES, I_COUNT, symbol)) != -1,
| ^
asm/../common/util.h:63:57: note: expanded from macro 'strcasetab'
63 | #define strcasetab(_a, _n, _s) _strtab_impl(_a, _n, _s, strcasecmp)
| ^
1 error generated.
asm/microcode.c:153:31: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
153 | if (!op->macro || strcasecmp(symbol, op->name)) {
| ^
4 errors generated.
make: *** [Makefile:83: asm/lex.o] Error 1
emu/emu.c:174:19: error: call to undeclared function 'fmemopen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
174 | FILE *f = fmemopen((void *) out, n, "wb");
| ^
emu/emu.c:174:19: note: did you mean 'freopen'?
/usr/include/stdio.h:271:14: note: 'freopen' declared here
271 | extern FILE *freopen (const char *__restrict __filename,
| ^
make: *** [Makefile:83: emu/mod.o] Error 1
emu/emu.c:174:15: error: incompatible integer to pointer conversion initializing 'FILE *' (aka 'struct _IO_FILE *') with an expression of type 'int' [-Wint-conversion]
174 | FILE *f = fmemopen((void *) out, n, "wb");
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
asm/asm.c:330:26: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
330 | (i = strcasetab(R_NAMES, R_COUNT, symbol)) != -1,
| ^
asm/../common/util.h:63:57: note: expanded from macro 'strcasetab'
63 | #define strcasetab(_a, _n, _s) _strtab_impl(_a, _n, _s, strcasecmp)
| ^
make: *** [Makefile:83: asm/microcode.o] Error 1
asm/asm.c:421:14: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
421 | if (!strcasecmp(symbol, l->name) &&
| ^
1 warning and 3 errors generated.
asm/asm.c:453:12: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
453 | return strcasetab(R_NAMES, R_COUNT, symbol) != (usize) -1;
| ^
asm/../common/util.h:63:57: note: expanded from macro 'strcasetab'
63 | #define strcasetab(_a, _n, _s) _strtab_impl(_a, _n, _s, strcasecmp)
| ^
asm/asm.c:464:17: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
464 | assert((i = strcasetab(R_NAMES, R_COUNT, symbol)) != -1);
| ^
asm/../common/util.h:63:57: note: expanded from macro 'strcasetab'
63 | #define strcasetab(_a, _n, _s) _strtab_impl(_a, _n, _s, strcasecmp)
| ^
make: *** [Makefile:83: emu/emu.o] Error 1
asm/asm.c:762:13: error: call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
762 | if (strcasecmp(op_name, op->name)) {
| ^
asm/asm.c:837:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
837 | static void usage() {
| ^
| void
1 warning and 5 errors generated.
make: *** [Makefile:83: asm/asm.o] Error 1
In file included from emu/screen.c:13:
emu/emu.h:35:14: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
35 | void mod_init();
| ^
| void
1 warning generated.
root ➜ /workspaces/jdh-8 (master) $ echo $?
2```
Metadata
Metadata
Assignees
Labels
No labels