Symbol "*BUILT-IN-FLOAT-TYPES*" not found in the CFFI package.
Adam Jensen
hanzer at riseup.net
Fri Oct 4 06:40:40 UTC 2013
The GSLL-SBCL-OpenBSD configuration requires some effort. So far, I've
modified these files to include the OpenBSD-5.3 library names:
quicklisp/dists/quicklisp/software/cffi_0.11.2/libffi/init.lisp
- (:unix (:or "libffi.so.6" "libffi32.so.6" "libffi.so.5" "libffi32.so.5"))
+ (:unix (:or "libffi.so.0.0" "libffi.so.6" "libffi32.so.6"
"libffi.so.5" "libffi32.so.5"))
quicklisp/dists/quicklisp/software/cl+ssl-20130420-git/reload.lisp
- (:openbsd (:or "libcrypto.so.21.0"
+ (:openbsd (:or "libcrypto.so.22.0"
I set some environment variables:
export C_INCLUDE_PATH=/usr/include:/usr/local/include
export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
There were some pthread problems:
; Loading "gsll"
sbcl:/usr/local/lib/libffi.so.6.1: undefined symbol 'pthread_mutex_unlock'
sbcl:/usr/local/lib/libffi.so.6.1: undefined symbol 'pthread_mutex_lock'
sbcl:/usr/local/lib/libffi.so.6.1: undefined symbol 'pthread_mutex_init'
I'm working on a better build of SBCL; for now, this fixes pthread:
LD_PRELOAD=/usr/lib/libpthread.so.17.0 sbcl --load quicklisp.lisp
At the moment, GSLL stops at antik with this message:
(load "/home/hanzer/quicklisp/setup.lisp")
(ql:quickload "antik")
[package antik]...................................
[package grid].....;
; caught ERROR:
; READ error during COMPILE-FILE:
;
; :ASCII stream decoding error on
; #<SB-SYS:FD-STREAM
; for "file
/home/hanzer/quicklisp/dists/quicklisp/software/antik-20130720-git/init/generic.lisp"
; {45302089}>:
;
; the octet sequence #(194) cannot be decoded.
;
; (in form starting at line: 192, column: 18, file-position: 6849)
The game is afoot.
On 10/03/2013 09:55 PM, Liam Healy wrote:
>
> On Wed, Sep 25, 2013 at 7:30 PM, Adam Jensen <hanzer at riseup.net
> <mailto:hanzer at riseup.net>> wrote:
>
> Hi,
>
> I've encountered some problems while having a look at GSLL (well,
> attempting to have a look at GSLL anyway). I can't seem to get started
> on an OpenBSD machine or a Xubuntu Linux machine. Any ideas about what
> the problem may be?
>
> -------------------------------------------------------------------
> Problems on an OpenBSD machine
> -------------------------------------------------------------------
>
> lucidrine:/home/hanzer$ dmesg | head -1
> OpenBSD 5.3 (GENERIC.MP <http://GENERIC.MP>) #58: Tue Mar 12
> 18:43:53 MDT 2013
>
> lucidrine:/home/hanzer$ sbcl --version
> SBCL 1.0.58.openbsd
>
> -- Installed from /usr/ports --
> gsl-1.15
> libffi-3.0.9
> --
>
> lucidrine:/home/hanzer$ curl -O http://beta.quicklisp.org/quicklisp.lisp
>
> lucidrine:/home/hanzer$ sbcl --load quicklisp.lisp
> ...
> * (quicklisp-quickstart:install)
> ...
> * (ql:add-to-init-file)
> ...
> * (ql:quickload "gsll")
>
> --a bunch of fetching then--
>
> ; Loading "gsll"
> [package alexandria.0.dev]........................
> [package babel-encodings].........................
> [package babel]...................................
> ..................................................
> [package cffi-sys]................................
> [package cffi]....................................
> ..................................................
> [package cffi-features]...........................
> [package cffi-grovel]...........
> debugger invoked on a ASDF:LOAD-SYSTEM-DEFINITION-ERROR:
> Error while trying to load definition for system gsll from pathname
>
> /home/hanzer/quicklisp/dists/quicklisp/software/gsll-20130615-git/gsll.asd:
> Unable to load any of the alternatives:
> ("libffi.so.6" "libffi32.so.6" "libffi.so.5" "libffi32.so.5")
>
>
> This looks like you don't have libfffi OS package installed. I'm not
> familiar with OpenBSD, so you'll have to figure out what it's called,
> but it should be the "development" package if they make a distinction,
> i.e., the one with the .h files as well as the library (.so). But in
> fact it looks like you don't have either now.
>
>
> Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
>
> -------------------------------------------------------------------
> Problems on a xubuntu Linux machine
> -------------------------------------------------------------------
>
> #30-Ubuntu SMP Wed May 1 16:36:13 UTC 2013 (Ubuntu 3.8.0-19.30-generic
> 3.8.8)
>
> helix:~$ sbcl --version
> SBCL 1.1.1.0.debian
>
> -- Installed from Synaptic --
> libgsl0-dev
> libgsl0ldbl
> libffi6
> libffi-dev
> --
>
> helix:~$ curl -O http://beta.quicklisp.org/quicklisp.lisp
> ...
> helix:~$ sbcl --load quicklisp.lisp
> ...
> * (quicklisp-quickstart:install)
> ...
> ==== quicklisp installed ====
> ...
> * (ql:quickload "gsll")
> ...
>
> --a bunch of fetching then--
>
> ; Loading "gsll"
> ..; cc -m32 -I/usr/share/common-lisp/source/cl-cffi/ -fPIC -o
> /home/dmagus/.cache/common-lisp/sbcl-1.1.1.0.debian-linux-x86/home/dmagus/quicklisp/dists/quicklisp/software/cffi_0.11.2/libffi/libffi-unix
> /home/dmagus/.cache/common-lisp/sbcl-1.1.1.0.debian-linux-x86/home/dmagus/quicklisp/dists/quicklisp/software/cffi_0.11.2/libffi/libffi-unix.c
> ;
> /home/dmagus/.cache/common-lisp/sbcl-1.1.1.0.debian-linux-x86/home/dmagus/quicklisp/dists/quicklisp/software/cffi_0.11.2/libffi/libffi-unix
> /home/dmagus/.cache/common-lisp/sbcl-1.1.1.0.debian-linux-x86/home/dmagus/quicklisp/dists/quicklisp/software/cffi_0.11.2/libffi/libffi-unix.grovel-tmp.lisp
> .;
> ; caught ERROR:
> ; READ error during COMPILE-FILE:
> ;
> ; Symbol "*BUILT-IN-FLOAT-TYPES*" not found in the CFFI package.
> ;
> ; Line: 36, Column: 49, File-Position: 1632
> ;
> ; Stream: #<SB-SYS:FD-STREAM
> ; for "file
> /home/dmagus/quicklisp/dists/quicklisp/software/cffi_0.11.2/libffi/built-in-types.lisp"
> ; {C2C57B9}>
>
> debugger invoked on a LOAD-SYSTEM-DEFINITION-ERROR in thread
> #<THREAD "main thread" RUNNING {AB16819}>:
> Error while trying to load definition for system gsll from pathname
>
> /home/dmagus/quicklisp/dists/quicklisp/software/gsll-20130615-git/gsll.asd:
> Error while invoking #<COMPILE-OP NIL {B978391}> on
> #<CL-SOURCE-FILE "cffi-libffi" "libffi" "built-in-types">
>
> Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
>
>
>
>
>
> This is weird. *built-in-float-types* is defined in src/types.lisp, line
> 113; you can check for yourself in the source code.
>
> Liam
>
More information about the gsll-devel
mailing list