[Gsll-devel] Compilation error in fsbv/libffi-unix.c

N J raphexion at gmail.com
Mon Mar 1 22:57:25 UTC 2010


Hey,

When I run
    (asdf:operate 'asdf:load-op :gsll)
in sbcl

I get:

; loading system definition from /usr/share/common-lisp/systems/c-array.asd
; into #<PACKAGE "ASDF0">
; registering #<SYSTEM C-ARRAY {10026C51D1}> as C-ARRAY
; compiling file "/usr/share/common-lisp/source/fsbv/init.lisp"
(written 01 MAR 2010 11:39:35 PM):
; compiling (IN-PACKAGE :COMMON-LISP-USER)
; compiling (DEFPACKAGE :FOREIGN-STRUCTURES-BY-VALUE ...)
; compiling (CFFI:LOAD-FOREIGN-LIBRARY "libffi.so")
; compiling (PUSHNEW :FSBV ...)

; /home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/init.fasl
written
; compilation finished in 0:00:00
; cc -m64 -fPIC -o
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c

debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread"
RUNNING {10023F6A01}>:
  External process exited with code 1.
Command was: "cc" "-m64" "-fPIC" "-o"
"/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix"
"/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c"
Output was:
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:7:17:
error: ffi.h: No such file or directory
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:
In function ‘main’:
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:40:
error: ‘FFI_OK’ undeclared (first use in this function)
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:40:
error: (Each undeclared identifier is reported only once
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:40:
error: for each function it appears in.)
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:45:
error: ‘FFI_BAD_TYPEDEF’ undeclared (first use in this function)
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:50:
error: ‘FFI_BAD_ABI’ undeclared (first use in this function)
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:61:
error: ‘FFI_DEFAULT_ABI’ undeclared (first use in this function)
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:66:
error: ‘FFI_SYSV’ undeclared (first use in this function)
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:71:
error: ‘FFI_UNIX64’ undeclared (first use in this function)
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:79:
error: ‘ffi_abi’ undeclared (first use in this function)
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:126:
error: invalid application of ‘sizeof’ to incomplete type ‘struct
_ffi_type’
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:126:
warning: format ‘%i’ expects type ‘int’, but argument 3 has type ‘long
unsigned int’
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:131:
error: dereferencing pointer to incomplete type
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:136:
error: dereferencing pointer to incomplete type
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:141:
error: dereferencing pointer to incomplete type
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:146:
error: dereferencing pointer to incomplete type
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:
In function ‘print_double_for_lisp’:
/home/rpx/.fasls/sbcl-1.0.19-gentoo-linux-x86-64/usr/share/common-lisp/source/fsbv/libffi-unix.c:397:
warning: incompatible implicit declaration of built-in function
‘memset’


My packages and gits are:
    git://repo.or.cz/gsll.git
    4fef622be12cf318e015b2ba5aba6c63d4296f1e
    master

    git://repo.or.cz/fsbv.git
    dd8025f51fd8272b725bd73bc0b1875bae2bcf5b
    master

    cffi-0.10.5


Thank you guys for any help
NIK




More information about the gsll-devel mailing list