[Ecls-list] Re: Bug on Mac OS X solved
Juan Jose Garcia Ripoll
lisp at arrakis.es
Wed Nov 3 10:49:47 UTC 2004
Rainer Joswig wrote:
>>Rainer Joswig wrote:
>>
>>>kay, now it seems to compile.
>>>After installing it I get this message:
>>>RJG5:/Lisp/CL-Implementations/ecl-0.9d joswig$ /usr/local/bin/ecl
>>>dyld: /usr/local/bin/ecl can't open library: /lib/ecl/libecl.dylib (No such file or directory, errno = 2)
>>>
>>Add /usr/local/lib/ecl to your DYLD_LIBRARY_PATH. I was not sure how the linker hardcodes the location of dynamically linked libraries under MacOSX. In linux, it is with the --rpath option, under Mac OSX I have no clue.
>>
>Okay, that works. Now I get:
>
>>(compile-file "/test1.lisp")
>>
>;;; Loading #P"/usr/local/lib/ecl/cmp.fas"
>
>;;; Freeing library /usr/local/lib/ecl/cmp.fas
>LOAD: Could not load file #P"/usr/local/lib/ecl/cmp.fas" (Error: "")
>Broken at LAMBDA.
>
Here is where the SourceForge server running OS X 10.2 and your machine
differ. I guess the dynamic loader has somehow changed between releases,
because ECL is failing to load the module of the compiler. Lacking a
more recent version of the OS I cannot help further.
Hopefully, some of the people reading the mailing list will be able to
fix it -- there are a couple of people here also with macs.
Thanks for your interest, anyway.
Juanjo
------
To show that ECL at least runs on the old version I have access to... :-)
jjgarcia at ppc-osx2:~/ecls/bmacosx$ uname -a
Darwin ppc-osx2.cf.sourceforge.net 6.8 Darwin Kernel Version 6.8: Wed
Sep 10 15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power
Macintosh powerpc
jjgarcia at ppc-osx2:~/ecls/bmacosx$ cat ~/test1.lsp
(defun foo (x) (1+ x ))
jjgarcia at ppc-osx2:~/ecls/bmacosx$ ecl
ECL (Embeddable Common-Lisp) 0.9d
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.
> (compile-file "~/test1")
;;; Loading #P"/home/users/j/jj/jjgarcia/lib/ecl/cmp.fas"
;;; Loading #P"/home/users/j/jj/jjgarcia/lib/ecl/sysfun.lsp"
;;; Compiling /home/users/j/jj/jjgarcia/test1.
;;; Compiling (DEFUN FOO ...).
;;; End of Pass 1.
;;; Emitting code for FOO.
;;; Calling the C compiler...
;;; Invoking external command: gcc -g -O2 -fPIC -fno-common
-fstrict-aliasing -Ddarwin -O "-I/home/users/j/jj/jjgarcia/lib/ecl//h"
-w -c "/home/users/j/jj/jjgarcia/test1.c" -o
"/home/users/j/jj/jjgarcia/test1.o"
;;; Invoking external command: gcc -o
"/home/users/j/jj/jjgarcia/test1.fas"
-L"/home/users/j/jj/jjgarcia/lib/ecl/"
"/home/users/j/jj/jjgarcia/test1.o" -bundle -lecl -lm
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3
;;; Finished compiling /home/users/j/jj/jjgarcia/test1.
#P"/home/users/j/jj/jjgarcia/test1.fas"
Top level.
> (load *)
;;; Loading "/home/users/j/jj/jjgarcia/test1.fas"
"/home/users/j/jj/jjgarcia/test1.fas"
Top level.
> (foo 2)
3
More information about the ecl-devel
mailing list