On Fri, May 4, 2012 at 5:03 AM, Luís Oliveira luismbo@gmail.com wrote:
On Fri, May 4, 2012 at 4:01 AM, Liam Healy lnp@healy.washington.dc.us wrote:
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?
(asdf:load-system :cffi-tests :verbose t) should give you more information. Alternatively, cd into to tests/ and run make.
Thanks Luis.
This is SBCL 1.0.53.76-0dda509, an implementation of ANSI Common Lisp. More information about SBCL is available at http://www.sbcl.org/.
SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. CL-USER(1): (asdf:load-system :cffi-tests :verbose t)
; Loading system definition from /home/healy/languages/lisp/cffi/cffi-tests.asd ; into #<PACKAGE "ASDF0"> ; Registering #<SYSTEM "cffi-tests"> ; Loading system definition from ; /home/healy/languages/lisp/quicklisp/dists/quicklisp/software/rt-20101006-git/rt.asd ; into #<PACKAGE "ASDF0"> ; Registering #<SYSTEM "rt"> ; Loading system definition from ; /home/healy/languages/lisp/quicklisp/dists/quicklisp/software/bordeaux-threads-0.8.1/bordeaux-threads.asd ; into #<PACKAGE "ASDF0"> ; Registering #<SYSTEM "bordeaux-threads"> ; Loading system definition from /home/healy/languages/lisp/cffi/cffi.asd into ; #<PACKAGE "ASDF0"> ; Registering #<SYSTEM "cffi"> ; Loading system definition from ; /home/healy/languages/lisp/quicklisp/dists/quicklisp/software/babel-20110730-git/babel.asd ; into #<PACKAGE "ASDF0"> ; Registering #<SYSTEM "babel"> ; $ cd /home/healy/languages/lisp/cffi/tests/; make gcc -m32 -o libtest32.so -shared -Wall -std=c99 -pedantic libtest.c In file included from /usr/include/features.h:378, from /usr/include/stdio.h:28, from libtest.c:34: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory make: [libtest32.so] Error 1 (ignored) gcc -m32 -o libtest2_32.so -shared -Wall -std=c99 -pedantic libtest2.c /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/libgcc.a when searching for -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc collect2: ld returned 1 exit status make: *** [libtest2_32.so] Error 1
debugger invoked on a ASDF:OPERATION-ERROR in thread #<THREAD "initial thread" RUNNING {10046491F3}>: Error while invoking #<COMPILE-OP (:VERBOSE T) {1006316F83}> on #<C-TEST-LIB "cffi-tests" "tests" "libtest">
Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name): 0: [RETRY ] Retry compiling #<C-TEST-LIB "cffi-tests" "tests" "libtest">. 1: [ACCEPT] Continue, treating compiling #<C-TEST-LIB "cffi-tests" "tests" "libtest"> as having been successful. 2: [ABORT ] Exit debugger, returning to top level.
((SB-PCL::FAST-METHOD ASDF:PERFORM (ASDF:COMPILE-OP CFFI-TESTS-SYSTEM::C-TEST-LIB)) #<unavailable argument> #<unavailable argument> #<ASDF:COMPILE-OP (:VERBOSE T) {1006316F83}> #<CFFI-TESTS-SYSTEM::C-TEST-LIB "cffi-tests" "tests" "libtest">) 0]
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.)
Liam