Ok, sorry, the previous email was wrong: I was looking at a too old version of CFFI. In the recent versions the code looks fine<br><br> #+long-long<br> (:long-long :long-long "long long")<br> #+long-long<br>
(:unsigned-long-long :unsigned-long-long "unsigned long long")<br><br>but there is a line at the beginning disabling long-long<br><br>(pushnew 'no-long-long *features*)<br><br>I will investigate this further.<br>
<br>Juanjo<br><br><div class="gmail_quote">On Thu, Jul 1, 2010 at 10:31 PM, Juan Jose Garcia-Ripoll <span dir="ltr"><<a href="mailto:juanjose.garciaripoll@googlemail.com">juanjose.garciaripoll@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Sorry I did not answer this question before. I inspected your configuration logs and ecl_long_long_t is defined. Thus :LONG-LONG should be in *features*. If :LONG-LONG is in *features* then the compiler must support this type and ECL indeed does. However, CFFI might not. Indeed if you look at CFFI's sources you will find this:<br>
<br> #+x86-64 (:long-long :long "long long")<br> #+x86-64 (:unsigned-long-long :unsigned-long "unsigned long long")<br><br>which should actually read<br><br> #+:long-long (:long-long :long-long "long long")<br>
#+:long-long (:unsigned-long-long :unsigned-long-long "unsigned long long")<br><br>Juanjo<br><br><div class="gmail_quote"><div class="im">On Sat, Jun 19, 2010 at 9:55 PM, Seth Burleigh <span dir="ltr"><<a href="mailto:seth@tewebs.com" target="_blank">seth@tewebs.com</a>></span> wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I am attempting to use long-long (in iolib, it uses it).<br>
<br>
heres the code that produces the error:<br>
(macroexpand-1 '(CFFI-SYS:%FOREIGN-FUNCALL "lseek64"<br>
(:INT 1 :long-long 2<br>
:INT 1 :long-long)<br>
:CONVENTION<br>
:CDECL<br>
:LIBRARY<br>
:DEFAULT))<br>
<br>
and the expanded form:<br>
<br>
(FFI:C-INLINE ((CFFI-SYS:%FOREIGN-SYMBOL-POINTER "lseek64" NIL) 1 2 1)<br>
(:POINTER-VOID :INT :LONG-LONG :INT)<br>
:LONG-LONG<br>
"((long long (*)(int,long long,int,...))(#0))(#1,#2,#3)"<br>
:ONE-LINER<br>
T<br>
:SIDE-EFFECTS<br>
T)<br>
<br>
<br>
I dont know how ecl determines if long-long is supported, but gcc<br>
definitely supports long-long and im just getting the error<br>
<br>
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=3<br>
;;;<br>
;;; Error:<br>
;;; * Unknown representation type :LONG-LONG<br>
<br>
<br>
Ive looked in the configure script and have found flags to turn on<br>
long-float, uint64_t, but no long-long.<br>
<br>
<br>
------------------------------------------------------------------------------<br>
ThinkGeek and WIRED's GeekDad team up for the Ultimate<br>
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the<br>
lucky parental unit. See the prize list and enter to win:<br>
<a href="http://p.sf.net/sfu/thinkgeek-promo" target="_blank">http://p.sf.net/sfu/thinkgeek-promo</a><br>
_______________________________________________<br>
Ecls-list mailing list<br>
<a href="mailto:Ecls-list@lists.sourceforge.net" target="_blank">Ecls-list@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/ecls-list" target="_blank">https://lists.sourceforge.net/lists/listinfo/ecls-list</a><br>
</blockquote></div></div></div><br><br clear="all"><div class="im"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br></div><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>