After the last pushed fix to the compiler, I'm getting this if I try to compile the monitor for data races:
monitor.c: In function ‘RULE_SET_default’:
monitor.c:1759:9: error: ‘count_Program’ undeclared (first use in this function)
1759 | count_Program = shm_arbiter_buffer_peek(
| ^~~~~~~~~~~~~
monitor.c:1759:9: note: each undeclared identifier is reported only once for each function it appears in
monitor.c:1760:42: error: ‘e1_Program’ undeclared (first use in this function)
1760 | BUFFER_Program, 5, (void **)&e1_Program, &i1_Program,
| ^~~~~~~~~~
monitor.c:1760:55: error: ‘i1_Program’ undeclared (first use in this function)
1760 | BUFFER_Program, 5, (void **)&e1_Program, &i1_Program,
| ^~~~~~~~~~
monitor.c:1761:23: error: ‘e2_Program’ undeclared (first use in this function)
1761 | (void **)&e2_Program, &i2_Program);
| ^~~~~~~~~~
monitor.c:1761:36: error: ‘i2_Program’ undeclared (first use in this function)
1761 | (void **)&e2_Program, &i2_Program);
| ^~~~~~~~~~
monitor.c:1783:8: warning: missing terminating " character
1783 | printf("***** BUFFER GROUPS *****
| ^
monitor.c:1783:8: error: missing terminating " character
1783 | printf("***** BUFFER GROUPS *****
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
monitor.c:1784:1: warning: missing terminating " character
1784 | ")
| ^
monitor.c:1784:1: error: missing terminating " character
1784 | ")
| ^~
monitor.c:1785:8: warning: missing terminating " character
1785 | printf("***** Threads *****
| ^
monitor.c:1785:8: error: missing terminating " character
1785 | printf("***** Threads *****
| ^~~~~~~~~~~~~~~~~~~~
monitor.c:1786:1: warning: missing terminating " character
1786 | ")dll_node *current = BG_Threads.head;
| ^
monitor.c:1786:1: error: missing terminating " character
1786 | ")dll_node *current = BG_Threads.head;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
monitor.c:1787:1: error: expected expression before ‘{’ token
1787 | {
| ^
monitor.c:1790:24: warning: character constant too long for its type
1790 | printf('Threads[%d].ARGS{', i);
| ^~~~~~~~~~~~~~~~~~~
monitor.c:1792:24: warning: multi-character character constant [-Wmultichar]
1792 | printf('}\n');
| ^~~~~
monitor.c:1800:24: warning: character constant too long for its type
1800 | printf('Threads[%d].buffer{\n', i);
| ^~~~~~~~~~~~~~~~~~~~~~~
monitor.c:1803:24: warning: multi-character character constant [-Wmultichar]
1803 | printf('}\n');
| ^~~~~
monitor.c:1807:87: error: expected ‘)’ before ‘}’ token
1807 | }fprintf(stderr, "Seems all rules are waiting for some events that are not coming\n");
| ^
| )
1808 | }
| ~
monitor.c:1783:7: note: to match this ‘(’
1783 | printf("***** BUFFER GROUPS *****
| ^
monitor.c:1807:87: error: expected ‘;’ before ‘}’ token
1807 | }fprintf(stderr, "Seems all rules are waiting for some events that are not coming\n");
| ^
| ;
1808 | }
| ~
make: *** [Makefile:22: monitor] Error 1
cd experiments/dataraces
make