skypher/paktahn

/../libosicat.so: cannot open shared object file: No such file or directory

Closed this issue · 2 comments

gour commented

Hi!

After building latest paktahn and invoking it, it looks like some relocation in the pkgbuild does not work properly...

[gour@gaura-nitai paktahn] paktahn

debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread" RUNNING {1004513011}>:
Error opening shared object "/var/abs/local/system/paktahn/src/clbuild.paktahn/source/osicat/posix/libosicat.so":
/var/abs/local/system/paktahn/src/clbuild.paktahn/source/osicat/posix/libosicat.so: cannot open shared object file: No such file or directory.

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [CONTINUE ] Skip this shared object and continue.
1: [RETRY ] Retry loading this shared object.
2: [CHANGE-PATHNAME] Specify a different pathname to load the shared object from.

(SB-SYS:DLOPEN-OR-LOSE
#S(SB-ALIEN::SHARED-OBJECT
:PATHNAME #P"/var/abs/local/system/paktahn/src/clbuild.paktahn/source/osicat/posix/libosicat.so"
:NAMESTRING "/var/abs/local/system/paktahn/src/clbuild.paktahn/source/osicat/posix/libosicat.so"
:HANDLE NIL
:DONT-SAVE NIL))

Sincerely,
Gour

Good catch, should be fixed in latest!

gour commented

Hmm, it does not look so...

[...]
; registering #<SYSTEM BABEL {1002FAADD1}> as BABEL

debugger invoked on a CFFI:LOAD-FOREIGN-LIBRARY-ERROR in thread #<THREAD "initial thread" RUNNING {10028E70B1}>:
Unable to load foreign library (LIBOSICAT).
Error opening shared object "/var/abs/local/system/paktahn/src/clbuild.paktahn/source/osicat/posix/libosicat.so":
/var/abs/local/system/paktahn/src/clbuild.paktahn/source/osicat/posix/libosicat.so: wrong ELF class: ELFCLASS32.

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [RETRY ] Try loading the foreign library again.
1: [USE-VALUE ] Use another library instead.
2: [TRY-RECOMPILING] Recompile wrappers and try loading it again
3: [RETRY ] Retry performing #<ASDF:LOAD-OP NIL {100384E801}> on
#<CFFI-GROVEL:WRAPPER-FILE "wrappers" {1003DD88C1}>.
4: [ACCEPT ] Continue, treating #<ASDF:LOAD-OP NIL {100384E801}> on
#<CFFI-GROVEL:WRAPPER-FILE "wrappers" {1003DD88C1}> as
having been successful.
5: [CONTINUE ] Ignore runtime option --load "main.lisp".
6: [ABORT ] Skip rest of --eval and --load options.
7: Skip to toplevel READ/EVAL/PRINT loop.
8: [QUIT ] Quit SBCL (calling #'QUIT, killing the process).

(CFFI::FL-ERROR "Unable to load foreign library (A).% ~A")[:EXTERNAL]