marcoheisig / fast-generic-functions

Seal your generic functions for an extra boost in performance.
MIT License
93 stars 4 forks source link

Error with SBCL 2.4.0 #13

Open glv2 opened 10 months ago

glv2 commented 10 months ago

I get the following error with SBCL 2.4.0 (on GNU/Linux x86-64):

; compiling file "/gnu/store/zpcb4zs0bhazzdb3l9jz11pbnymar2nw-sbcl-fast-generic-functions-0.0.0-1.9c307cd/share/common-lisp/sbcl/fast-generic-functions/code/expand-effective-method-body.lisp" (written 01 JAN 1970 12:00:00 AM):
; 
; caught ERROR:
;   READ error during COMPILE-FILE:
;   
;     Lock on package SB-PCL violated when interning %NO-PRIMARY-METHOD while in
;     package FAST-GENERIC-FUNCTIONS.
;   See also:
;     The SBCL Manual, Node "Package Locks"
;   
;     (in form starting at line: 3, column: 0, position: 39)

; compilation aborted after 0:00:00.000
Unhandled UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread #<SB-THREAD:THREAD tid=28 "main thread" RUNNING
                                                          {1001460003}>:
  COMPILE-FILE-ERROR while compiling
   #<CL-SOURCE-FILE "fast-generic-functions" "expand-effective-method-body">
pranavats commented 6 months ago

A temporary workaround suggested by @edwlan in Common Lisp matrix room unlocks the entire sb-pcl package.

(sb-ext:unlock-package :sb-pcl)

Are there any workarounds for this issue that don't involve unlocking entire packages?