[Openmcl-devel] (how) is ffigen to be made to work (?)

james anderson james.anderson at setf.de
Tue Feb 24 13:50:51 PST 2009


i would like to generate interface databases for fftw and open-mpi.
i have tried to follow the several instructions

  - the trac wiki [ http://trac.clozure.com/openmcl/wiki/OpenMclFfi ]
  - the ccl-documentation page [ http://ccl.clozure.com/ccl- 
documentation.html#The-Foreign-Function-Interface ]
  - the doc wiki [ http://doc.clozure.com/doku.php/doc/openmcl/ 
ffi#creating_new_interface_directories ]
(whereby the links in the latter appear most reliable)

but have yet to succeed. it may just be, i've not yet found the right  
combination, but i also wonder whether there is a working combination  
for my particular environment.

i observe that,

a, there are several darwin ppc ffigen versions:
two distinct ones in pub
-rw-r--r--    1 501      0         2224311 May 17  2005 ffigen-bin- 
-rw-r--r--    1 501      0         2241140 Oct 24  2003 ffigen- 
a very similar one in pub/FFIGEN
-rw-r--r--    1 0        0         2224311 Apr 21  2008 ffigen-bin- 
as well as a dozen others which appear contraindicated by name.

b, there are (at least) two active ccl versions
- i had been using 1.2
- i've now tried also 1.3

c, there are (more than) two active os x versions
- i use 10.4.11
- it would be inconvenient to switch to 10.5 - which several  
populate.sh scripts stipulate

d, there are two interface versions
- 32 bit
- 64 bit

while i've yet to exhaust the variations at my disposal, i'm also yet  
to observe any populate to run without issuing some error message.
for my new cases (open-mpi and fftw), this may well involve incorrect  
c-flags, but i've tried also to use the newer ffigen with various of  
the interfaces included in the two ccl releases, and see error  
messages then as well. true, for the 32-bit headers, this is limited  
to missing .h files.

could someone who has ffigen experience, please advise me

? which combinations are known to work?

? whether i should expect the 17.may ffigen, and os x 10.4.11, and  
either ccl 1.2, or 1.3 to work? for the 64-bit interfaces, or just  
the 32-bit.

? if i have built and installed the two new libraries (fftw and open- 
mpi) which of the c-flags from the build transcripts will be material  
to ffigen?
   if there are no general principles, and one needs the command  
lines, i can send them along.


More information about the Openmcl-devel mailing list