<div class="gmail_quote">On Fri, May 4, 2012 at 5:03 AM, Luís Oliveira <span dir="ltr"><<a href="mailto:luismbo@gmail.com" target="_blank">luismbo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Fri, May 4, 2012 at 4:01 AM, Liam Healy <<a href="mailto:lnp@healy.washington.dc.us">lnp@healy.washington.dc.us</a>> wrote:<br>
> I cannot load cffi-tests (from the master branch).  I am on Ubuntu 11.10 amd64.  I can't even make sense of what the error is; it can't compile libtest.c?<br>
<br>
</div>(asdf:load-system :cffi-tests :verbose t) should give you more<br>
information. Alternatively, cd into to tests/ and run make.<br></blockquote><div><br></div><div>Thanks Luis.</div><div><br></div><div> This is SBCL 1.0.53.76-0dda509, an implementation of ANSI Common Lisp.</div><div>More information about SBCL is available at <<a href="http://www.sbcl.org/">http://www.sbcl.org/</a>>.</div>

<div><br></div><div>SBCL is free software, provided as is, with absolutely no warranty.</div><div>It is mostly in the public domain; some portions are provided under</div><div>BSD-style licenses.  See the CREDITS and COPYING files in the</div>

<div>distribution for more information.</div><div>CL-USER(1): (asdf:load-system :cffi-tests :verbose t) </div><div><br></div><div>; Loading system definition from /home/healy/languages/lisp/cffi/cffi-tests.asd</div><div>
; into #<PACKAGE "ASDF0"></div>
<div>; Registering #<SYSTEM "cffi-tests"></div><div>; Loading system definition from</div><div>; /home/healy/languages/lisp/quicklisp/dists/quicklisp/software/rt-20101006-git/rt.asd</div><div>; into #<PACKAGE "ASDF0"></div>

<div>; Registering #<SYSTEM "rt"></div><div>; Loading system definition from</div><div>; /home/healy/languages/lisp/quicklisp/dists/quicklisp/software/bordeaux-threads-0.8.1/bordeaux-threads.asd</div><div>

; into #<PACKAGE "ASDF0"></div><div>; Registering #<SYSTEM "bordeaux-threads"></div><div>; Loading system definition from /home/healy/languages/lisp/cffi/cffi.asd into</div><div>; #<PACKAGE "ASDF0"></div>

<div>; Registering #<SYSTEM "cffi"></div><div>; Loading system definition from</div><div>; /home/healy/languages/lisp/quicklisp/dists/quicklisp/software/babel-20110730-git/babel.asd</div><div>; into #<PACKAGE "ASDF0"></div>

<div>; Registering #<SYSTEM "babel"></div><div>; $ cd /home/healy/languages/lisp/cffi/tests/; make</div><div>gcc -m32 -o libtest32.so -shared -Wall -std=c99 -pedantic libtest.c</div><div>In file included from /usr/include/features.h:378,</div>

<div>                 from /usr/include/stdio.h:28,</div><div>                 from libtest.c:34:</div><div>/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory</div><div>make: [libtest32.so] Error 1 (ignored)</div>

<div>gcc -m32 -o libtest2_32.so -shared -Wall -std=c99 -pedantic libtest2.c</div><div>/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/libgcc.a when searching for -lgcc</div><div>/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/libgcc.a when searching for -lgcc</div>

<div>/usr/bin/ld: cannot find -lgcc</div><div>collect2: ld returned 1 exit status</div><div>make: *** [libtest2_32.so] Error 1</div><div><br></div><div>debugger invoked on a ASDF:OPERATION-ERROR in thread #<THREAD</div>

<div>                                                       "initial thread" RUNNING</div><div>                                                        {10046491F3}>:</div><div>  Error while invoking #<COMPILE-OP (:VERBOSE T) {1006316F83}> on</div>

<div>  #<C-TEST-LIB "cffi-tests" "tests" "libtest"></div><div><br></div><div>Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.</div><div><br></div><div>restarts (invokable by number or by possibly-abbreviated name):</div>

<div>  0: [RETRY ] Retry compiling #<C-TEST-LIB "cffi-tests" "tests" "libtest">.</div><div>  1: [ACCEPT] Continue, treating</div><div>              compiling #<C-TEST-LIB "cffi-tests" "tests" "libtest"> as having</div>

<div>              been successful.</div><div>  2: [ABORT ] Exit debugger, returning to top level.</div><div><br></div><div>((SB-PCL::FAST-METHOD ASDF:PERFORM</div><div>  (ASDF:COMPILE-OP CFFI-TESTS-SYSTEM::C-TEST-LIB))</div>

<div> #<unavailable argument></div><div> #<unavailable argument></div><div> #<ASDF:COMPILE-OP (:VERBOSE T) {1006316F83}></div><div> #<CFFI-TESTS-SYSTEM::C-TEST-LIB "cffi-tests" "tests" "libtest">)</div>

<div>0] </div><div><br></div><div><br></div><div>I guess this is trying to build a 32-bit version on a 64-bit OS?   (I'm at work now, 64 bit Debian squeeze, but same error as the Ubuntu laptop.)</div><div><br></div><div>

Liam</div></div>