[Gsll-devel] Problem with building gsll
Liam Healy
lhealy at common-lisp.net
Mon Aug 24 23:01:32 UTC 2009
Jorge,
Do a fresh update of CFFI and try again.
Though I said I added the cffi-grovel::*cc-flags* form
(and I had) I was later corrected by one of the CFFI
gurus who pointed out the more acceptable way,
by using the cc-flags form, so I made the change.
That feature was introduced in
a relatively recent version of CFFI and evidently yours
is older.
Liam
On Mon, Aug 24, 2009 at 5:04 PM, Jorge Tavares<jast at acm.org> wrote:
> Hi Liam,
>
>
> On Aug 22, 2009, at 21:33 , Liam Healy wrote:
>
>> Unfortunately, OS X does not have standard installation locations,
>> so it's hard to capture all the places that GSL .h files might
>> be found (especially since I'm not a Mac user). I have added
>>
>> #+darwin
>> (setf cffi-grovel::*cc-flags*
>> (append '("-I" "/opt/local/include/") cffi-grovel::*cc-flags*))
>>
>> to init/init.lisp. I've also made a similar addition to FSBV.
>> Delete all the your fasl and grovel-tmp files and try with a fresh pull.
>> Let me know whether this works or not.
>
> First of all, thanks for the quick reply and help.
>
> Unfortunately, I am still having problems. It is related to cffi-grovel but
> not really sure what the problem is. I don't know nothing about cffi-grovel
> so right now I can't do much myself...
>
> The output is:
>
> compiling file "/Users/jast/devel/lisp/clbuild/source/gsll/init/init.lisp"
> (written 24 AUG 2009 09:54:25 PM):
> ; compiling (DEFPACKAGE GSLL ...)
> ; compiling (CFFI:DEFINE-FOREIGN-LIBRARY LIBGSLCBLAS ...)
> ; compiling (CFFI:USE-FOREIGN-LIBRARY LIBGSLCBLAS)
> ; compiling (CFFI:DEFINE-FOREIGN-LIBRARY LIBGSL ...)
> ; compiling (CFFI:USE-FOREIGN-LIBRARY LIBGSL)
> ; compiling (PUSHNEW :NATIVE ...)
>
> ; /Users/jast/devel/lisp/clbuild/source/gsll/init/init.fasl written
> ; compilation finished in 0:00:00.007
>
> Unknown Grovel syntax: CFFI-GROVEL::CC-FLAGS
> [Condition of type SIMPLE-ERROR]
>
> Restarts:
> 0: [TRY-RECOMPILING] Try recompiling libgsl
> 1: [RETRY] Retry performing #<ASDF:COMPILE-OP NIL {126B9C21}> on
> #<CFFI-GROVEL:GROVEL-FILE "libgsl" {12BDE911}>.
> 2: [ACCEPT] Continue, treating #<ASDF:COMPILE-OP NIL {126B9C21}> on
> #<CFFI-GROVEL:GROVEL-FILE "libgsl" {12BDE911}> as having been successful.
> 3: [RETRY] Retry SLIME REPL evaluation request.
> 4: [ABORT] Return to SLIME's top level.
> 5: [ABORT] Exit debugger, returning to top level.
>
> Backtrace:
> 0: ((SB-PCL::FAST-METHOD CFFI-GROVEL::%PROCESS-GROVEL-FORM (T T T))
> #<unavailable argument> #<unavailable argument> CFFI-GROVEL::CC-FLAGS
> #<unavailable argument> #<unavailable argument>)
> 1: (CFFI-GROVEL::GENERATE-C-FILE
> #P"/Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.lisp"
> #P"/Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.fasl")
> 2: (CFFI-GROVEL:PROCESS-GROVEL-FILE
> #P"/Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.lisp"
> #P"/Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.fasl")
> 3: ((SB-PCL::FAST-METHOD ASDF:PERFORM (ASDF:COMPILE-OP
> CFFI-GROVEL:GROVEL-FILE)) ..)
> 4: ((LAMBDA (SB-PCL::.PV. SB-PCL::.NEXT-METHOD-CALL. SB-PCL::.ARG0.
> SB-PCL::.ARG1.)) ..)
> 5: ((SB-PCL::FAST-METHOD ASDF:PERFORM :AROUND (ASDF:COMPILE-OP
> CFFI-GROVEL::CC-FLAGS-MIXIN)) ..)
> 6: ((SB-PCL::FAST-METHOD ASDF:PERFORM ASDF:AROUND (ASDF:COMPILE-OP
> ASDF:CL-SOURCE-FILE)) ..)
> 7: ((LAMBDA ()))
> 8: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK))
> 9: (SB-C::%WITH-COMPILATION-UNIT #<CLOSURE (LAMBDA #)
> {122E92ED}>)[:EXTERNAL]
> 10: (ASDF:OPERATE ASDF:LOAD-OP :GSLL)[:EXTERNAL]
> 11: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ASDF:OPERATE 'ASDF:LOAD-OP :GSLL)
> #<NULL-LEXENV>)
> --more--
>
>
>
> Best regards,
> Jorge
>
>
More information about the gsll-devel
mailing list