Bug 38529 - Не загружаются модули из contrib
Summary: Не загружаются модули из contrib
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: sbcl (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-24 19:36 MSK by Denis Smirnov
Modified: 2023-04-01 09:07 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Smirnov 2020-05-24 19:36:30 MSK
В sbcl 2.0.4 на x86_64 отломана загрузка модулей из contrib (таких как asdf, sb-posix, и т.д.)

Причина (при трассировке с помощью strace):

stat("/usr/bin/contrib", 0x7f46ee5af810) = -1 ENOENT (No such file or directory)
stat("/usr/bin/../lib/sbcl/contrib", 0x7f46ee5af830) = -1 ENOENT (No such file or directory)
stat("/home/smirnovdv/tmp/2020-05-24/./contrib", 0x7f46ee5af830) = -1 ENOENT (No such file or directory)
stat("/usr/bin/sbcl", {st_mode=S_IFREG|0755, st_size=307928, ...}) = 0
stat("/usr/bin/contrib", 0x7f46ee5af830) = -1 ENOENT (No such file or directory)
stat("/usr/bin/../lib/sbcl/contrib", 0x7f46ee5af850) = -1 ENOENT (No such file or directory)

Т.е. модули ищутся в /usr/lib вместо /usr/lib64.

Ошибка возникла из-за того, что где-то некорректно определяется переменная sbcl_home (раньше она устанавливалась в sbcl-1.4.2-runtime.patch).

В консоли sbcl набрать (require :asdf)

Способ обхода:
SBCL_HOME=/usr/lib64/sbcl sbcl
Comment 1 Andrey Cherepanov 2020-05-24 21:52:04 MSK
Посмотрю.
Comment 2 Andrey Cherepanov 2020-10-14 13:52:40 MSK
c253 ~ # sbcl 
This is SBCL 2.0.4-alt1, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* :asdf
:ASDF
* 

Это нормально? Патч sbcl-2.0.4-runtime.patch применяется для aarch64 и x86_64.
Comment 3 Yuriy Al. Shirokov 2022-11-11 15:20:46 MSK
Наткнулся, вероятно, на тот же баг:
$ sbcl --load '/usr/local/share/quicklisp/quicklisp.lisp'
This is SBCL 2.0.4-alt1, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
While evaluating the form starting at line 314, column 0
  of #P"/usr/local/share/quicklisp/quicklisp.lisp":

debugger invoked on a SB-INT:EXTENSION-FAILURE in thread
#<THREAD "main thread" RUNNING {1000518083}>:
  Don't know how to REQUIRE SB-BSD-SOCKETS.
See also:
  The SBCL Manual, Variable SB-EXT:*MODULE-PROVIDER-FUNCTIONS*
  The SBCL Manual, Function REQUIRE

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

restarts (invokable by number or by possibly-abbreviated name):
  0: [RETRY   ] Retry EVAL of current toplevel form.
  1: [CONTINUE] Ignore error and continue loading file "/usr/local/share/quicklisp/quicklisp.lisp".
  2: [ABORT   ] Abort loading file "/usr/local/share/quicklisp/quicklisp.lisp".
  3:            Ignore runtime option --load "/usr/local/share/quicklisp/quicklisp.lisp".
  4:            Skip rest of --eval and --load options.
  5:            Skip to toplevel READ/EVAL/PRINT loop.
  6: [EXIT    ] Exit SBCL (calling #'EXIT, killing the process).

(REQUIRE SB-BSD-SOCKETS NIL)
0]
Comment 4 Repository Robot 2023-04-01 09:07:17 MSK
sbcl-2.3.3-alt1 -> sisyphus:

 Fri Mar 31 2023 Andrey Cherepanov <cas@altlinux> 2.3.3-alt1
 - 2.3.3 (ALT #44041)
 - Moved to /usr/lib (ALT #38529).