[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-devel] load and package interaction
From: |
Gabriel Dos Reis |
Subject: |
[Gcl-devel] load and package interaction |
Date: |
Sun, 5 Aug 2007 20:29:08 -0500 (CDT) |
Camm --
I came across a strange behaviour of GCL-2.6.8pre (CVS) that
I believe might be a GCL bug. What follows is a reduction of
the issue.
Consider 3 files:
* file f.lisp contains:
(defpackage "FOO")
* file g.lisp contains:
(eval-when (eval load compile)
(load "f"))
(defpackage "BAR"
(:use "FOO"))
* file h.lisp contains:
(eval-when (eval load compile)
(load "g"))
Files f.lisp and g.lisp compile just fine. However, compiling
g.lisp (after f.lisp and g.lisp) yields the mysterious failure:
address@hidden:~/tmp/gcl-bugs> gcl -batch -eval '(compile-file "h.lisp")'
Compiling h.lisp.
Error: "FOO" is not of type (LISP:OR LISP:SYMBOL LISP:STRING ...).
Fast links are on: do (si::use-fast-links nil) for debugging
Error signalled by LISP:USE-PACKAGE.
Backtrace: compiler::t1expr > system:error-set > lisp:eval > lisp:eval >
lisp:load > lisp:eval-when > lisp:progn > lisp:let > LISP:USE-PACKAGE
; (LOAD "g") is being compiled.
;;; The form (LOAD "g") was not evaluated successfully.
;;; You are recommended to compile again.
No FASL generated.
I see no problem with SBCL, CLISP, and ECL.
-- Gaby
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gcl-devel] load and package interaction,
Gabriel Dos Reis <=