Sam Steingold <sds@...> writes:
> > * In message <m3elhlolyo.fsf@...>
> > * On the subject of "Re: Basic usage of xml.lisp"
> > * Sent on 11 Apr 2002 19:27:11 -0400
> > * Honorable Jordan Katz <katz@...> writes:
> >
> > ;; Loading file /home/katz/.clisprc ...
> > ;; Loading file /usr/local/src/clocc/clocc.fas ...
> > *** - This file was produced by another lisp version, must be recompiled.
>
> clocc.lisp is two directory levels above cllib - and it has to be
> recompiled too.
>
> > I tried recompiling cllib again with CLISP (when I initially compiled
> > I had no errors) but I get the following errors:
> >
> > katz@...> make system
> > /usr/local/src/clocc/bin/run-lisp -I /usr/local/src/clocc/clocc-top \
> > -x '(funcall (intern "COMPILE-SYSTEM" :mk) "cllib")'
> > /usr/local/lib/clisp/base/lisp.run: operating system error during
> > load of initialization file `/usr/local/src/clocc/clocc-top.mem'
> > errno = ENOENT: No such file or directory.
> > make: *** [system] Error 1
> >
> > How can I fix this?
>
> by reading INSTALL file carefully.
> I guess it is poorly written - maybe you can suggest some improvements?
>
> Here, let me help you.
> Start with a clean CLOCC, e.g., `rm -rf && cvs up`.
> At the very least, remove all the compiled files, like this:
>
> $ rm -f `find . -name "*.fas"`
I got errors when trying to compile clocc-top after using only rm -f
`find . -name "*.fas"`, but after reinstalling all of CLOCC as you
suggested before make clocc-top worked.
>
> Open INSTALL in Emacs and read the first part
> (building CLOCC with GNU Make):
>
> 1. environment:
>
> Lines 5&6 ==>
> $ export LISPTYPE=clisp
>
> Line 7-11 ==>
> $ export CLOCC_DUMP=clisp
Those variables were set already. I put them in my ~/.bashrc when I
first installed clocc.
> 2. logical hosts: clocc.lisp, luckily, has your setup by default.
>
> 3. type "make clocc-top" -- this will compile clocc.lisp and
> defsystem.lisp and create clocc-top.mem (which you were missing)
This step went smoothly.
> 4. type 'cd src/cllib && make system'.
I got the following error when I tried this.
Compilation of file
/usr/local/src/clocc/src/tools/metering/metering.lisp is finished.
;; Loading file /usr/local/src/clocc/src/tools/metering/metering.fas ...
*** - symbol NV2 has no value
The following special variables were not defined:
MONITOR::NV2 MONITOR::OV2
0 errors, 34 warnings
0 errors, 0 warnings
make: *** [system] Error 1
> Now, could you please rewrite INSTALL so that it will be more clear?
All of these steps were crystal clear and I followed all of them when
I had my older version of CLISP. I guess something must have gone
haywire when I updated CLISP. However, there's one part of the
INSTALL file that was unclear to me as a Lisp newbie that you didn't
refer to, and that's the last part titled "Lisp only":
;; * compile base files
(in-package :cl-user)
(setq *clocc-root* "c:/gnu/clocc/") ; or whatever ...
(compile-file (concatenate 'string *clocc-root* "clocc"))
(load *)
(compile-file (translate-logical-pathname "clocc:src;defsystem;defsystem"))
(load *)
;; * compile some systems
(setq mk::*central-registry*
(nconc
(list
;; select the systems you want to use
(translate-logical-pathname "clocc:src;cllib;")
(translate-logical-pathname "clocc:src;ext;queues;")
(translate-logical-pathname "clocc:src;ext;union-find;")
(translate-logical-pathname "clocc:src;f2cl;packages;")
(translate-logical-pathname "clocc:src;f2cl;")
(translate-logical-pathname "clocc:src;port;")
(translate-logical-pathname "clocc:src;port;configuration;")
(translate-logical-pathname "clocc:src;port;environment;")
(translate-logical-pathname "clocc:src;tools;metering;"))
mk::*central-registry*))
(mk:oos "cllib" :compile)
(mk:oos "f2cl" :compile)
...
;; * add to your init file (~/.clisprc for CLISP, ~/.cmucl-init.lisp for
;; CMUCL or ~/.clinit.cl for Allegro)
[stuff snipped]
It's clear that the stuff with the comment "add to your init file"
goes in the init file, but I don't understand what the two blocks of
code before that do. AFAIK, the files refered to in those two blocks
were already compiled with the make's, so I don't know how that part
fits and when I first read the INSTALL file that confused me.
Everything that precedes that part is perfectly clear, though.
Thanks, I appreciate your patience,
--
Jordan Katz <katz@...> | Mind the gap
|