acorg / lispmds

LispMDS
1 stars 1 forks source link

Installation issues on recent Mac #34

Closed drserajames closed 1 year ago

drserajames commented 1 year ago

It thinks I'm using windows?

I'm trying to get lispmds working so I can compare the performance of different antigenic cartography implementations.

The installation instructions are a bit out of date, but I've made it most of the way. When I run the gui command, I get this warning and no gui

sarahjames@Sarahs-MBP-91 ~ % /usr/local/lispmds/bin/mds-gui
; Loading /usr/local/lispmds/.clinit.cl
;   Loading /usr/local/lispmds/src/mds/mds/clinit.cl
;   Autoloading for package "EXCL.OSI":
;     Fast loading
;        /Applications/AllegroCL64.app/Contents/Resources/code/OSI.005
;;; Installing osi patch, version 5.
;       Fast loading
;          /Applications/AllegroCL64.app/Contents/Resources/code/fileutil.003
;;; Installing fileutil patch, version 3.
;       Fast loading
;          /Applications/AllegroCL64.app/Contents/Resources/code/acldns.001
;;; Installing acldns patch, version 1.
;       Fast loading from bundle code/iodefs.fasl.
;         Fast loading from bundle code/iordefs.fasl.
;           Fast loading from bundle code/efmacs.fasl.
;; Autoloading locale from #P"/Applications/AllegroCL64.app/Contents/Resources/locales/en_US"
Warning: An error occurred
         (#<Printer Error, obj=#x1000793cd82: formatter found unsyntactic format string:
Unknown format directive
~1@<Could not locate file(s) ("mds") in any of ("c:\\Program Files"
                                            "c:\\Progra~1"
                                                         ^
                                            "c:\\Archivos de Programa"
                                            "c:\\Archiv~1" "c:\\mds"
                                            "d:\\Program Files"
                                            "d:\\Progra~1"
                                            "d:\\Archivos de Programa"
                                            "d:\\Archiv~1" "d:\\mds"
                                            "e:\\Program Files"
                                            "e:\\Progra~1"
                                            "e:\\Archivos de Programa"
                                            "e:\\Archiv~1" "e:\\mds"
                                            "f:\\Program Files"
                                            "f:\\Progra~1"
                                            "f:\\Archivos de Programa"
                                            "f:\\Archiv~1" "f:\\mds"
                                            "y:\\Program Files"
                                            "y:\\Progra~1"
                                            "y:\\Archivos de Programa"
                                            "y:\\Archiv~1" "y:\\mds")
~:@>

>)
         during
         the reading or evaluation of -e "(progn (load \"/usr/local/lispmds/.clinit.cl\") (launch-gui \"\"))"
International Allegro CL Enterprise Edition
10.1 [64-bit Mac OS X (Intel)] (Apr 22, 2023 15:46)
Copyright (C) 1985-2017, Franz Inc., Oakland, CA, USA.  All Rights Reserved.

This development copy of Allegro CL is licensed to:
   [TC14164] University of Cambridge - Dept of Zoology

;; Optimization settings: safety 1, space 1, speed 1, debug 2.
;; For a complete description of all compiler switches given the
;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS).
CL-USER(1): 

I edited the line in clinit.cl to remove the *windows-program-files-dirs* with a ~ so I no longer get the warnings about the unsyntactic format string, but I still get the warning about locating files.

sarahjames@Sarahs-MBP-91 ~ % /usr/local/lispmds/bin/mds-gui
; Loading /usr/local/lispmds/.clinit.cl
;   Loading /usr/local/lispmds/src/mds/mds/clinit.cl
;   Autoloading for package "EXCL.OSI":
;     Fast loading
;        /Applications/AllegroCL64.app/Contents/Resources/code/OSI.005
;;; Installing osi patch, version 5.
;       Fast loading
;          /Applications/AllegroCL64.app/Contents/Resources/code/fileutil.003
;;; Installing fileutil patch, version 3.
;       Fast loading
;          /Applications/AllegroCL64.app/Contents/Resources/code/acldns.001
;;; Installing acldns patch, version 1.
;       Fast loading from bundle code/iodefs.fasl.
;         Fast loading from bundle code/iordefs.fasl.
;           Fast loading from bundle code/efmacs.fasl.
;; Autoloading locale from #P"/Applications/AllegroCL64.app/Contents/Resources/locales/en_US"
Warning: An error occurred
         (Could not locate file(s) ("mds") in any of ("c:\\Program
          Files"
                                            "c:\\Archivos de Programa"
                                            "c:\\mds"
                                            "d:\\Program Files"
                                            "d:\\Archivos de Programa"
                                            "d:\\mds"
                                            "e:\\Program Files"
                                            "e:\\Archivos de Programa"
                                            "e:\\mds"
                                            "f:\\Program Files"
                                            "f:\\Archivos de Programa"
                                            "f:\\mds"
                                            "y:\\Program Files"
                                            "y:\\Archivos de Programa"
                                            "y:\\mds")
)
         during
         the reading or evaluation of -e "(progn (load \"/usr/local/lispmds/.clinit.cl\") (launch-gui \"\"))"
International Allegro CL Enterprise Edition
10.1 [64-bit Mac OS X (Intel)] (Apr 22, 2023 15:46)
Copyright (C) 1985-2017, Franz Inc., Oakland, CA, USA.  All Rights Reserved.

This development copy of Allegro CL is licensed to:
   [TC14164] University of Cambridge - Dept of Zoology

;; Optimization settings: safety 1, space 1, speed 1, debug 2.
;; For a complete description of all compiler switches given the
;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS).
CL-USER(1): 

Any suggestions?

drserajames commented 1 year ago

Solved the "thinks I'm using windows" issue with the help of Derek (hence the edits to the title & previous comment), by adding (string-equal "Apple" (substring (software-type) 7 11)) to line 147 of clinit.cl

But now getting a new error

;   Loading product for module: "macros".
;     Fast loading /usr/local/lispmds/src/mds/cl/macros.fasl
Warning: An error occurred
         (Fasl file compiled
          using 8.0 [Mac OS X (Intel)] (Apr 17, 2006 13:04).\ is
          incompatible with the current lisp:
          10.1 [64-bit Mac OS X (Intel)] (Apr 22, 2023 15:46).  File:
          #P"/usr/local/lispmds/src/mds/cl/macros.fasl")
         during
         the reading or evaluation of -e "(progn (load \"/usr/local/lispmds/.clinit.cl\") (launch-gui \"\"))"

Full output

sarahjames@Sarahs-MBP-91 ~ % /usr/local/lispmds/bin/mds-gui
; Loading /usr/local/lispmds/.clinit.cl
;   Loading /usr/local/lispmds/src/mds/mds/clinit.cl
;   Autoloading for package "EXCL.OSI":
;     Fast loading
;        /Applications/AllegroCL64.app/Contents/Resources/code/OSI.005
;;; Installing osi patch, version 5.
;       Fast loading
;          /Applications/AllegroCL64.app/Contents/Resources/code/fileutil.003
;;; Installing fileutil patch, version 3.
;       Fast loading
;          /Applications/AllegroCL64.app/Contents/Resources/code/acldns.001
;;; Installing acldns patch, version 1.
;       Fast loading from bundle code/iodefs.fasl.
;         Fast loading from bundle code/iordefs.fasl.
;           Fast loading from bundle code/efmacs.fasl.
;; Autoloading locale from #P"/Applications/AllegroCL64.app/Contents/Resources/locales/en_US"
;     Loading /usr/local/lispmds/src/mds/cl/systems.lisp
;       Loading /usr/local/lispmds/src/mds/test/defsystem.lisp
;       Loading /usr/local/lispmds/src/mds/cl/defsystem.lisp
;       Loading /usr/local/lispmds/src/mds/mds/defsystem.lisp
; Loading system: "UTILS".
;   Loading product for module: "macros".
;     Fast loading /usr/local/lispmds/src/mds/cl/macros.fasl
Warning: An error occurred
         (Fasl file compiled
          using 8.0 [Mac OS X (Intel)] (Apr 17, 2006 13:04).\ is
          incompatible with the current lisp:
          10.1 [64-bit Mac OS X (Intel)] (Apr 22, 2023 15:46).  File:
          #P"/usr/local/lispmds/src/mds/cl/macros.fasl")
         during
         the reading or evaluation of -e "(progn (load \"/usr/local/lispmds/.clinit.cl\") (launch-gui \"\"))"
International Allegro CL Enterprise Edition
10.1 [64-bit Mac OS X (Intel)] (Apr 22, 2023 15:46)
Copyright (C) 1985-2017, Franz Inc., Oakland, CA, USA.  All Rights Reserved.

This development copy of Allegro CL is licensed to:
   [TC14164] University of Cambridge - Dept of Zoology

;; Optimization settings: safety 1, space 1, speed 1, debug 2.
;; For a complete description of all compiler switches given the
;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS).

I compiled macros.lisp and then the error was about applies-for-lispworks.fasl so I compiled that, but got a warning

CL-USER(1): (compile-file  "/usr/local/lispmds/src/mds/cl/applies-for-lispworks.lisp")
;;; Compiling file
;;;   /usr/local/lispmds/src/mds/cl/applies-for-lispworks.lisp
; While FILE-COMPILING #'APPLY-TRANSPOSE in
#P"/usr/local/lispmds/src/mds/cl/applies-for-lispworks.lisp"
; starting at file character position 656:
Warning: Free reference to undeclared variable ARGS assumed special.
;;; Writing fasl file
;;;   /usr/local/lispmds/src/mds/cl/applies-for-lispworks.fasl
;;; Fasl write complete
Warning: While compiling these undefined functions were referenced:
         ^ from character position 656 in
           /usr/local/lispmds/src/mds/cl/applies-for-lispworks.lisp
         &REST from character position 656 in
           /usr/local/lispmds/src/mds/cl/applies-for-lispworks.lisp
         EQUAL-N from character position 656 in
           /usr/local/lispmds/src/mds/cl/applies-for-lispworks.lisp
#P"/usr/local/lispmds/src/mds/cl/applies-for-lispworks.fasl"
T
NIL

Then the error was about map.fasl which had lots of warnings:

CL-USER(4): (compile-file  "/usr/local/lispmds/src/mds/cl/map.lisp")                  
;;; Compiling file /usr/local/lispmds/src/mds/cl/map.lisp
; While FILE-COMPILING
#'(:TOP-LEVEL-FORM "/usr/local/lispmds/src/mds/cl/map.lisp" 19) in
#P"/usr/local/lispmds/src/mds/cl/map.lisp"
; starting at file character position 19:
Warning: Free reference to undeclared variable F assumed special.
Warning: Free reference to undeclared variable &REST assumed special.
Warning: Free reference to undeclared variable ARGS assumed special.
; While FILE-COMPILING
#'(:TOP-LEVEL-FORM "/usr/local/lispmds/src/mds/cl/map.lisp" 96) in
#P"/usr/local/lispmds/src/mds/cl/map.lisp"
; starting at file character position 96:
Warning: Free reference to undeclared variable F assumed special.
Warning: Free reference to undeclared variable &REST assumed special.
Warning: Free reference to undeclared variable ARGS assumed special.
; While FILE-COMPILING #'MAP^2 in
#P"/usr/local/lispmds/src/mds/cl/map.lisp"
; starting at file character position 767:
Warning: Free reference to undeclared variable X assumed special.
; While FILE-COMPILING #'MAP-APPLY in
#P"/usr/local/lispmds/src/mds/cl/map.lisp"
; starting at file character position 883:
Warning: Free reference to undeclared variable L assumed special.
; While FILE-COMPILING
#'(:TOP-LEVEL-FORM "/usr/local/lispmds/src/mds/cl/map.lisp" 1758) in
#P"/usr/local/lispmds/src/mds/cl/map.lisp"
; starting at file character position 1758:
Warning: Free reference to undeclared variable F assumed special.
Warning: Free reference to undeclared variable L assumed special.
; While FILE-COMPILING
#'(:TOP-LEVEL-FORM "/usr/local/lispmds/src/mds/cl/map.lisp" 1836) in
#P"/usr/local/lispmds/src/mds/cl/map.lisp"
; starting at file character position 1836:
Warning: Free reference to undeclared variable F assumed special.
Warning: Free reference to undeclared variable L assumed special.
;;; Writing fasl file /usr/local/lispmds/src/mds/cl/map.fasl
;;; Fasl write complete
Warning: While compiling these undefined functions were referenced:
         PUSH-END from character position 2026 in
           /usr/local/lispmds/src/mds/cl/map.lisp
         COLLECT from character position 1836 in
           /usr/local/lispmds/src/mds/cl/map.lisp
         FILTER from character position 1758 in
           /usr/local/lispmds/src/mds/cl/map.lisp
         L from character position 883 in
           /usr/local/lispmds/src/mds/cl/map.lisp
         ^ from character position 767 in
           /usr/local/lispmds/src/mds/cl/map.lisp, character position
           883 in /usr/local/lispmds/src/mds/cl/map.lisp
         X from character position 767 in
           /usr/local/lispmds/src/mds/cl/map.lisp
         MAP-UNION from character position 96 in
           /usr/local/lispmds/src/mds/cl/map.lisp
         DEFINE from character position 19 in
           /usr/local/lispmds/src/mds/cl/map.lisp, character position
           96 in /usr/local/lispmds/src/mds/cl/map.lisp, character
           position 1758 in /usr/local/lispmds/src/mds/cl/map.lisp,
           character position 1836 in
           /usr/local/lispmds/src/mds/cl/map.lisp
         MAP-APPEND from character position 19 in
           /usr/local/lispmds/src/mds/cl/map.lisp
#P"/usr/local/lispmds/src/mds/cl/map.fasl"
T
NIL
CL-USER(5): 

When I go back to run lispmds, I get the following error

;   Loading product for module: "map".
;     Fast loading /usr/local/lispmds/src/mds/cl/map.fasl
Warning: An error occurred
         (Attempt to take the value of the unbound variable `F'.)
         during
         the reading or evaluation of -e "(progn (load \"/usr/local/lispmds/.clinit.cl\") (launch-gui \"\"))"

Full output

sarahjames@Sarahs-MBP-91 ~ % /usr/local/lispmds/bin/mds-gui
; Loading /usr/local/lispmds/.clinit.cl
;   Loading /usr/local/lispmds/src/mds/mds/clinit.cl
;   Autoloading for package "EXCL.OSI":
;     Fast loading
;        /Applications/AllegroCL64.app/Contents/Resources/code/OSI.005
;;; Installing osi patch, version 5.
;       Fast loading
;          /Applications/AllegroCL64.app/Contents/Resources/code/fileutil.003
;;; Installing fileutil patch, version 3.
;       Fast loading
;          /Applications/AllegroCL64.app/Contents/Resources/code/acldns.001
;;; Installing acldns patch, version 1.
;       Fast loading from bundle code/iodefs.fasl.
;         Fast loading from bundle code/iordefs.fasl.
;           Fast loading from bundle code/efmacs.fasl.
;; Autoloading locale from #P"/Applications/AllegroCL64.app/Contents/Resources/locales/en_US"
;     Loading /usr/local/lispmds/src/mds/cl/systems.lisp
;       Loading /usr/local/lispmds/src/mds/test/defsystem.lisp
;       Loading /usr/local/lispmds/src/mds/cl/defsystem.lisp
;       Loading /usr/local/lispmds/src/mds/mds/defsystem.lisp
; Loading system: "UTILS".
;   Loading product for module: "macros".
;     Fast loading /usr/local/lispmds/src/mds/cl/macros.fasl
;   Loading product for module: "applies-for-lispworks".
;     Fast loading
;        /usr/local/lispmds/src/mds/cl/applies-for-lispworks.fasl
;   Loading product for module: "map".
;     Fast loading /usr/local/lispmds/src/mds/cl/map.fasl
Warning: An error occurred
         (Attempt to take the value of the unbound variable `F'.)
         during
         the reading or evaluation of -e "(progn (load \"/usr/local/lispmds/.clinit.cl\") (launch-gui \"\"))"
International Allegro CL Enterprise Edition
10.1 [64-bit Mac OS X (Intel)] (Apr 22, 2023 15:46)
Copyright (C) 1985-2017, Franz Inc., Oakland, CA, USA.  All Rights Reserved.

This development copy of Allegro CL is licensed to:
   [TC14164] University of Cambridge - Dept of Zoology

;; Optimization settings: safety 1, space 1, speed 1, debug 2.
;; For a complete description of all compiler switches given the
;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS).
CL-USER(1): 

So perhaps I did not compile the lisp files in the correct order?

drserajames commented 1 year ago

Answer (from Derek, again) is to remove all fasl files. They will be generated when the program runs.