Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in (ql:quickload :coalton) with Portacle on Windows #132

Closed
thinkelman-ESA opened this issue Sep 11, 2021 · 8 comments
Closed

Error in (ql:quickload :coalton) with Portacle on Windows #132

thinkelman-ESA opened this issue Sep 11, 2021 · 8 comments

Comments

@thinkelman-ESA
Copy link

When loading coalton using Portacle on Windows 10, I get the error below. When loading coalton on Manjaro (not using Portacle), it loads correctly. Is this more likely a Windows problem or a Portacle problem?

CL-USER> (ql:quickload :coalton)
To load "coalton":
  Load 1 ASDF system:
    coalton
; Loading "coalton"
.....
; 
; caught COMMON-LISP:ERROR:
;   COMMON-LISP:READ error during COMMON-LISP:COMPILE-FILE:
;   
;     Symbol "SINGLE-FLOAT-NAN" not found in the FLOAT-FEATURES package.
;   
;       Line: 148, Column: -1, File-Position: 4355
;   
;       Stream: #<SB-INT:FORM-TRACKING-STREAM for "file c:\\Users\\thinkelman\\portacle\\projects\\coalton\\src\\library\\arith.lisp" {1005DA5483}>
@colescott
Copy link
Member

I'm thinking this might be an issue with Portacle shipping with an older quicklisp distribution which has the version of float-features before they introduced the NAN constants.
When you run (ql:system-apropos "float-features") what version of float-features does it show?

@thinkelman-ESA
Copy link
Author

CL-USER> (ql:system-apropos "float-features")
#<SYSTEM float-features / float-features-20191007-git / quicklisp 2019-12-27>

@colescott
Copy link
Member

That is a pretty old version and it wouldn't have NAN support.

You can update your quicklisp dist using (ql:update-dist "quicklisp") and that should give you the updated version and allow you to load coalton.

@thinkelman-ESA
Copy link
Author

Thanks! I'm brand new to Lisp so still learning basics. Updating quicklisp gets me a new error:

arithmetic error FLOATING-POINT-INVALID-OPERATION signalled
Operation was (> #<DOUBLE-FLOAT quiet NaN> #<DOUBLE-FLOAT quiet NaN>).
   [Condition of type FLOATING-POINT-INVALID-OPERATION]

Based on this issue, it seems like my latest error is related to Portacle using an older version of SBCL. I'm closing this issue because this is clearly not related to Coalton. I'm happy to spend my time tinkering with Coalton on Linux. Thanks again.

@HM0880
Copy link
Contributor

HM0880 commented Oct 4, 2021

Commenting to say that I had the same issue "SINGLE-FLOAT-NAN" on Debian with SBCL v1.4.16. (ql:system-apropos "float-features") showed a version of float-features from January 2021.

I built SBCL v2.1.9 from source, removed the old Quicklisp directory (by simply renaming to "quicklisp-backup"), and reinstalled Quicklisp from scratch. Then (ql:quickload :coalton) worked perfectly. Float-features is now float-features-20210228-git.

@stylewarning
Copy link
Member

@HM0880 in your live Lisp image, what does

(asdf:system-relative-pathname :float-features "")

give you?

@HM0880
Copy link
Contributor

HM0880 commented Oct 4, 2021

@stylewarning

* (asdf:system-relative-pathname :float-features "")
#P"/home/hm/quicklisp/dists/quicklisp/software/float-features-20210228-git/"

@stylewarning
Copy link
Member

Great thanks for the info. It looks like up-to-date SBCL and up-to-date QL are needed then; good for future bug finders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants