From: Alexandru P. <al...@gm...> - 2024-11-20 11:04:34
|
Hi Bruno, Sorry for late response, just got access to my Haiku box. Problem solved. *./lisp.run -M ../halfcompiled.mem* *./lisp.run -M ../interpretet.mem* *./lisp.run -M lispinit.mem* All these have in **features**: *[1]> *features* (:QUICKLISP :ASDF-PACKAGE-SYSTEM :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-UNIX :ASDF-UNICODE :LOOP :COMPILER :CLOS :MOP :CLISP :ANSI-CL :COMMON-LISP :LISP=CL :INTERPRETER :LOGICAL-PATHNAMES :SOCKETS :GENERIC-STREAMS :SCREEN :FFI :GETTEXT :UNICODE :BASE-CHAR=CHARACTER :WORD-SIZE=64 :UNIX)* *./lisp.run -B .* has in **features**: *[1]> *features* (:CLISP :ANSI-CL :COMMON-LISP :LISP=CL :INTERPRETER :LOGICAL-PATHNAMES :SOCKETS* * :GENERIC-STREAMS :SCREEN :FFI :GETTEXT :UNICODE :BASE-CHAR=CHARACTER* * :WORD-SIZE=64 :UNIX :HAIKU)* Evidently, there is a difference with *-M* and without this option. It is important to mention that with *-M* option the following files are also loaded: *~/.clisprc.lisp*, *~/quicklisp/setup.lisp* and *~/quicklisp/asdf.lisp*. These were setup with earlier attempt to build CLISP. If I rename these files to not be loaded, I have yet another version of **features**: *[1]> *features* (:READLINE :REGEXP :WILDCARD :SYSCALLS :I18N :LOOP :COMPILER :CLOS :MOP :CLISP* * :ANSI-CL :COMMON-LISP :LISP=CL :INTERPRETER :LOGICAL-PATHNAMES :SOCKETS* * :GENERIC-STREAMS :SCREEN :FFI :GETTEXT :UNICODE :BASE-CHAR=CHARACTER* * :WORD-SIZE=64 :UNIX :HAIKU)* So far so good! So, I deleted all QuickLisp related stuff together with *~/.clisprc.lisp* and re-installed QuickLisp. As soon as I installed it, *:HAiKU* (only this feature) disappears again: *[1]> *features* (* *:QUICKLISP :ASDF-PACKAGE-SYSTEM :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-UNIX :ASDF-UNICODE **:READLINE :REGEXP :WILDCARD :SYSCALLS :I18N :LOOP :COMPILER* * :CLOS :MOP :CLISP :ANSI-CL :COMMON-LISP :LISP=CL :INTERPRETER* * :LOGICAL-PATHNAMES :SOCKETS :GENERIC-STREAMS :SCREEN :FFI :GETTEXT :UNICODE* * :BASE-CHAR=CHARACTER :WORD-SIZE=64 :UNIX)* So QuickLisp is the guilty party. I will debug it further. It is not fail of CLISP. Thank you for your help, Alexandru пн, 18 нояб. 2024 г. в 10:50, Bruno Haible <br...@cl...>: > Alexandru Popa wrote: > > When I run: > > *$ : | gcc -E -dM - | grep -i haiku* > > I get: > > *#define __HAIKU__ 1* > > That's what we expect. > > > But even when I modify *spvw.d* from: > > > > *#ifdef UNIX_HAIKU* > > * " :HAIKU"* > > *#endif* > > > > to: > > > > *#ifdef __HAIKU__* > > * " :HAIKU"* > > *#endif* > > > > I still do not have :HAIKU in **features**. Maybe I do something wrong? > > When you run './lisp.run' without any -M option, does *features* then > contain > :HAIKU? > - If no, then concentrate the search on the C compiler. > - If yes, then it means that this part of *features* got lost in the .mem > files. Which is the first .mem file that has it lost? > > Bruno > > > > |