CLisp ARMEL Cross Compile Help

View: New views
2 Messages — Rating Filter:   Alert me  

CLisp ARMEL Cross Compile Help

by Scott Shebby :: Rate this Message:

| View Threaded | Show Only this Message

Hello,
 
I have been attempting to cross compile CLisp for the Nokia N810.  Its an ARMEL processor and it runs Maemo 2008 (I've noticed that someone got CLisp compiled for the N800 which has an ARM processor).  Im using Scratchbox Apophis R4, installed according to http://maemo.org/development/sdks/maemo_4_0_chinook_sdk.html.
 
I have compiled using the recommendations in the http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/unix/PLATFORMS
file and am running into this issue here (solving it is beyond my expertise)
 
"If you get an error message during the loading of the first 10 Lisp files,
during the construction of the first .mem file, check the choice of
setjmp/longjmp functions in lispbibl.d."
 
Any help is appreciated.
 
-Scott
 
Here's information related to the build, and a gdb trace.  This build was without ffcall.
 
gcc -DNO_GENERATIONAL_GC -DSAFETY=3 -Igllib -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -DUNICODE -I. -x none spvw.o spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o encoding.o pathname.o stream.o socket.o io.o array.o hashtabl.o list.o package.o record.o weak.o sequence.o charstrg.o debug.o error.o misc.o time.o predtype.o symbol.o lisparit.o i18n.o unixaux.o built.o ariarm.o gllib/uniwidth/width.o gllib/uniname/uniname.o gllib/localcharset.o modules.o /usr/local/lib/libreadline.a -lncurses -ldl -L/usr/local/lib -lsigsegv -lc -o lisp .run
./lisp.run -B . -N locale -E 1:1 -Efile UTF-8 -Eterminal UTF-8 -norc -m 1800KW -x "(and (load \"init.lisp\") (sys::%saveinitmem) (ext::exit)) (ext::exit t)"
qemu: uncaught target signal 11 (Segmentation fault) - exiting
make: *** [interpreted.mem] Error 126
[sbox-CHINOOK_ARMEL: /scratchbox/users/scott/code/clisp/clisp-2.43/src] > ./lisp.run --help
GNU CLISP ( http://clisp.cons.org/) is an ANSI Common Lisp.
Usage: ./lisp.run [options] [lispfile [argument ...]]
When 'lispfile' is given, it is loaded and '*ARGS*' is set
to the list of argument strings. Otherwise, an interactive
read-eval-print loop is entered.
Informative output:
-h, --help - print this help and exit
--version - print the version information
--license - print the licensing information
-help-image - print image-specific help and exit
Memory image selection:
[snipped]

Here's a --with-debug AND --without-ffcall trace:

This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux"...
Breakpoint 1 at 0x40ee0: file eval.d, line 4929.
Breakpoint 2 at 0x3cfac: file eval.d, line 4012.
Breakpoint 3 at 0x376fc: file eval.d, line 2874.
Breakpoint 4 at 0x43714: file eval.d, line 5897.
Breakpoint 5 at 0x17ae4: file spvw_garcol.d, line 2430.
Watchpoint 6: back_trace
Function "register_foreign_inttype" not defined.
Breakpoint 7 at 0x1c3dc: file spvw.d, line 658.
Breakpoint 8 at 0xd890: file spvw.d, line 479.
Breakpoint 9 at 0xd93c: file spvw.d, line 494.
Breakpoint 10 at 0x15fd0c: file error.d, line 349.
Breakpoint 11 at 0x15fc5c: file error.d, line 326.
Breakpoint 12 at 0x160fa4: file errunix.d, line 680.
Breakpoint 13 at 0x161070: file errunix.d, line 695.
Breakpoint 14 at 0x161274: file error.d, line 425.
Breakpoint 15 at 0x161168: file errunix.d , line 723.
Num Type Disp Enb Address What
1 breakpoint keep n 0x00040ee0 in funcall at eval.d:4929
---Type <return> to continue, or q <return> to quit---
xout fun
2 breakpoint keep n 0x0003cfac in apply at eval.d:4012
xout fun
3 breakpoint keep n 0x000376fc in eval at eval.d:2874
xout form
4 breakpoint keep n 0x00043714 in interpret_bytecode_ at eval.d:5897
xout closure
5 breakpoint keep n 0x00017ae4 in gar_col at spvw_garcol.d:2430
6 watchpoint keep n back_trace
silent
printf "%30s: %d %d\n", name_asciz, size, signed_p
continue
7 breakpoint keep y 0x0001c3dc in fehler_notreached at spvw.d:658
8 breakpoint keep y 0x0000d890 in SP_ueber at spvw.d:479
9 breakpoint keep y 0x0000d93c in STACK_ueber at spvw.d:494
10 breakpoint keep y 0x0015fd0c in fehler at error.d:349
11 breakpoint keep y 0x0015fc5c in prepare_error at error.d:326
12 breakpoint keep y 0x00160fa4 in OS_error at errunix.d:680
13 breakpoint keep y 0x00161070 in OS_file_error at errunix.d:695
14 breakpoint keep y 0x00161274 in OS_filestream_error at error.d:425
15 breakpoint keep y 0x00161168 in errno_out_low at errunix.d:723
Function "sigsegv_handler_failed" not defined.
/scratchbox/users/scott/code/clisp/clisp-2.43/src/.gdbinit:172: Error in sourced command file:
No symbol "byteptr" in current context.
(gdb)


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
clisp-devel mailing list
clisp-devel@...
https://lists.sourceforge.net/lists/listinfo/clisp-devel

Re: CLisp ARMEL Cross Compile Help

by Sam Steingold :: Rate this Message:

| View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Scott Shebby wrote:
| Hello,
|
| I have been attempting to cross compile CLisp for the Nokia N810.  Its
| an ARMEL processor and it runs Maemo 2008 (I've noticed that someone got
| CLisp compiled for the N800 which has an ARM processor).  Im using
| Scratchbox Apophis R4, installed according to
| http://maemo.org/development/sdks/maemo_4_0_chinook_sdk.html.
|
| I have compiled using the recommendations in the
| http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/unix/PLATFORMS
| file and am running into this issue here (solving it is beyond my
expertise)
|
| "If you get an error message during the loading of the first 10 Lisp
files,
| during the construction of the first .mem file, check the choice of
| setjmp/longjmp functions in lispbibl.d."
|
| Any help is appreciated.

you did not get as far as loading lisp.
I think you need to start with oint_type_shift et al.
look at lispbibl.d and change the appropriate macros.

Sam.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHi8dkPp1Qsf2qnMcRAhAPAJ92sQ5EpkyXKiQG55zngKoGt1ZT0wCfdo6B
O+kaJy5LTzqs9AYI/l9ue44=
=nBWq
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
clisp-devel mailing list
clisp-devel@...
https://lists.sourceforge.net/lists/listinfo/clisp-devel