https://github.com/compiler-explorer/misc-builder/blob/main/micropython/build.sh
as per compiler-explorer/infra#1888 (comment)
is because of OS difference and different ffi versions being linked and packaged by the OSes
should copy libffi.so.7 manually in build.sh and rebuild