Hi all.
Please, Help me to find an error. I have tried three versions of the
uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
********************************************************************
;; Loading file /home/dan/.clisprc ...
;; Loading file /tmp/cl/cl-asdf-1.111/asdf.lisp ...
;; Loaded file /tmp/cl/cl-asdf-1.111/asdf.lisp
; loading system definition from /tmp/cl/uffi-1.6.1/uffi.asd into #<PACKAGE ASDF0>
;; Loading file /tmp/cl/uffi-1.6.1/uffi.asd ...
;; Loaded file /tmp/cl/uffi-1.6.1/uffi.asd
*** - component "uffi" not found
The following restarts are available:
SKIP :R1 skip (OPERATE 'LOAD-OP 'UFFI)
STOP :R2 stop loading file /home/dan/.clisprc
ABORT :R3 ABORT
ABORT :R4 ABORT
******************************************************************
I use the following .clisprc file:
****************************************************
(load "/tmp/cl/cl-asdf-1.111/asdf.lisp")
(setf asdf:*central-registry*
(list* #p"/tmp/cl/cl-asdf-1.111/"
#p"/tmp/cl/cl-utilities-1.2.3/"
#p"/tmp/cl/cffi-0.9.0/"
#p"/tmp/cl/uffi-1.6.1/"
#p"/tmp/clsql-4.0.3/"
asdf:*central-registry* ))
(asdf:operate 'asdf:load-op 'uffi)
*********************************************************
Lisp machine is clisp-2.39.
Daneel Yaitskov.
Daneel Yaitskov wrote:
> Hi all.
Hi. Your problem is not UFFI, that error is from ASDF and it is saying
it cannot find a .asd file defining :UFFI in any of the paths
registered. If you think you have your stuff where it should be, I have
had problems specifying the path in a way ASDF can understand.
Also, I am used to specifying :uffi, not 'uffi, tho I have no idea if
that is a problem.
hth, kt
>
> Please, Help me to find an error. I have tried three versions of the
> uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
>
> ********************************************************************
> ;; Loading file /home/dan/.clisprc ...
> ;; Loading file /tmp/cl/cl-asdf-1.111/asdf.lisp ...
> ;; Loaded file /tmp/cl/cl-asdf-1.111/asdf.lisp
> ; loading system definition from /tmp/cl/uffi-1.6.1/uffi.asd into #<PACKAGE ASDF0>
> ;; Loading file /tmp/cl/uffi-1.6.1/uffi.asd ...
> ;; Loaded file /tmp/cl/uffi-1.6.1/uffi.asd
> *** - component "uffi" not found
> The following restarts are available:
> SKIP :R1 skip (OPERATE 'LOAD-OP 'UFFI)
> STOP :R2 stop loading file /home/dan/.clisprc
> ABORT :R3 ABORT
> ABORT :R4 ABORT
> ******************************************************************
>
> I use the following .clisprc file:
> ****************************************************
> (load "/tmp/cl/cl-asdf-1.111/asdf.lisp")
> (setf asdf:*central-registry*
> (list* #p"/tmp/cl/cl-asdf-1.111/"
> #p"/tmp/cl/cl-utilities-1.2.3/"
> #p"/tmp/cl/cffi-0.9.0/"
> #p"/tmp/cl/uffi-1.6.1/"
> #p"/tmp/clsql-4.0.3/"
> asdf:*central-registry* ))
> (asdf:operate 'asdf:load-op 'uffi)
> *********************************************************
> Lisp machine is clisp-2.39.
>
> Daneel Yaitskov.
>
Daneel Yaitskov <··············@gmail.com> writes:
> Hi all.
>
> Please, Help me to find an error. I have tried three versions of the
> uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
>
> ********************************************************************
> ;; Loading file /home/dan/.clisprc ...
UFFI has never worked on clisp. At one time, I tried to make it work
with clisp, but I didn't complete it, and eventually CFFI appeared
and superseded UFFI. CFFI works on clisp.
If you need to use an old library that needs UFFI, there is in CFFI a
compatibility layer, uffi-compat.
--
__Pascal Bourguignon__ http://www.informatimago.com/
"This statement is false." In Lisp: (defun Q () (eq nil (Q)))
Pascal J. Bourguignon wrote:
> Daneel Yaitskov <··············@gmail.com> writes:
>
>
>>Hi all.
>>
>>Please, Help me to find an error. I have tried three versions of the
>>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
>>
>>********************************************************************
>>;; Loading file /home/dan/.clisprc ...
>
>
> UFFI has never worked on clisp.
Also useful information, but potentially confusing to the OP.
OP: Yes, use CFFI. But that is unrelated to the error you reported, and
you might still have the same problem with ASDF not finding the
definition for CFFI.
A sanity check after setting up asdf:*central-registry* would be (untested):
(assert (loop for p in (butlast asdf:*central-registry*)
thereis (probe-file (merge-pathnames
(make-pathname :name "cffi"
:type "asd") p))))
I would not try building until that works.
hth,kt
On Oct 3, 3:51 pm, Kenny <·········@gmail.com> wrote:
> Pascal J. Bourguignon wrote:
> > Daneel Yaitskov <··············@gmail.com> writes:
>
> >>Hi all.
>
> >>Please, Help me to find an error. I have tried three versions of the
> >>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
>
> >>********************************************************************
> >>;; Loading file /home/dan/.clisprc ...
>
> > UFFI has never worked on clisp.
>
> Also useful information, but potentially confusing to the OP.
>
> OP: Yes, use CFFI. But that is unrelated to the error you reported, and
> you might still have the same problem with ASDF not finding the
> definition for CFFI.
>
> A sanity check after setting up asdf:*central-registry* would be (untested):
>
> (assert (loop for p in (butlast asdf:*central-registry*)
> thereis (probe-file (merge-pathnames
> (make-pathname :name "cffi"
> :type "asd") p))))
>
Tested and works. (I removed the butlast asdf...). Thanks :-)
Mirko
·············@gmail.com wrote:
> On Oct 3, 3:51 pm, Kenny <·········@gmail.com> wrote:
>
>>Pascal J. Bourguignon wrote:
>>
>>>Daneel Yaitskov <··············@gmail.com> writes:
>>
>>>>Hi all.
>>
>>>>Please, Help me to find an error. I have tried three versions of the
>>>>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
>>
>>>>********************************************************************
>>>>;; Loading file /home/dan/.clisprc ...
>>
>>>UFFI has never worked on clisp.
>>
>>Also useful information, but potentially confusing to the OP.
>>
>>OP: Yes, use CFFI. But that is unrelated to the error you reported, and
>>you might still have the same problem with ASDF not finding the
>>definition for CFFI.
>>
>>A sanity check after setting up asdf:*central-registry* would be (untested):
>>
>> (assert (loop for p in (butlast asdf:*central-registry*)
>> thereis (probe-file (merge-pathnames
>> (make-pathname :name "cffi"
>> :type "asd") p))))
>>
>
> Tested and works. (I removed the butlast asdf...). Thanks :-)
The butlast was there cuz I found a symbol in the last cons, the
pathname default thingy -- maybe make the last token?:
(if (symbolp p)(symbol-value p) p)
?
kt
·············@gmail.com wrote:
> On Oct 3, 3:51 pm, Kenny <·········@gmail.com> wrote:
>
>>Pascal J. Bourguignon wrote:
>>
>>>Daneel Yaitskov <··············@gmail.com> writes:
>>
>>>>Hi all.
>>
>>>>Please, Help me to find an error. I have tried three versions of the
>>>>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
>>
>>>>********************************************************************
>>>>;; Loading file /home/dan/.clisprc ...
>>
>>>UFFI has never worked on clisp.
>>
>>Also useful information, but potentially confusing to the OP.
>>
>>OP: Yes, use CFFI. But that is unrelated to the error you reported, and
>>you might still have the same problem with ASDF not finding the
>>definition for CFFI.
>>
>>A sanity check after setting up asdf:*central-registry* would be (untested):
>>
>> (assert (loop for p in (butlast asdf:*central-registry*)
>> thereis (probe-file (merge-pathnames
>> (make-pathname :name "cffi"
>> :type "asd") p))))
>>
>
btw, if you want to cover all the bases you need to open the file and
check that the name parameter is :cffi, not :cffi-xyz. That has been an
issue (not with cffi) where I had the filename right but not the name
parameter, usually cuz I cloned a .asd to a new file name but forgot to
change the internal name arg.
hth,kt
On Oct 4, 11:08 am, Kenny <·········@gmail.com> wrote:
> ·············@gmail.com wrote:
> > On Oct 3, 3:51 pm, Kenny <·········@gmail.com> wrote:
>
> >>Pascal J. Bourguignon wrote:
>
> >>>Daneel Yaitskov <··············@gmail.com> writes:
>
> >>>>Hi all.
>
> >>>>Please, Help me to find an error. I have tried three versions of the
> >>>>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
>
> >>>>********************************************************************
> >>>>;; Loading file /home/dan/.clisprc ...
>
> >>>UFFI has never worked on clisp.
>
> >>Also useful information, but potentially confusing to the OP.
>
> >>OP: Yes, use CFFI. But that is unrelated to the error you reported, and
> >>you might still have the same problem with ASDF not finding the
> >>definition for CFFI.
>
> >>A sanity check after setting up asdf:*central-registry* would be (untested):
>
> >> (assert (loop for p in (butlast asdf:*central-registry*)
> >> thereis (probe-file (merge-pathnames
> >> (make-pathname :name "cffi"
> >> :type "asd") p))))
>
> btw, if you want to cover all the bases you need to open the file and
> check that the name parameter is :cffi, not :cffi-xyz. That has been an
> issue (not with cffi) where I had the filename right but not the name
> parameter, usually cuz I cloned a .asd to a new file name but forgot to
> change the internal name arg.
>
> hth,kt
I suspect the best way is to ask asdf itself. I tried once looking at
the docs but gave up.
That is why I "thanked you" for your snippet. This ng sooner or later
answers my unposted questions. (admittedly, the snippets simplicity
says a bit about my "reach" ...)
Mirko
···@informatimago.com (Pascal J. Bourguignon) writes:
> Daneel Yaitskov <··············@gmail.com> writes:
>
>> Hi all.
>>
>> Please, Help me to find an error. I have tried three versions of the
>> uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
>>
>> ********************************************************************
>> ;; Loading file /home/dan/.clisprc ...
>
> UFFI has never worked on clisp. At one time, I tried to make it work
> with clisp, but I didn't complete it, and eventually CFFI appeared
> and superseded UFFI. CFFI works on clisp.
>
> If you need to use an old library that needs UFFI, there is in CFFI a
> compatibility layer, uffi-compat.
>
> --
> __Pascal Bourguignon__ http://www.informatimago.com/
>
> "This statement is false." In Lisp: (defun Q () (eq nil (Q)))
What other implementation of the lisp machine can I use instead GNU
clisp? I am the university's student and can afford only a free
lisp machine.
Daneel Yaitskov wrote:
> ···@informatimago.com (Pascal J. Bourguignon) writes:
>
>
>>Daneel Yaitskov <··············@gmail.com> writes:
>>
>>
>>>Hi all.
>>>
>>>Please, Help me to find an error. I have tried three versions of the
>>>uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
>>>
>>>********************************************************************
>>>;; Loading file /home/dan/.clisprc ...
>>
>>UFFI has never worked on clisp. At one time, I tried to make it work
>>with clisp, but I didn't complete it, and eventually CFFI appeared
>>and superseded UFFI. CFFI works on clisp.
>>
>>If you need to use an old library that needs UFFI, there is in CFFI a
>>compatibility layer, uffi-compat.
>>
>>--
>>__Pascal Bourguignon__ http://www.informatimago.com/
>>
>>"This statement is false." In Lisp: (defun Q () (eq nil (Q)))
>
>
>
> What other implementation of the lisp machine can I use instead GNU
> clisp? I am the university's student and can afford only a free
> lisp machine.
He was telling you not to use /UFFI/. CLisp is fine. For FFI, use CFFI:
http://common-lisp.net/project/cffi/
kt
On Fri, 03 Oct 2008 23:51:47 +0400, Daneel Yaitskov wrote:
> ···@informatimago.com (Pascal J. Bourguignon) writes:
>
>> Daneel Yaitskov <··············@gmail.com> writes:
>>
>>> Hi all.
>>>
>>> Please, Help me to find an error. I have tried three versions of the
>>> uffi library: 1.4.39, 1.5.16 and 1.6.1 but same error is happened:
>>>
>>> ********************************************************************
>>> ;; Loading file /home/dan/.clisprc ...
>>
>> UFFI has never worked on clisp. At one time, I tried to make it work
>> with clisp, but I didn't complete it, and eventually CFFI appeared and
>> superseded UFFI. CFFI works on clisp.
>>
>> If you need to use an old library that needs UFFI, there is in CFFI a
>> compatibility layer, uffi-compat.
>>
>> --
>> __Pascal Bourguignon__
>> http://www.informatimago.com/
>>
>> "This statement is false." In Lisp: (defun Q () (eq nil
>> (Q)))
>
>
> What other implementation of the lisp machine can I use instead GNU
> clisp? I am the university's student and can afford only a free lisp
> machine.
You mean a Lisp implementation, right? There are plenty of free ones,
CMUCL, SBCL, etc.
And why do you have to use UFFI? CFFI works fine too.
Tamas