cartesi / machine-emulator

The off-chain implementation of the Cartesi Machine
GNU Lesser General Public License v3.0
58 stars 32 forks source link

Newer versions of `xxd` use `size_t` instead of `unsigned int` causing a compilation error on `uarch-pristine-ram.c` #175

Closed mpolitzer closed 5 months ago

mpolitzer commented 6 months ago

from vim: 9.1.0050.

$ xxd --version
xxd 2024-01-17 by Juergen Weigert et al.

build error:

uarch-pristine-ram.c:6435:1: error: unknown type name ‘size_t’
 6435 | size_t uarch_pristine_ram_len = 77176;
      | ^~~~~~
uarch-pristine-ram.c:1:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’?
  +++ |+#include <stddef.h>
    1 | unsigned char uarch_pristine_ram[] = {
make[1]: *** [Makefile:653: uarch-pristine-ram.o] Error 1
make[1]: Leaving directory '/home/m/dev/cartesi/sdk/emulator/src'
make: *** [Makefile:235: source-default] Error 2