Error trying to build p2pool 3.6.1
[ 21%] Built target libminiupnpc-static
[ 60%] Built target randomx
[ 62%] Linking CXX executable p2pool
lto-wrapper: warning: using serial compilation of 24 LTRANS jobs
during RTL pass: final
/home/snex/p2pool/external/src/cryptonote/crypto-ops.c: In function ‘ge_p2_dbl’:
/home/snex/p2pool/external/src/cryptonote/crypto-ops.c:1517:1: internal compiler error: in ix86_print_operand_address_as, at config/i386/i386.c:13598
 1517 | }
      | ^
0xd13dc1 internal_error(char const*, ...)
	???:0
0xd0dd9f fancy_abort(char const*, int, char const*)
	???:0
0x114cc5e output_operand(rtx_def*, int)
	???:0
0x114aa04 output_asm_insn(char const*, rtx_def**)
	???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/p2pool.dir/build.make:505: p2pool] Error 1
make[1]: *** [CMakeFiles/Makefile2:119: CMakeFiles/p2pool.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
