[cffi-devel] Mac OS X / intel support

Carlos Lenz carlos.lenz at gmail.com
Mon Mar 19 00:42:02 UTC 2007


Frank

Some additional details: CLISP 2.40 from darwinports.

$ clisp --version
carlos-lenzs-computer:~ carlos$ clisp --version
GNU CLISP 2.40 (2006-09-23) (built on
virtua-cwb237-244.ctb.virtua.com.br [200.250.237.244])
Software: GNU C 4.0.1 (Apple Computer, Inc. build 5250)
gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit
-Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2
-fexpensive-optimizations -falign-functions=4 -DUNIX_BINARY_DISTRIB
-DUNICODE -I. -L/opt/local/lib -L/opt/local/lib  -x none -lintl
-liconv -lc  -Wl,-framework -Wl,CoreFoundation libcharset.a -lreadline
-lncurses  -liconv -L/opt/local/lib -lsigsegv -lc -L/usr/X11R6/lib
SAFETY=0 HEAPCODES STANDARD_HEAPCODES GENERATIONAL_GC SPVW_BLOCKS
SPVW_MIXED TRIVIALMAP_MEMORY
libsigsegv 2.4
libiconv 1.11
libreadline 5.1
Features:
(REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP
LISP=CL INTERPRETER SOCKETS
 GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN GETTEXT UNICODE
BASE-CHAR=CHARACTER UNIX MACOS)
C Modules: (clisp i18n syscalls regexp)
Installation directory: /opt/local/lib/clisp/
User language: ENGLISH
Machine: I386 (I386) carlos-lenzs-computer.local [nnn.nnn.nnn.nnn]

I tried to install with
> (asdf-install:install :cffi)
Select per-user installation and skip the missing GPG key.
This is the complete session log. I selected ACCEPT to detect as many
errors as possible.

  i i i i i i i       ooooo    o        ooooooo   ooooo   ooooo
  I I I I I I I      8     8   8           8     8     o  8    8
  I  \ `+' /  I      8         8           8     8        8    8
   \  `-+-'  /       8         8           8      ooooo   8oooo
    `-__|__-'        8         8           8           8  8
        |            8     o   8           8     o     8  8
  ------+------       ooooo    8oooooo  ooo8ooo   ooooo   8

Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2006

;; Loading file /Users/carlos/.clisprc ...
;;  Loading file /Users/carlos/projects/lisp/asdf/asdf.fas ...
;;  Loaded file /Users/carlos/projects/lisp/asdf/asdf.fas
;;  Loading file /Users/carlos/projects/lisp/asdf/install/defsystem.fas ...
;;  Loaded file /Users/carlos/projects/lisp/asdf/install/defsystem.fas
; loading system definition from
/Users/carlos/projects/lisp/asdf/central-registry/asdf-install.asd
into #<PACKAGE
;   ASDF0>
;;  Loading file
/Users/carlos/projects/lisp/asdf/central-registry/asdf-install.asd ...
; registering #<SYSTEM ASDF-INSTALL #x1A9945D5> as ASDF-INSTALL
;;  Loaded file
/Users/carlos/projects/lisp/asdf/central-registry/asdf-install.asd
;;  Loading file /Users/carlos/projects/lisp/asdf/install/defpackage.fas ...
;;  Loaded file /Users/carlos/projects/lisp/asdf/install/defpackage.fas
;;  Loading file /Users/carlos/projects/lisp/asdf/install/split-sequence.fas ...
;;  Loaded file /Users/carlos/projects/lisp/asdf/install/split-sequence.fas
;;  Loading file /Users/carlos/projects/lisp/asdf/install/port.fas ...
;;  Loaded file /Users/carlos/projects/lisp/asdf/install/port.fas
;;  Loading file /Users/carlos/projects/lisp/asdf/install/installer.fas ...
;;  Loaded file /Users/carlos/projects/lisp/asdf/install/installer.fas
0 errors, 0 warnings
;; Loaded file /Users/carlos/.clisprc
[1]> (asdf-install:install :cffi)
Install where?
0) System-wide install:
   System in /usr/local/asdf-install/site-systems/
   Files in /usr/local/asdf-install/site/
1) Personal installation:
   System in /Users/carlos/.asdf-install-dir/systems/
   Files in /Users/carlos/.asdf-install-dir/site/
2) Abort installation.
 --> 1
;;; ASDF-INSTALL: Downloading 153995 bytes from
http://common-lisp.net/project/cffi/releases/cffi_0.9.2.tar.gz to
/Users/carlos/CFFI.asdf-install-tmp ...

gpg: Signature made Fri Sep  8 17:56:46 2006 BRT using DSA key ID E86007A0
gpg:
"[GNUPG:] ERRSIG F1DCE557E86007A0 17 2 00 1157749006 9" Can't check
signature: public key not found

"[GNUPG:] NO_PUBKEY F1DCE557E86007A0"
*** - No key found for key id 0xF1DCE557E86007A0. Try some command like
      gpg --recv-keys 0xF1DCE557E86007A0
The following restarts are available:
SKIP-GPG-CHECK :R1      Don't check GPG signature for this package
ABORT          :R2      ABORT
Break 1 [2]> :R1
;;; ASDF-INSTALL: Installing /Users/carlos/CFFI.asdf-install-tmp in
/Users/carlos/.asdf-install-dir/site/,
/Users/carlos/.asdf-install-dir/systems/
cffi_0.9.2/
cffi_0.9.2/cffi-examples.asd
cffi_0.9.2/cffi-tests.asd
cffi_0.9.2/cffi-uffi-compat.asd
cffi_0.9.2/cffi.asd
cffi_0.9.2/COPYRIGHT
cffi_0.9.2/doc/
cffi_0.9.2/doc/allegro-internals.txt
cffi_0.9.2/doc/cffi-manual.texinfo
cffi_0.9.2/doc/cffi-sys-spec.texinfo
cffi_0.9.2/doc/colorize-lisp-examples.lisp
cffi_0.9.2/doc/gendocs.sh
cffi_0.9.2/doc/gendocs_template
cffi_0.9.2/doc/Makefile
cffi_0.9.2/doc/mem-vector.txt
cffi_0.9.2/doc/shareable-vectors.txt
cffi_0.9.2/doc/style.css
cffi_0.9.2/examples/
cffi_0.9.2/examples/examples.lisp
cffi_0.9.2/examples/gethostname.lisp
cffi_0.9.2/examples/gettimeofday.lisp
cffi_0.9.2/examples/run-examples.lisp
cffi_0.9.2/examples/translator-test.lisp
cffi_0.9.2/HEADER
cffi_0.9.2/Makefile
cffi_0.9.2/README
cffi_0.9.2/scripts/
cffi_0.9.2/scripts/release.sh
cffi_0.9.2/src/
cffi_0.9.2/src/cffi-allegro.lisp
cffi_0.9.2/src/cffi-clisp.lisp
cffi_0.9.2/src/cffi-cmucl.lisp
cffi_0.9.2/src/cffi-corman.lisp
cffi_0.9.2/src/cffi-ecl.lisp
cffi_0.9.2/src/cffi-gcl.lisp
cffi_0.9.2/src/cffi-lispworks.lisp
cffi_0.9.2/src/cffi-openmcl.lisp
cffi_0.9.2/src/cffi-sbcl.lisp
cffi_0.9.2/src/cffi-scl.lisp
cffi_0.9.2/src/early-types.lisp
cffi_0.9.2/src/enum.lisp
cffi_0.9.2/src/features.lisp
cffi_0.9.2/src/foreign-vars.lisp
cffi_0.9.2/src/functions.lisp
cffi_0.9.2/src/libraries.lisp
cffi_0.9.2/src/package.lisp
cffi_0.9.2/src/strings.lisp
cffi_0.9.2/src/types.lisp
cffi_0.9.2/src/utils.lisp
cffi_0.9.2/tests/
cffi_0.9.2/tests/bindings.lisp
cffi_0.9.2/tests/callbacks.lisp
cffi_0.9.2/tests/compile.bat
cffi_0.9.2/tests/defcfun.lisp
cffi_0.9.2/tests/enum.lisp
cffi_0.9.2/tests/foreign-globals.lisp
cffi_0.9.2/tests/funcall.lisp
cffi_0.9.2/tests/libtest.c
cffi_0.9.2/tests/Makefile
cffi_0.9.2/tests/memory.lisp
cffi_0.9.2/tests/misc-types.lisp
cffi_0.9.2/tests/misc.lisp
cffi_0.9.2/tests/package.lisp
cffi_0.9.2/tests/random-tester.lisp
cffi_0.9.2/tests/run-tests.lisp
cffi_0.9.2/tests/struct.lisp
cffi_0.9.2/tests/union.lisp
cffi_0.9.2/TODO
cffi_0.9.2/uffi-compat/
cffi_0.9.2/uffi-compat/uffi-compat.lisp

#P"/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/"
#P"/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/"
; loading system definition from
/Users/carlos/.asdf-install-dir/systems/cffi.asd into #<PACKAGE
;   ASDF0>
;; Loading file /Users/carlos/.asdf-install-dir/systems/cffi.asd ...
; registering #<SYSTEM CFFI #x1A9902E5> as CFFI
WARNING: The generic function #<STANDARD-GENERIC-FUNCTION PERFORM> is
being modified, but has already
         been called.
;; Loaded file /Users/carlos/.asdf-install-dir/systems/cffi.asd
;; Loading file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/utils.fas ...
;; Loaded file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/utils.fas
;; Loading file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/features.fas ...
;; Loaded file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/features.fas
;; Compiling file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/cffi-clisp.lisp
...
*** - READ from
       #<INPUT BUFFERED FILE-STREAM CHARACTER
         #P"/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/cffi-clisp.lisp"
@91>
      : there is no package with name "FFI"
The following restarts are available:
RETRY          :R1      Retry performing #<ASDF:COMPILE-OP NIL
#x1A98E46D> on #<ASDF:CL-SOURCE-FILE "cffi-clisp" #x1A98D2F5>.
ACCEPT         :R2      Continue, treating #<ASDF:COMPILE-OP NIL
#x1A98E46D> on #<ASDF:CL-SOURCE-FILE "cffi-clisp" #x1A98D2F5> as
having been successful.
RETRY          :R3      Retry installation
ABORT          :R4      ABORT
Break 1 CFFI-SYS[3]> :R2

*** - LOAD: A file with name
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/cffi-clisp.fas
does
      not exist
The following restarts are available:
RETRY          :R1      Retry performing #<ASDF:LOAD-OP NIL
#x1A98E639> on #<ASDF:CL-SOURCE-FILE "cffi-clisp" #x1A98D2F5>.
ACCEPT         :R2      Continue, treating #<ASDF:LOAD-OP NIL
#x1A98E639> on #<ASDF:CL-SOURCE-FILE "cffi-clisp" #x1A98D2F5> as
having been successful.
RETRY          :R3      Retry installation
ABORT          :R4      ABORT
Break 1 [4]> :R2
;; Compiling file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/package.lisp ...
;; Wrote file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/package.fas
;; Loading file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/package.fas ...
;; Loaded file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/package.fas
;; Compiling file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/libraries.lisp ...
;; Wrote file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/libraries.fas
;; Loading file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/libraries.fas ...
;; Loaded file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/libraries.fas
;; Compiling file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/early-types.lisp
...
;; Wrote file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/early-types.fas
;; Loading file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/early-types.fas
...
;; Loaded file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/early-types.fas
;; Compiling file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/types.lisp ...
*** - FUNCALL: undefined function %FOREIGN-TYPE-SIZE
The following restarts are available:
USE-VALUE      :R1      You may input a value to be used instead of
(FDEFINITION '%FOREIGN-TYPE-SIZE).
RETRY          :R2      Retry
STORE-VALUE    :R3      You may input a new value for (FDEFINITION
'%FOREIGN-TYPE-SIZE).
RETRY          :R4      Retry performing #<ASDF:COMPILE-OP NIL
#x1A98AD71> on #<ASDF:CL-SOURCE-FILE "types" #x1A98A15D>.
ACCEPT         :R5      Continue, treating #<ASDF:COMPILE-OP NIL
#x1A98AD71> on #<ASDF:CL-SOURCE-FILE "types" #x1A98A15D> as having
been successful.
RETRY          :R6      Retry installation
ABORT          :R7      ABORT
Break 1 CFFI[5]> :R5

*** - LOAD: A file with name
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/types.fas does not
      exist
The following restarts are available:
RETRY          :R1      Retry performing #<ASDF:LOAD-OP NIL
#x1A98AFBD> on #<ASDF:CL-SOURCE-FILE "types" #x1A98A15D>.
ACCEPT         :R2      Continue, treating #<ASDF:LOAD-OP NIL
#x1A98AFBD> on #<ASDF:CL-SOURCE-FILE "types" #x1A98A15D> as having
been successful.
RETRY          :R3      Retry installation
ABORT          :R4      ABORT
Break 1 [6]> :R2
;; Compiling file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/enum.lisp ...
;; Wrote file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/enum.fas
;; Loading file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/enum.fas ...
;; Loaded file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/enum.fas
;; Compiling file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/strings.lisp ...
;; Wrote file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/strings.fas
;; Loading file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/strings.fas ...
*** - FUNCALL: undefined function DEFCTYPE
The following restarts are available:
USE-VALUE      :R1      You may input a value to be used instead of
(FDEFINITION 'DEFCTYPE).
RETRY          :R2      Retry
STORE-VALUE    :R3      You may input a new value for (FDEFINITION 'DEFCTYPE).
SKIP           :R4      skip 98 100 (DEFCTYPE :STRING :POINTER)-8
STOP           :R5      stop loading file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/strings.fas
RETRY          :R6      Retry performing #<ASDF:LOAD-OP NIL
#x1A98AFFD> on #<ASDF:CL-SOURCE-FILE "strings" #x1A98A2A5>.
ACCEPT         :R7      Continue, treating #<ASDF:LOAD-OP NIL
#x1A98AFFD> on #<ASDF:CL-SOURCE-FILE "strings" #x1A98A2A5> as having
been successful.
RETRY          :R8      Retry installation
ABORT          :R9      ABORT
Break 1 CFFI[7]> :R7
;; Compiling file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/functions.lisp ...
;; Wrote file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/functions.fas
;; Loading file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/functions.fas ...
;; Loaded file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/functions.fas
;; Compiling file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/foreign-vars.lisp
...
;; Wrote file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/foreign-vars.fas
;; Loading file
/Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/foreign-vars.fas
...
;; Loaded file /Users/carlos/.asdf-install-dir/site/cffi_0.9.2/src/foreign-vars.fas
The following functions were used but not defined:
 CFFI-SYS:%LOAD-FOREIGN-LIBRARY CFFI-SYS:%CLOSE-FOREIGN-LIBRARY
 CFFI-SYS:%FOREIGN-TYPE-ALIGNMENT CFFI-SYS:%FOREIGN-TYPE-SIZE
 CFFI-SYS:INC-POINTER CFFI-SYS:%FOREIGN-ALLOC CFFI-SYS:%MEM-SET
 CFFI-SYS:NULL-POINTER-P CFFI-SYS:%MEM-REF CFFI-SYS:FOREIGN-FREE
 CFFI:DEFCTYPE CFFI-SYS:POINTERP CFFI-SYS:%CALLBACK
 CFFI-SYS:FOREIGN-SYMBOL-POINTER
0 errors, 0 warnings
NIL
[8]>

Regards

Carlos

On 3/18/07, Frank Goenninger <frgo at mac.com> wrote:
> Carlos,
>
> whatever the manual says, I use CFFI with ACL8.0 on a MacBook Pro
> 10.4.9 with my Core2 Duo Intel processor just fine.
>
> Yeah - why not have a look at the errors...
>
> Cheers!
>     Frank
>
> Am 18.03.2007 um 15:11 schrieb Carlos Lenz:
>
> > Hi
> >
> > The "implementation support" section of the CFFI manual lists
> > darwin/ppc as being supported for several lisps, but says nothing
> > about darwin/intel. Nevertheless I have tried to install it in
> > CLISP - Mac OS X and got several errors.
> >
> > Is it supported? Do you want to see the errors?
> >
> > Regards
> >
> > Carlos
> > _______________________________________________
> > cffi-devel mailing list
> > cffi-devel at common-lisp.net
> > http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel
>
>



More information about the cffi-devel mailing list