I am trying to run an executable on Debian package swi-prolog 7.7.25
Don't know if it is related to package or an issue with swi-prolog itself. It works on swi-prolog 7.6.4 (Ubuntu version).
I compile with swipl-ld a prolog file that executes a process and process raise the error:
ERROR: /usr/lib/swi-prolog/library/process.pl:57: Initialization
goal raised exception:
ERROR: process: cannot open shared object file: No such file or directory
ERROR:  throw(error(shared_object(open,'process: cannot open shared object file: No such file or directory'),context(...,_918)))
ERROR:  <meta call>
ERROR:  with_mutex('$foreign',load_foreign_library(foreign(process),process,default(install))) <foreign>
ERROR:  '$run_init_goal'(shlib:load_foreign_library(...)) at /usr/lib/swi-prolog/boot/init.pl:616
ERROR:  catch(system:'$run_init_goal'(...),_1044,system:'$initialization_error'(_1066,...,...)) at /usr/lib/swi-prolog/boot/init.pl:384
ERROR:  catch_with_backtrace(system:'$run_init_goal'(...),_1096,system:'$initialization_error'(_1118,...,...)) at /usr/lib/swi-prolog/boot/init.pl:434
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
There is a file open issue, but it does not specify which file is the problem.
Attaching simple example:
Running the test.pl directly in swipl (not compiled version with swipl-ld) works fine:
swipl -s test.pl
=> expected result
How can I debug this issue (find root cause).