Re: [GSLL-devel] GSLL handling lib name under CCL

2012-02-19 Thread Liam Healy
I have made this change removing the "lib/" part of the path for Darwin (in
the cffi-libffi branch, which is what I am maintaining now, and requires
the cffi-libffi branch of Antik and the fsbv branch of CFFI).  As far as
CFFI accepting a pathname is concerned, see this recent
email;
this should be a fixed problem in CFFI.  So do we need the
ccl:native-translated-namestring anymore?

Liam

Head:   2ea64e9044 - Rename dependent system cffi-libffi, fix Darwin
path


On Fri, Nov 25, 2011 at 11:48 PM, Yuan MEI  wrote:

> I think it is a good idea.  (gsl-config-pathname
> "lib/libgslcblas.dylib") could be abandoned and (:darwin
> "libgslcblas.dylib") would just work fine.  I have already confirmed
> such change works on CCL 1.7 and SBCL 1.0.52 (both are x86-64, on
> MacOSX Lion).
>
> Yuan
>
> (cffi:define-foreign-library libgsl
>  (:darwin "libgsl.dylib")
>   (:cygwin "cyggsl-0.dll")
>  (:unix (:or "libgsl.so.0" "libgsl.so"))
>  (t (:default "libgsl")))
>
> On Thu, Nov 24, 2011 at 10:27 PM, Liam Healy 
> wrote:
> > In light of this:
> >
> >
> http://lispcaveats.tumblr.com/post/13259176455/ffi-linking-against-shared-libraries
> >
> > I'd like to reconsider these changes.  Can we remove the special-case
> > :darwin :ccl conditional that has the literal path, and leave this up to
> > dlopen?
> >
> > Liam
> >
> > On Mon, Oct 17, 2011 at 11:16 PM, Liam Healy 
> wrote:
> >>
> >> Yuan,
> >>
> >> Thanks for the patch.  I don't use MacOSX so I can't test it, but I've
> >> committed it.  If possible, in the future please join the mailing list
> >> and post your items there.  As far as your CFFI suggestions go, I
> >> encourage you to post them on the cffi-devel list; Mac users seem to
> >> have a lot of trouble with paths and anything that improves that
> >> situation should be welcome.
> >>
> >> Liam
> >>
> >> On Thu, Oct 13, 2011 at 5:46 PM, Yuan MEI  wrote:
> >> > Hi Liam,
> >> > I've started using GSLL.  It is wonderful!  I just discovered a
> >> > glitch though, when using CCL under MacOSX, it complains that a
> >> > #P"xxx.dylib" is not accepted.  I'd rather think cffi should be blamed
> >> > for not accepting a path, but I'd like to let you know that there is
> >> > this issue and here is a quick fix.  Actually a better portable way
> >> > should be implemented to translate #P"" to a string that cffi could
> >> > understand, or better cffi should be modified to accept #P in any CL
> >> > implementation on any platform.
> >> >
> >> > Thanks,
> >> >
> >> > Yuan Mei
> >> >
> >> > diff --git a/init/init.lisp b/init/init.lisp
> >> > index 41ef370..e632f09 100644
> >> > --- a/init/init.lisp
> >> > +++ b/init/init.lisp
> >> > @@ -66,7 +66,9 @@
> >> >  (merge-pathnames pn (pathname (format nil "~a/" (gsl-config
> >> > "--prefix"))
> >> >
> >> >  (cffi:define-foreign-library libgslcblas
> >> > -  (:darwin #.(gsl-config-pathname "lib/libgslcblas.dylib"))
> >> > +  (:darwin #+ccl #.(ccl:native-translated-namestring
> >> > + (gsl-config-pathname "lib/libgslcblas.dylib"))
> >> > +   #-ccl #.(gsl-config-pathname "lib/libgslcblas.dylib"))
> >> >(:cygwin "cyggslcblas-0.dll")
> >> >(:unix (:or "libgslcblas.so.0" "libgslcblas.so"))
> >> >(t (:default "libgslcblas")))
> >> > @@ -80,9 +82,12 @@
> >> >  (cffi:load-foreign-library "/lib/lapack/cygblas.dll")
> >> >
> >> >  (cffi:define-foreign-library libgsl
> >> > -  (:darwin #. (gsl-config-pathname "lib/libgsl.dylib"))
> >> > +  (:darwin #+ccl #.(ccl:native-translated-namestring
> >> > + (gsl-config-pathname "lib/libgsl.dylib"))
> >> > +   #-ccl #.(gsl-config-pathname "lib/libgsl.dylib"))
> >> >(:cygwin "cyggsl-0.dll")
> >> >(:unix (:or "libgsl.so.0" "libgsl.so"))
> >> >(t (:default "libgsl")))
> >> >
> >> >  (cffi:use-foreign-library libgsl)
> >> >
> >
> >
>
___
GSLL-devel mailing list
GSLL-devel@common-lisp.net
http://lists.common-lisp.net/cgi-bin/mailman/listinfo/gsll-devel


Re: [GSLL-devel] recompilation of antic upon load of gssl

2012-02-19 Thread Liam Healy
No idea.  It should just load it; I think that's what happens for me.

Liam

On Tue, Feb 14, 2012 at 5:58 PM, JTK  wrote:

>
>
> Hello
>
> I noticed  that when I load gssl, antik recompiles (see below).
> Is this normal?  I would expect it to  reuse the compiled fasls.
>
> This is the quicklisp version running in SBCL 1.0.54
>
> John
>
>
>
> cl-user> (asdf:operate 'asdf:load-op 'gsll)
>
> warning: No definition for cflag-vswtc
> warning: No definition for tty-iuclc
> warning: No definition for tty-olcuc
> style-warning: Implicitly creating new generic function read-sequence*.
> [similar things deleted]
> style-warning: Undefined alien: "nil"
>
> ; compiling file
> "/Volumes/data/Software/lisp-lib/dists/quicklisp/software/antik-2005-git/optimize/one-dim.lisp"
> (written 13 FEB 2012 06:12:50 PM):
> ; compiling (in-package :antik)
> ; compiling (export (quote #))
> ; compiling (defun root-1d ...)
> ; compiling (defun minimize-1d ...)
> ; compiling (defun maximize-1d ...)
>
> ;
> /Volumes/data/Users/jtk/.cache/common-lisp/sbcl-1.0.54-macosx-x64/Volumes/data/Software/lisp-lib/dists/quicklisp/software/antik-2005-git/optimize/ASDF-TMP-one-dim.fasl
> written
> ; compilation finished in 0:00:00.023
> ; compiling file
> "/Volumes/data/Software/lisp-lib/dists/quicklisp/software/antik-2005-git/linear-algebra/linear-algebra.lisp"
> (written 13 FEB 2012 06:12:50 PM):
> ; compiling (in-package :antik)
> ; compiling (export (quote #))
> ; compiling (defmethod *i ...)
> ; compiling (defmethod *i ...)
> ; compiling (defmethod *i ...)
> ; compiling (defmethod /i ...)
> ; compiling (defmethod +i ...)
> ; compiling (defmethod +i ...)
> ; compiling (defmethod +i ...)
> ; compiling (defmethod -i ...)
> ; compiling (defmethod -i ...)
> ; compiling (defmethod -i ...)
> ; compiling (defmethod expt ...)
> ; compiling (defun invert-matrix ...)
> ; compiling (defun determinant ...)
> ; compiling (defun solve-linear ...)
>
> ;
> /Volumes/data/Users/jtk/.cache/common-lisp/sbcl-1.0.54-macosx-x64/Volumes/data/Software/lisp-lib/dists/quicklisp/software/antik-2005-git/linear-algebra/ASDF-TMP-linear-algebra.fasl
> written
> ; compilation finished in 0:00:00.032
> ; compiling file
> "/Volumes/data/Software/lisp-lib/dists/quicklisp/software/antik-2005-git/sample/low-discrepancy-sequence.lisp"
> (written 13 FEB 2012 06:12:50 PM):
> ; compiling (in-package :antik)
> ; compiling (export (quote #))
> ; compiling (defun val-from-range ...)
> ; compiling (defun quasi-random-values ...)
> ; compiling (defun low-discrepancy-sample ...)
> ; compiling (defun apply-to-arguments ...)
>
> ;
> /Volumes/data/Users/jtk/.cache/common-lisp/sbcl-1.0.54-macosx-x64/Volumes/data/Software/lisp-lib/dists/quicklisp/software/antik-2005-git/sample/ASDF-TMP-low-discrepancy-sequence.fasl
> written
> ; compilation finished in 0:00:00.025
> ___
> GSLL-devel mailing list
> GSLL-devel@common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/gsll-devel
>
___
GSLL-devel mailing list
GSLL-devel@common-lisp.net
http://lists.common-lisp.net/cgi-bin/mailman/listinfo/gsll-devel