Re: [cffi-devel] 64bit hosts without multilib

2012-01-03 Thread Daniel Herring
On Tue, 3 Jan 2012, Robert Goldman wrote: On 1/3/12 Jan 3 -7:49 PM, Luís Oliveira wrote: On Wed, Jan 4, 2012 at 12:51 AM, Elias Pipping wrote: Checking for /lib/ld-linux.so.2 would be one possibility. That would only take care of Linux. I'm afraid my Makefile-fu is weak and I don't see an o

Re: [cffi-devel] 64bit hosts without multilib

2012-01-03 Thread Robert Goldman
On 1/3/12 Jan 3 -7:49 PM, Luís Oliveira wrote: > On Wed, Jan 4, 2012 at 12:51 AM, Elias Pipping wrote: >> Checking for /lib/ld-linux.so.2 would be one possibility. > > That would only take care of Linux. I'm afraid my Makefile-fu is weak > and I don't see an obvious way to fix this. I've register

Re: [cffi-devel] Linking CL to fortran-77 via cffi

2012-01-03 Thread Mirko Vukovic
Liam, I think Tamas Papp is much ahead of me in terms of linking cl to f77 arrays (especially on SBCL). Your best bet might be to somehow link to his LLA package (https://github.com/tpapp/lla). I suspect that his package also grovels through the f77 libraries, automatically generating CL defun's

Re: [cffi-devel] 64bit hosts without multilib

2012-01-03 Thread Luís Oliveira
On Wed, Jan 4, 2012 at 12:51 AM, Elias Pipping wrote: > Checking for /lib/ld-linux.so.2 would be one possibility. That would only take care of Linux. I'm afraid my Makefile-fu is weak and I don't see an obvious way to fix this. I've registered this bug here:

Re: [cffi-devel] Linking CL to fortran-77 via cffi

2012-01-03 Thread Liam Healy
Mirko, Thank you for this work. I'm interested in building interfaces to Lapack etc. using Antik. In the foreign-array definitions, I have an option :linearization which can be either :row-major or :column-major; it defaults to the former. I even have make-fortran-array

Re: [cffi-devel] Linking CL to fortran-77 via cffi

2012-01-03 Thread Mirko Vukovic
On Tue, Jan 3, 2012 at 2:10 PM, Martin Simmons wrote: > > On Thu, 29 Dec 2011 21:19:15 -0500, Mirko Vukovic said: > > > > Hello, > > > > Several projects (lla, blapack among them) link common lisp (cl) to > fortran > > 77 (f77)code. Unfortunately, being totally unfamiliar with cffi, I was >

Re: [cffi-devel] Linking CL to fortran-77 via cffi

2012-01-03 Thread Martin Simmons
> On Thu, 29 Dec 2011 21:19:15 -0500, Mirko Vukovic said: > > Hello, > > Several projects (lla, blapack among them) link common lisp (cl) to fortran > 77 (f77)code. Unfortunately, being totally unfamiliar with cffi, I was > having trouble using those packages to learn how to link cl to other

Re: [cffi-devel] 64bit hosts without multilib

2012-01-03 Thread Luís Oliveira
On Sun, Jan 1, 2012 at 7:52 PM, Elias Pipping wrote: > the file tests/GNUmakefile currently contains the lines > >  ifeq ($(ARCH), x86_64) >  SHLIBS += libtest32$(SHLIB_EXT) libtest2_32$(SHLIB_EXT) >  endif > > As a result, building with -m32 will be tested on 64bit hosts. This can > only work on

[cffi-devel] 64bit hosts without multilib

2012-01-03 Thread Elias Pipping
Hi, the file tests/GNUmakefile currently contains the lines ifeq ($(ARCH), x86_64) SHLIBS += libtest32$(SHLIB_EXT) libtest2_32$(SHLIB_EXT) endif As a result, building with -m32 will be tested on 64bit hosts. This can only work on multilib hosts, however; for others the test will fail. Be