Here is the error:
In file included from ../src/UDPServer_support.c:52:
../src/UDPServer.h:54: error: expected ')' before 'chanend'
../src/UDPServer_support.c: In function 'UDP_send':
../src/UDPServer_support.c:178: warning: passing argument 4 of 'xtcp_send_buffer_firefly' from incompatible pointer type
here is the top of the UDPServer.h file, line 54 is the last line in the post:
Code: Select all
#define NUM_UDP_CHANNELS 2
#define SEND_PORT 8
#define RECEIVE_PORT 9
#define ETH_NOT_INITIALIZED 2
#define SENDING_PACKET 0
#define ETH_READY 1
void UDP_Server(streaming chanend D0, chanend tcp_svr, port led);
the second error in the UDPServer_support.c file @178 is somehow being affected by the first error, as in the error in the include of UDPServer.h then messes up subsequent dataset definitions, as the pointer type is definitely fine.
If I take out the streaming channel definition, the problem goes away.
I have other streaming channels defined elsewhere in the project without issue.
Again, the build issue is intermittent. It seems too bizarre. But I'm at a loss as to what to debug. Any ideas?