Can't install prolog on Archlinux

I’m using archlinux(EndeavourOS) to install prolog.
When I use yay to install aur/swi-prolog-devel 9.3.2-1, it gets stuck at “check()… 85/86”:

80/86 Test #82: jpl:java_in_prolog ...............   Passed    0.94 sec
81/86 Test #28: swipl:thread .....................   Passed    4.69 sec
82/86 Test #42: clib:socket ......................   Passed    4.27 sec
83/86 Test #85: ssl:ssl ..........................   Passed    4.02 sec
84/86 Test #55: mqi:mqi ..........................   Passed   17.68 sec
_

Is anyone know how to fix it?

First figure out what is blocking. The best way is to use ps to find the running process and then gdb -p <pid> to attach the debugger.

Now you can inspect threads and get their backtrace. You can also get a backtrace of the Prolog stack using

(gdb) printf "%s\n", PL_backtrace_string(25,0)

The 25 is the max number of frames to print and the 0 asks for a normal Prolog stack. You can also pass 1, which merely lists the predicates and code offsets rather than the goals with arguments. The latter “always” works, while the first may deadlock or crash if Prolog is in some bad state.