[Ecls-list] v0.9c => problem with compiled source

Robert Lehr bozzio at the-lehrs.com
Sat Nov 1 09:25:01 UTC 2003


I am currently trying to fix a problem with lisp files compiled with
v0.9c. Both files use the same work in the same package.

I receive this error

    bozzio $ ecl  
    ECL (Embeddable Common-Lisp) 0.9c
    Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
    Copyright (C) 1993 Giuseppe Attardi
    Copyright (C) 2000 Juan J. Garcia-Ripoll
            ECL is free software, and you are welcome to redistribute it
    under certain conditions; see file 'Copyright' for details.
    Type :h for Help.  Top level.
    > (load "b")
    ;;; Loading "b.fas"
    ;;; Loading "a.fas"
    loading/compiling a: package => #<COMMON-LISP-USER package>,
    (("A" . #<"A" package>)) is not of type CHARACTER.
    Broken at LOAD.
    A>> 

after doing this

    bozzio $ ecl -compile a
    ;;; Loading "/usr/lib/ecl/cmp.fas"
    ;;; Warning: PROCLAIM is being redefined.
    ;;; Warning: COMPILE-FILE-PATHNAME is being redefined.
    ;;; Warning: COMPILE-FILE is being redefined.
    ;;; Warning: COMPILE is being redefined.
    ;;; Warning: DISASSEMBLE is being redefined.
    ;;; Warning: WITH-COMPILATION-UNIT is being redefined.
    ;;; Compiling a.
    ;;; Compiling (EVAL-WHEN (EVAL COMPILE ...) ...).
    ;;; End of Pass 1.  
    ;;; Note: Emiting FUNCALL for SI::DODEFPACKAGE
    ;;; Calling the C compiler... 
    "i386-redhat-linux-gcc -O2 -march=i386 -mcpu=i686 -Dlinux -fPIC -fstrict-aliasing  -O -I/usr/lib/ecl//h -w -c a.c -o a.o" 
    "i386-redhat-linux-gcc -shared -o a.fas -L/usr/lib/ecl/ a.o  -Wl,--rpath,/usr/lib/ecl/ -lecl  -lgmp -ldl -lm " 
    ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3
    ;;; Finished compiling a.

    bozzio $ ecl -compile b
    ;;; Loading "/usr/lib/ecl/cmp.fas"
    ;;; Warning: PROCLAIM is being redefined.
    ;;; Warning: COMPILE-FILE-PATHNAME is being redefined.
    ;;; Warning: COMPILE-FILE is being redefined.
    ;;; Warning: COMPILE is being redefined.
    ;;; Warning: DISASSEMBLE is being redefined.
    ;;; Warning: WITH-COMPILATION-UNIT is being redefined.
    ;;; Compiling b.
    ;;; Compiling (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL ...) ...).
    ;;; Loading "a.fas"
    loading/compiling a: package => #<COMMON-LISP-USER package>,
    ;;; Compiling (EVAL-WHEN (EVAL COMPILE ...) ...).
    ;;; Compiling (DEFUN ASD ...).
    ;;; Warning: The variable A is not used.
    ;;; End of Pass 1.  
    ;;; Emitting code for ASD.
    ;;; Calling the C compiler... 
    "i386-redhat-linux-gcc -O2 -march=i386 -mcpu=i686 -Dlinux -fPIC -fstrict-aliasing  -O -I/usr/lib/ecl//h -w -c b.c -o b.o" 
    "i386-redhat-linux-gcc -shared -o b.fas -L/usr/lib/ecl/ b.o  -Wl,--rpath,/usr/lib/ecl/ -lecl  -lgmp -ldl -lm " 
    ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3
    ;;; Finished compiling b.bozzio at robert/11:~/the-shop/ecl-20031026 (0): 

to these lisp source files.

    ===> in a.lsp

        (defpackage #:a (:use #:cl))
        
    ===> in b.lsp

        (eval-when (:compile-toplevel :load-toplevel :execute)
          (load "a"))
        
        (in-package #:a)
        
        (defun asd (a) nil)

-- 

Robert Lehr
bozzio at the-lehrs.com




More information about the ecl-devel mailing list