Hello,
I am having some problems in building GSLL on my system. I've decided to install it using clbuild, with sbcl 1.0.30 on a Mac OS X 10.5.8. I've installed GSL through macports (1.12) and it's working (compile some basic examples). I've also checked for the last versions of all the required libraries, specifically CFFI. However, every time I try to load GSLL it always gives the error pasted at the end of this message.
I think it is related to the fact that it can't find the header files for GSL. If I directly compile a C file, I need to indicate the correct path: -I/opt/local/include -L/opt/local/lib. I have the impression that this is somehow missing on the automated build process of gsll but I am not sure where/how to correct it. Or it's simply an easy mistake on my part or something very obvious that I am missing...
If someone could provide me some hints in how to install, build and use correctly gsll I would be very grateful.
Best wishes, Jorge
Output with the error messages:
; /Users/jast/devel/lisp/clbuild/source/gsll/init/init.fasl written ; compilation finished in 0:00:00.006 ; cc -m32 -I/Users/jast/devel/lisp/clbuild/source/cffi/ -fPIC -o / Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix /Users/jast/ devel/lisp/clbuild/source/gsll/init/libgsl-unix.c
External process exited with code 1. Command was: "cc" "-m32" "-I/Users/jast/devel/lisp/clbuild/source/ cffi/" "-fPIC" "-o" "/Users/jast/devel/lisp/clbuild/source/gsll/init/ li..." "/Users/jast/devel/lisp/clbuild/source/gsll/init/li..." Output was: /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:6:33: error: gsl/gsl_integration.h: No such file or directory /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:7:27: error: gsl/gsl_eigen.h: No such file or directory /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:8:27: error: gsl/gsl_cblas.h: No such file or directory /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:9:27: error: gsl/gsl_odeiv.h: No such file or directory /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:10:32: error: gsl/gsl_ieee_utils.h: No such file or directory /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:11:26: error: gsl/gsl_mode.h: No such file or directory /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:12:27: error: gsl/gsl_errno.h: No such file or directory /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c: In function 'main': /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:29: error: 'GSL_INTEG_COSINE' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:29: error: (Each undeclared identifier is reported only once /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:29: error: for each function it appears in.) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:34: error: 'GSL_INTEG_SINE' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:45: error: 'GSL_INTEG_GAUSS15' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:50: error: 'GSL_INTEG_GAUSS21' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:55: error: 'GSL_INTEG_GAUSS31' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:60: error: 'GSL_INTEG_GAUSS41' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:65: error: 'GSL_INTEG_GAUSS51' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:70: error: 'GSL_INTEG_GAUSS61' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:81: error: 'GSL_EIGEN_SORT_VAL_ASC' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:86: error: 'GSL_EIGEN_SORT_VAL_DESC' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:91: error: 'GSL_EIGEN_SORT_ABS_ASC' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:96: error: 'GSL_EIGEN_SORT_ABS_DESC' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:107: error: 'CblasNoTrans' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:112: error: 'CblasTrans' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:117: error: 'CblasConjTrans' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:128: error: 'CblasUpper' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:133: error: 'CblasLower' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:144: error: 'CblasNonUnit' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:149: error: 'CblasUnit' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:160: error: 'CblasLeft' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:165: error: 'CblasRight' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:176: error: 'GSL_ODEIV_HADJ_DEC' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:181: error: 'GSL_ODEIV_HADJ_NIL' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:186: error: 'GSL_ODEIV_HADJ_INC' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:197: error: 'GSL_IEEE_TYPE_NAN' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:202: error: 'GSL_IEEE_TYPE_INF' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:207: error: 'GSL_IEEE_TYPE_NORMAL' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:212: error: 'GSL_IEEE_TYPE_DENORMAL' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:217: error: 'GSL_IEEE_TYPE_ZERO' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:228: error: 'GSL_IEEE_SINGLE_PRECISION' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:233: error: 'GSL_IEEE_DOUBLE_PRECISION' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:238: error: 'GSL_IEEE_EXTENDED_PRECISION' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:249: error: 'GSL_IEEE_ROUND_TO_NEAREST' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:254: error: 'GSL_IEEE_ROUND_DOWN' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:259: error: 'GSL_IEEE_ROUND_UP' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:264: error: 'GSL_IEEE_ROUND_TO_ZERO' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:275: error: 'GSL_IEEE_MASK_INVALID' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:280: error: 'GSL_IEEE_MASK_DENORMALIZED' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:285: error: 'GSL_IEEE_MASK_DIVISION_BY_ZERO' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:290: error: 'GSL_IEEE_MASK_OVERFLOW' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:295: error: 'GSL_IEEE_MASK_UNDERFLOW' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:300: error: 'GSL_IEEE_MASK_ALL' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:305: error: 'GSL_IEEE_TRAP_INEXACT' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:316: error: 'GSL_PREC_DOUBLE' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:321: error: 'GSL_PREC_SINGLE' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:326: error: 'GSL_PREC_APPROX' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:337: error: 'GSL_CONTINUE' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:342: error: 'GSL_FAILURE' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:347: error: 'GSL_SUCCESS' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:352: error: 'GSL_EDOM' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:357: error: 'GSL_ERANGE' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:362: error: 'GSL_EFAULT' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:367: error: 'GSL_EINVAL' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:372: error: 'GSL_EFAILED' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:377: error: 'GSL_EFACTOR' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:382: error: 'GSL_ESANITY' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:387: error: 'GSL_ENOMEM' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:392: error: 'GSL_EBADFUNC' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:397: error: 'GSL_ERUNAWAY' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:402: error: 'GSL_EMAXITER' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:407: error: 'GSL_EZERODIV' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:412: error: 'GSL_EBADTOL' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:417: error: 'GSL_ETOL' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:422: error: 'GSL_EUNDRFLW' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:427: error: 'GSL_EOVRFLW' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:432: error: 'GSL_ELOSS' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:437: error: 'GSL_EROUND' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:442: error: 'GSL_EBADLEN' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:447: error: 'GSL_ENOTSQR' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:452: error: 'GSL_ESING' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:457: error: 'GSL_EDIVERGE' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:462: error: 'GSL_EUNSUP' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:467: error: 'GSL_EUNIMPL' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:472: error: 'GSL_ECACHE' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:477: error: 'GSL_ETABLE' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:482: error: 'GSL_ENOPROG' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:487: error: 'GSL_ENOPROGJ' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:492: error: 'GSL_ETOLF' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:497: error: 'GSL_ETOLX' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:502: error: 'GSL_ETOLG' undeclared (first use in this function) /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:507: error: 'GSL_EOF' undeclared (first use in this function)
[Condition of type SIMPLE-ERROR]
Restarts: 0: [TRY-RECOMPILING] Try recompiling libgsl 1: [RETRY] Retry performing #<ASDF:COMPILE-OP NIL {12F3FFC9}> on #<CFFI-GROVEL:GROVEL-FILE "libgsl" {12EF6CD1}>. 2: [ACCEPT] Continue, treating #<ASDF:COMPILE-OP NIL {12F3FFC9}> on #<CFFI-GROVEL:GROVEL-FILE "libgsl" {12EF6CD1}> 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: (CFFI-GROVEL::INVOKE "cc")[:EXTERNAL] 1: ((LAMBDA ())) 2: (SB-IMPL::%WITH-STANDARD-IO-SYNTAX #<CLOSURE (LAMBDA #) {13953B95}>) 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 #) {13837E65}>) [: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--
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.
Liam
On Fri, Aug 21, 2009 at 8:20 AM, Jorge Tavaresjast@acm.org wrote:
Hello,
I am having some problems in building GSLL on my system. I've decided to install it using clbuild, with sbcl 1.0.30 on a Mac OS X 10.5.8. I've installed GSL through macports (1.12) and it's working (compile some basic examples). I've also checked for the last versions of all the required libraries, specifically CFFI. However, every time I try to load GSLL it always gives the error pasted at the end of this message.
I think it is related to the fact that it can't find the header files for GSL. If I directly compile a C file, I need to indicate the correct path: -I/opt/local/include -L/opt/local/lib. I have the impression that this is somehow missing on the automated build process of gsll but I am not sure where/how to correct it. Or it's simply an easy mistake on my part or something very obvious that I am missing...
If someone could provide me some hints in how to install, build and use correctly gsll I would be very grateful.
Best wishes, Jorge
Output with the error messages:
; /Users/jast/devel/lisp/clbuild/source/gsll/init/init.fasl written ; compilation finished in 0:00:00.006 ; cc -m32 -I/Users/jast/devel/lisp/clbuild/source/cffi/ -fPIC -o / Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix /Users/jast/ devel/lisp/clbuild/source/gsll/init/libgsl-unix.c
External process exited with code 1. Command was: "cc" "-m32" "-I/Users/jast/devel/lisp/clbuild/source/ cffi/" "-fPIC" "-o" "/Users/jast/devel/lisp/clbuild/source/gsll/init/ li..." "/Users/jast/devel/lisp/clbuild/source/gsll/init/li..." Output was: /Users/jast/devel/lisp/clbuild/source/gsll/init/libgsl-unix.c:6:33: error: gsl/gsl_integration.h: No such file or directory
...
On Sat, Aug 22, 2009 at 4:33 PM, Liam Healylhealy@common-lisp.net 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.
I need -I/usr/lib64/libffi-3.0.5/include in cffi-grovel::*cc-flags* and I found no better way than to edit cffi_0.10.5/grovel/grovel.lisp. alas, the above append call must happen _after_ grovel is loaded, but _before_ it is used, and there is no obvious way to run some code at that moment when all I do is: (asdf:operate 'asdf:load-op :gsll)
On Mon, Aug 24, 2009 at 3:08 PM, Sam Steingoldsds@gnu.org wrote:
On Sat, Aug 22, 2009 at 4:33 PM, Liam Healylhealy@common-lisp.net 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.
I need -I/usr/lib64/libffi-3.0.5/include in cffi-grovel::*cc-flags* and I found no better way than to edit cffi_0.10.5/grovel/grovel.lisp. alas, the above append call must happen _after_ grovel is loaded, but _before_ it is used, and there is no obvious way to run some code at that moment when all I do is: (asdf:operate 'asdf:load-op :gsll)
Can you see if some addition argument to the (cc-flags ...) form solves the problem? Look where there currently is already such a form (i.e., all files that are loaded with cffi-grovel:grovel-file in the ASD file). Preferably with as non-version-specific a path as possible (the libffi-3.0.5 makes me nervous, in that presumably every version this changes).
If that doesn't work, I think a post to the cffi-devel list is in order, as this seems to be something that shouldn't require editing the grovel.lisp file.
Thanks, Liam
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
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 Tavaresjast@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
Hi,
On Aug 25, 2009, at 00:01 , Liam Healy wrote:
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.
Unfortunately I am having some troubles with darcs and I am unable to get the latest version of cffi (the previous error is from the tar release):
NEW darcs get cffi darcs: bug in darcs! Another possible bug in URL.waitNextUrl: curl_multi_perform() - no running handles at src/URL.hs:243 compiled Aug 24 2009 19:50:51 I'm unable to check http://darcs.net/maintenance to see if this version is supported. If it is supported, please report this to bugs@darcs.net If possible include the output of 'darcs --exact-version'.
As soon as I solve this I'll report if I still had problems with gsll. Once again, thanks for all your feedback!
Best, Jorge
Hi Liam,
I have GSLL up and running now! Thanks for the help provided. On an additional note, I've run the provided test suit and got some fails:
GSL> (lisp-unit:run-tests) [...] TOTAL: 1348 assertions passed, 24 failed, 0 execution errors. ; No value GSL>
I can send the detailed output if you want.
Best, Jorge
On Aug 25, 2009, at 00:01 , Liam Healy wrote:
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
That sounds about right. On linux (64 bit) I get 5 errors in SBCL. Since I don't run OS X, it's hard for me to debug, but at some point I'll look at those test failures. Glad everything else is working.
Liam
On Thu, Aug 27, 2009 at 11:54 AM, Jorge Tavaresjast@acm.org wrote:
Hi Liam,
I have GSLL up and running now! Thanks for the help provided. On an additional note, I've run the provided test suit and got some fails:
GSL> (lisp-unit:run-tests) [...] TOTAL: 1348 assertions passed, 24 failed, 0 execution errors. ; No value GSL>
I can send the detailed output if you want.
Best, Jorge
On Aug 25, 2009, at 00:01 , Liam Healy wrote:
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