bohonghuang / cl-gtk4

GTK4/Libadwaita/WebKit2 bindings for Common Lisp.
GNU Lesser General Public License v3.0
215 stars 9 forks source link

Unable to create an executable file in SLIME #36

Closed PAGA-Official closed 1 year ago

PAGA-Official commented 1 year ago

老兄还是不行啊,报错信息: failed AVER: (SB-THREAD::THREAD-P SB-IMPL::THREAD) This is probably a bug in SBCL itself. (Alternatively, SBCL might have been corrupted by bad user code, e.g. by an undefined Lisp operation like (FMAKUNBOUND 'COMPILE), or by stray pointers from alien code or from unsafe Lisp code; or there might be a bug in the OS or hardware that SBCL is running on.) If it seems to be a bug in SBCL itself, the maintainers would like to know about it. Bug reports are welcome on the SBCL mailing lists, which you can find at http://sbcl.sourceforge.net/. [Condition of type SB-INT:BUG]

bohonghuang commented 1 year ago

请问你的 SBCL 版本是多少?你是在 32 位的 ARM 上运行的吗?

PAGA-Official commented 1 year ago

SBCL版本为2.3.2,操作系统为Windows 10 x64

bohonghuang commented 1 year ago

SBCL版本为2.3.2,操作系统为Windows 10 x64

是 Msys2 的环境吗?直接执行 sb-ext:save-lisp-and-die 有出现类似的错误吗?

PAGA-Official commented 1 year ago

不是,是Windows命令行版本,运行所给命令会报错,截图如下: image

bohonghuang commented 1 year ago

请运行 (sb-ext:save-lisp-and-die "test-sbcl.exe" :executable t)

PAGA-Official commented 1 year ago

没有问题,成功退出

bohonghuang commented 1 year ago

那么运行 (progn (ql:quickload :cl-gtk4/example) (sb-ext:save-lisp-and-die "test-sbcl.exe" :executable t)) 呢?

PAGA-Official commented 1 year ago

在Emacs里使用slime运行命令统统报错,但是在命令行下的sbcl顺利通过,太诡异了

bohonghuang commented 1 year ago

在Emacs里使用slime运行命令统统报错,但是在命令行下的sbcl顺利通过,太诡异了

使用 SBCL 生成可执行文件时不能有其他线程正在执行,SLIME/Sly 都会创建新的的线程用于交互

PAGA-Official commented 1 year ago

问题解决了!Thanks,dude!

bohonghuang commented 1 year ago

客气了。