process: failed to load library

Skip to first unread message

olivier sallou

Dec 21, 2018, 1:50:51 AM12/21/18
to SWI-Prolog


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/ Initialization goal raised exception:
ERROR: process: cannot open shared object file: No such file or directory
ERROR:   [18] throw(error(shared_object(open,'process: cannot open shared object file: No such file or directory'),context(...,_918)))
ERROR:   [16] <meta call>
ERROR:   [15] with_mutex('$foreign',load_foreign_library(foreign(process),process,default(install))) <foreign>
ERROR:   [12] '$run_init_goal'(shlib:load_foreign_library(...)) at /usr/lib/swi-prolog/boot/
ERROR:   [11] catch(system:'$run_init_goal'(...),_1044,system:'$initialization_error'(_1066,...,...)) at /usr/lib/swi-prolog/boot/
ERROR:   [10] catch_with_backtrace(system:'$run_init_goal'(...),_1096,system:'$initialization_error'(_1118,...,...)) at /usr/lib/swi-prolog/boot/
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:

swipl-ld -o test.exe test.c
./test.exe pi/2

Running the directly in swipl (not compiled version with swipl-ld) works fine:

swipl -s

?- calc('pi/2').

=> expected result

How can I debug this issue (find root cause).


olivier sallou

Dec 21, 2018, 2:20:28 AM12/21/18
to SWI-Prolog

I tried to recompile swi-prolog from scratch on Debian system following

I tested it again, and get same error, so this is not related to Debian package itself.
Reply all
Reply to author
0 new messages