[CM] CM question re: CFFI

Dave Phillips dlphillips@woh.rr.com
Tue, 28 Mar 2006 16:19:02 -0500


Greetings:

  I'm trying to compile the RTS sources but am failing with this error :

;;; Loading #P"/home/dlphilp/cm-systems/rts/pthreads.x86f".

Undefined foreign symbol: "pthread_create"
   [Condition of type KERNEL:SIMPLE-PROGRAM-ERROR]

Restarts:
  0: [CONTINUE] Return NIL from load of 
#P"/home/dlphilp/cm-systems/rts/pthreads.x86f".
  1: [RETRY   ] Retry performing #<ASDF:LOAD-OP NIL {585AE895}> on
                #<ASDF:CL-SOURCE-FILE "pthreads" {588EB10D}>.
  2: [ACCEPT  ] Continue, treating #<ASDF:LOAD-OP NIL {585AE895}> on
                #<ASDF:CL-SOURCE-FILE "pthreads" {588EB10D}> as having 
been successful.
  3:            Return NIL from load of #P"home:.cminit.lisp".
  4:            Retry performing
                #<COMMON-LISP-USER::FINALIZE-OP NIL {588248ED}> on
                #<COMMON-LISP-USER::CM-APPLICATION "cm" {586D20FD}>.
  5:            Continue, treating
                #<COMMON-LISP-USER::FINALIZE-OP NIL {588248ED}> on
                #<COMMON-LISP-USER::CM-APPLICATION "cm" {586D20FD}> as 
having been successful.
  6:            Return NIL from load of 
"/home/dlphilp/cm/bin/../src/cm.lisp".
  7: [ABORT   ] Skip remaining initializations.

Debug  (type H for help)

(KERNEL:UNDEFINED-FOREIGN-SYMBOL-ERROR-HANDLER "<error finding name>"
                                               #.(SYSTEM:INT-SAP #x3FFFB9A4)
                                               #<Alien (* #) at #x3FFFB634>
                                               (14))
Source: Error finding source:
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM:  Source file no longer 
exists:
  target:code/interr.lisp.
0] 7

; Compilation unit aborted.
;   1 fatal error

* (quit)


Is there a recommended version of CFFI ? I can't use the CMIO interface 
yet because it needs the RTS stuff. Is that correct ?

Best,

dp