CLOCC with CMUCL on Gentoo
Just in case anyone else has problems installing CLOCC on
Gentoo, here is what I ultimately had to do to get it working. My problem was with finding gray streams, as was this guy’s. Anyway, after installing cmucl and cmucl-source, and following most of the instructions for CLOCC, it turns out that you need to explicitly install gray stream with ASDF. So, here is the whole bit:
(in-package :cl-user)
(setq *clocc-root* "/path/to/clocc/")
(load (compile-file (concatenate 'string *clocc-root* "clocc")))
(load (compile-file (translate-logical-pathname "clocc:src;defsystem;defsystem")))
(asdf:operate 'asdf:compile-op :cmucl-graystream)
(asdf:operate 'asdf:load-op :cmucl-graystream)
(dolist (l '("clocc:src;port;" "clocc:src;cllib;" "clocc:src;ext;queues;"
"clocc:src;port;configuration;" "clocc:src;port;environment;"
"clocc:src;ext;union-find;" "clocc:src;tools;metering;"
"clocc:src;f2cl;" "clocc:src;f2cl;packages;"))
(mk:add-registry-location (translate-logical-pathname l)))
(mk:oos "cllib" :compile)
(mk:oos "f2cl" :compile)