From: Elliott S. <ell...@gm...> - 2009-08-17 03:09:07
|
On Sun, Aug 16, 2009 at 7:00 AM, Sam Steingold<sd...@gn...> wrote: > Hi, > >> * Elliott Slaughter <ryyvbggfynhtugre@tznvy.pbz> [2009-08-14 23:15:20 -0700]: >> >> I'm trying to cross compile clisp 2.48 for an armel processor (Nokia >> N810 device), with libffcall from cvs, and libsigsegv 2.6. I get the >> following error: >> >> $ ./configure --without-readline >> --with-libsigsegv-prefix=`pwd`/../libsigsegv-2.6/my-build/ >> --with-libffcall-prefix=`pwd`/../ffcall/my-build/ >> --prefix=`pwd`/my-build --cbc >> [ ... ] >> gcc -I/home/elliott/Desktop/clisp-2.48/../libsigsegv-2.6/my-build//include >> -I/home/elliott/Desktop/clisp-2.48/../ffcall/my-build//include >> -I/home/elliott/Desktop/clisp-2.48/src/gllib -g -O2 -W -Wswitch >> -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type >> -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 >> -falign-functions=4 -DUNICODE -DDYNAMIC_FFI -DNO_READLINE -I. -c >> spvw.c >> In file included from spvw.d:23: >> lispbibl.d:9060: warning: volatile register variables don't work as >> you might wish >> lispbibl.d:9200: warning: register used for two global register variables >> In file included from spvw.d:1002: >> spvw_sigsegv.d: In function `stackoverflow_handler_continuation': >> spvw_sigsegv.d:111: error: structure has no member named `uc_mcontext' >> make: *** [spvw.o] Error 1 >> >> Any assistance would be appreciated. Thanks. >> >> $ gcc --version >> arm-none-linux-gnueabi-gcc (GCC) 3.4.4 (release) (CodeSourcery ARM 2005q3-1) > > please take a look at /usr/include/sigsegv.h which should define > stackoverflow_context_t to be an alias for sigcontext. typedef ucontext_t *stackoverflow_context_t; > then take a look at /usr/include/asm/sigcontext.h (or > /usr/include/bits/sigcontext.h?) - or whatever is used by the > cross-compiler and see how the sigcontext structure is defined. > apparently it somehow lacks the the uc_mcontext slot. I have both /usr/include/asm/sigcontext.h and /usr/include/asm/ucontext.h . I have attached both for you to look at. Actually, I just tried compiling again and now it is complaining about missing a "gregs" slot. gcc -I/home/elliott/Desktop/clisp-arm-build/include -I/home/elliott/Desktop/clisp-2.48/build/gllib -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DUNICODE -DDYNAMIC_FFI -DNO_READLINE -I. -c spvw.c In file included from ../src/spvw.d:23: ../src/lispbibl.d:9060: warning: volatile register variables don't work as you might wish ../src/lispbibl.d:9200: warning: register used for two global register variables In file included from ../src/spvw.d:1002: ../src/spvw_sigsegv.d: In function `stackoverflow_handler_continuation': ../src/spvw_sigsegv.d:111: error: structure has no member named `gregs' -- Elliott Slaughter "Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay |