=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for libretro-beetle-psx-20200610nb1
distcc[10909] ERROR: nonblocking connect to 192.168.1.1:3748 failed: Connection refused
distcc[10909] Warning: failed to distribute mednafen/psx/irq.cpp to 192.168.1.1:3748, running locally instead
distcc[29413] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/timer.cpp:18:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/irq.cpp:18:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/irq.cpp:18:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/irq.cpp
distcc[26916] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/dma.cpp:18:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/timer.cpp
distcc[8651] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/frontio.cpp:18:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/dma.cpp
distcc[4307] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/sio.cpp:18:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/frontio.cpp
distcc[1074] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/cpu.cpp:24:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
mednafen/psx/cpu.cpp:3096: warning: "LE32TOH" redefined
 3096 | # define LE32TOH(x) __builtin_bswap32(x)
      | 
In file included from /usr/include/sparc/endian.h:3,
                 from /usr/include/sys/types.h:98,
                 from /usr/include/stdlib.h:41,
                 from mednafen/psx/../mednafen-types.h:43,
                 from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/cpu.cpp:24:
/usr/include/sys/endian.h:185: note: this is the location of the previous definition
  185 | #define LE32TOH(x) HTOLE32(x)
      | 
mednafen/psx/cpu.cpp:3097: warning: "HTOLE32" redefined
 3097 | # define HTOLE32(x) __builtin_bswap32(x)
      | 
In file included from /usr/include/sparc/endian.h:3,
                 from /usr/include/sys/types.h:98,
                 from /usr/include/stdlib.h:41,
                 from mednafen/psx/../mednafen-types.h:43,
                 from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/cpu.cpp:24:
/usr/include/sys/endian.h:153: note: this is the location of the previous definition
  153 | #define HTOLE32(x) (x) = bswap32(__CAST(uint32_t, (x)))
      | 
mednafen/psx/cpu.cpp:3098: warning: "LE16TOH" redefined
 3098 | # define LE16TOH(x) __builtin_bswap16(x)
      | 
In file included from /usr/include/sparc/endian.h:3,
                 from /usr/include/sys/types.h:98,
                 from /usr/include/stdlib.h:41,
                 from mednafen/psx/../mednafen-types.h:43,
                 from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/cpu.cpp:24:
/usr/include/sys/endian.h:184: note: this is the location of the previous definition
  184 | #define LE16TOH(x) HTOLE16(x)
      | 
mednafen/psx/cpu.cpp:3099: warning: "HTOLE16" redefined
 3099 | # define HTOLE16(x) __builtin_bswap16(x)
      | 
In file included from /usr/include/sparc/endian.h:3,
                 from /usr/include/sys/types.h:98,
                 from /usr/include/stdlib.h:41,
                 from mednafen/psx/../mednafen-types.h:43,
                 from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/cpu.cpp:24:
/usr/include/sys/endian.h:152: note: this is the location of the previous definition
  152 | #define HTOLE16(x) (x) = bswap16(__CAST(uint16_t, (x)))
      | 
CXX mednafen/psx/sio.cpp
distcc[26715] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/gte.cpp:23:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/gte.cpp
distcc[24365] ERROR: nonblocking connect to 192.168.1.1:3748 failed: Connection refused
distcc[24365] Warning: failed to distribute mednafen/psx/cdc.cpp to 192.168.1.1:3748, running locally instead
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/cdc.cpp:51:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/cdc.cpp:51:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/cpu.cpp
distcc[19905] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/spu.cpp:69:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/cdc.cpp
distcc[26538] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/gpu.cpp:18:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/spu.cpp
distcc[11014] ERROR: nonblocking connect to 192.168.1.1:3748 failed: Connection refused
distcc[11014] Warning: failed to distribute mednafen/psx/mdec.cpp to 192.168.1.1:3748, running locally instead
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/mdec.cpp:56:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
In file included from mednafen/psx/../mednafen.h:6,
                 from mednafen/psx/psx.h:4,
                 from mednafen/psx/mdec.cpp:56:
mednafen/psx/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/mdec.cpp
distcc[22821] ERROR: nonblocking connect to 192.168.1.1:3748 failed: Connection refused
distcc[22821] Warning: failed to distribute mednafen/psx/input/gamepad.cpp to 192.168.1.1:3748, running locally instead
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/gamepad.cpp:1:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/gamepad.cpp:1:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/input/gamepad.cpp
distcc[5744] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/dualanalog.cpp:1:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/input/dualanalog.cpp
distcc[20834] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/dualshock.cpp:18:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/input/dualshock.cpp
distcc[27851] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/justifier.cpp:18:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/input/justifier.cpp
distcc[6707] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/guncon.cpp:18:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/input/guncon.cpp
distcc[10359] ERROR: nonblocking connect to 192.168.1.1:3748 failed: Connection refused
distcc[10359] Warning: failed to distribute mednafen/psx/input/negcon.cpp to 192.168.1.1:3748, running locally instead
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/negcon.cpp:18:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/negcon.cpp:18:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/input/negcon.cpp
distcc[18481] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/memcard.cpp:20:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/input/memcard.cpp
distcc[20848] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/multitap.cpp:18:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/input/multitap.cpp
distcc[22146] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/psx/input/../../mednafen.h:6,
                 from mednafen/psx/input/../psx.h:4,
                 from mednafen/psx/input/mouse.cpp:1:
mednafen/psx/input/../../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/psx/input/mouse.cpp
distcc[24459] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/cdrom/../mednafen.h:6,
                 from mednafen/cdrom/CDAccess.cpp:26:
mednafen/cdrom/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/cdrom/CDAccess.cpp
distcc[26125] ERROR: nonblocking connect to 192.168.1.1:3748 failed: Connection refused
distcc[26125] Warning: failed to distribute mednafen/cdrom/CDAccess_Image.cpp to 192.168.1.1:3748, running locally instead
In file included from mednafen/cdrom/../mednafen.h:6,
                 from mednafen/cdrom/CDAccess_Image.cpp:36:
mednafen/cdrom/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
In file included from mednafen/cdrom/../mednafen.h:6,
                 from mednafen/cdrom/CDAccess_Image.cpp:36:
mednafen/cdrom/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/cdrom/CDAccess_Image.cpp
distcc[25890] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/cdrom/../mednafen.h:6,
                 from mednafen/cdrom/CDAccess_CCD.cpp:18:
mednafen/cdrom/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/cdrom/CDAccess_CCD.cpp
distcc[16698] ERROR: nonblocking connect to 192.168.1.1:3748 failed: Connection refused
distcc[16698] Warning: failed to distribute mednafen/cdrom/CDAccess_PBP.cpp to 192.168.1.1:3748, running locally instead
In file included from mednafen/cdrom/../mednafen.h:6,
                 from mednafen/cdrom/CDAccess_PBP.cpp:21:
mednafen/cdrom/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
In file included from mednafen/cdrom/../mednafen.h:6,
                 from mednafen/cdrom/CDAccess_PBP.cpp:21:
mednafen/cdrom/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/cdrom/CDAccess_PBP.cpp
distcc[24133] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/cdrom/../mednafen.h:6,
                 from mednafen/cdrom/audioreader.cpp:24:
mednafen/cdrom/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/cdrom/audioreader.cpp
distcc[6582] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
CXX mednafen/cdrom/misc.cpp
distcc[19348] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/cdrom/../mednafen.h:6,
                 from mednafen/cdrom/cdromif.cpp:18:
mednafen/cdrom/../mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/cdrom/cdromif.cpp
distcc[9463] ERROR: nonblocking connect to 192.168.1.1:3748 failed: Connection refused
distcc[9463] Warning: failed to distribute mednafen/error.cpp to 192.168.1.1:3748, running locally instead
In file included from mednafen/mednafen.h:6,
                 from mednafen/error.cpp:18:
mednafen/mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
In file included from mednafen/mednafen.h:6,
                 from mednafen/error.cpp:18:
mednafen/mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/error.cpp
distcc[26219] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/mednafen.h:6,
                 from mednafen/settings.cpp:23:
mednafen/mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/settings.cpp
distcc[9944] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/mednafen.h:6,
                 from mednafen/general.cpp:27:
mednafen/mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/general.cpp
distcc[11560] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/mednafen.h:6,
                 from mednafen/FileStream.cpp:20:
mednafen/mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/FileStream.cpp
distcc[3371] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/mednafen.h:6,
                 from mednafen/Stream.h:8,
                 from mednafen/MemoryStream.h:23,
                 from mednafen/MemoryStream.cpp:2:
mednafen/mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/MemoryStream.cpp
distcc[7819] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/mednafen.h:6,
                 from mednafen/Stream.cpp:20:
mednafen/mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
CXX mednafen/Stream.cpp
distcc[22575] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
In file included from mednafen/mednafen.h:6,
                 from mednafen/state.cpp:24:
mednafen/mednafen-types.h:230: warning: "MSB_FIRST" redefined
  230 | #define MSB_FIRST
      | 
<command-line>: note: this is the location of the previous definition
mednafen/state.cpp: In function 'bool SubWrite(StateMem*, SFORMAT*, const char*)':
mednafen/state.cpp:186:10: error: 'FlipByteOrder' was not declared in this scope
  186 |          FlipByteOrder((uint8_t*)sf->v, bytesize);
      |          ^~~~~~~~~~~~~
mednafen/state.cpp:210:10: error: 'Endian_A64_LE_to_NE' was not declared in this scope; did you mean 'Endian_A64_NE_BE'?
  210 |          Endian_A64_LE_to_NE(sf->v, bytesize / sizeof(uint64_t));
      |          ^~~~~~~~~~~~~~~~~~~
      |          Endian_A64_NE_BE
mednafen/state.cpp:212:10: error: 'Endian_A32_LE_to_NE' was not declared in this scope; did you mean 'Endian_A32_NE_BE'?
  212 |          Endian_A32_LE_to_NE(sf->v, bytesize / sizeof(uint32_t));
      |          ^~~~~~~~~~~~~~~~~~~
      |          Endian_A32_NE_BE
mednafen/state.cpp:214:10: error: 'Endian_A16_LE_to_NE' was not declared in this scope; did you mean 'Endian_A16_NE_BE'?
  214 |          Endian_A16_LE_to_NE(sf->v, bytesize / sizeof(uint16_t));
      |          ^~~~~~~~~~~~~~~~~~~
      |          Endian_A16_NE_BE
mednafen/state.cpp:216:10: error: 'FlipByteOrder' was not declared in this scope
  216 |          FlipByteOrder((uint8_t*)sf->v, bytesize);
      |          ^~~~~~~~~~~~~
mednafen/state.cpp: In function 'int ReadStateChunk(StateMem*, SFORMAT*, int)':
mednafen/state.cpp:387:16: error: 'Endian_A64_LE_to_NE' was not declared in this scope; did you mean 'Endian_A64_NE_BE'?
  387 |                Endian_A64_LE_to_NE(tmp->v, expected_size / sizeof(uint64_t));
      |                ^~~~~~~~~~~~~~~~~~~
      |                Endian_A64_NE_BE
mednafen/state.cpp:389:16: error: 'Endian_A32_LE_to_NE' was not declared in this scope; did you mean 'Endian_A32_NE_BE'?
  389 |                Endian_A32_LE_to_NE(tmp->v, expected_size / sizeof(uint32_t));
      |                ^~~~~~~~~~~~~~~~~~~
      |                Endian_A32_NE_BE
mednafen/state.cpp:391:16: error: 'Endian_A16_LE_to_NE' was not declared in this scope; did you mean 'Endian_A16_NE_BE'?
  391 |                Endian_A16_LE_to_NE(tmp->v, expected_size / sizeof(uint16_t));
      |                ^~~~~~~~~~~~~~~~~~~
      |                Endian_A16_NE_BE
mednafen/state.cpp:393:16: error: 'FlipByteOrder' was not declared in this scope
  393 |                FlipByteOrder((uint8_t*)tmp->v, expected_size);
      |                ^~~~~~~~~~~~~
distcc[22575] ERROR: compile mednafen/state.cpp on localhost failed
gmake: *** [Makefile:660: mednafen/state.o] Error 1
gmake: *** Waiting for unfinished jobs....
CXX mednafen/psx/gpu.cpp
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/emulators/libretro-beetle-psx
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/emulators/libretro-beetle-psx