#6 Many similar warnings during the build on SBCL

open
nobody
None
5
2006-04-09
2006-04-09
No

I noticed that there is a lot of very similar warning
when building on SBCL.

The warnings looks like:

-----------------------------
; compiling file
"/home/rtvd/tmp/cl-sdl/sdl-ttf/cl-sdl-ttf.lisp"
(written 09 APR 2006 12:29:43 PM):
; compiling (DEFPACKAGE #:CL-SDL-TTF ...)
; compiling (IN-PACKAGE #:CL-SDL-TTF)
; compiling (DEFUN OPEN-FONT ...)
; compiling (DEFUN SIZE-TEXT ...)
; file: /home/rtvd/tmp/cl-sdl/sdl-ttf/cl-sdl-ttf.lisp
; in: DEFUN SIZE-TEXT
; (SDL-GL-UFFI-MACROS:WITH-FOREIGN-OBJECTS
; ((CL-SDL-TTF::WIDTH SDL-GL-UFFI-MACROS:INT)
; (CL-SDL-TTF::HEIGHT SDL-GL-UFFI-MACROS:INT))
; (SDL-TTF:SIZE-TEXT CL-SDL-TTF::FONT
; CL-SDL-TTF::TEXT
; CL-SDL-TTF::WIDTH
; CL-SDL-TTF::HEIGHT)
; (VALUES
; (SDL-GL-UFFI-MACROS:DEREF-POINTER
CL-SDL-TTF::WIDTH SDL-GL-UFFI-MACROS:INT)
; (SDL-GL-UFFI-MACROS:DEREF-POINTER CL-SDL-TTF::HEIGHT
;
SDL-GL-UFFI-MACROS:INT)))
; --> UFFI:WITH-FOREIGN-OBJECT WITH-ALIEN
SYMBOL-MACROLET SYMBOL-MACROLET LET
; --> MULTIPLE-VALUE-PROG1 SYMBOL-MACROLET LET* ADDR
; --> SB-ALIEN-INTERNALS:%LOCAL-ALIEN-ADDR
; ==>
; (SB-ALIEN-INTERNALS:%SAP-ALIEN SB-C::VAR
;
'#<SB-ALIEN-INTERNALS:ALIEN-POINTER-TYPE (*
;
(SIGNED
;
32))>)
;
; note: unable to
; optimize
; because:
; could not optimize away %SAP-ALIEN: forced to do
runtime
; allocation of alien-value structure
-----------------------------

Unfortunately, I am new to LISP and I do not know what
the %SAP-ALIEN is, but I suppose that all these
warnings are related to some kind of macro in UFFI and
it is possible to change it a little so that SBCL
compile everything without any warnings and probably
generate a more optimized code.

The versions of the software are:

cl-sdl: 0.2.2 (Gentoo portage says it is 0.2.2-r2)
sbcl: 0.9.11

Discussion