[Ecls-list] Cross-compilation status update

Juan Jose Garcia-Ripoll worm at arrakis.es
Fri Sep 12 10:05:13 UTC 2003


On Friday 12 September 2003 17:34, Eugene Zaikonnikov wrote:
> (Sorry for long delay: I've been preparing my pet project for release
> lately.)
> OK, now I got past that (for some reason, in build/compile.lisp at
> (sbt::operate-on-system cmp #-dlopen :library #+dlopen
> :shared-library) dlopen feature was set), and I finally got an
> executable :)
>
> However, it (surprise) segfaults when attempted to run on the
> device. I've attached strace output; could you point from that on the
> problems that might have occurred?
>
brk(0x10237000)                         = 0x10237000
time(NULL)                              = 1063380466
time(NULL)                              = 1063380466
brk(0x10247000)                         = 0x10247000
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(3, 0), ...}) = 0
mmap(0, 4238648, 0x92c08a8, 0 /* MAP_??? 
*/|MAP_FIXED|MAP_NORESERVE|MAP_GROWSDOWN|MAP_DENYWRITE|MAP_EXECUTABLE|0x10040300, 
-1, 0x1004770c) = 0x2aaab000
ioctl(1, TIOCNXCL, {B9600 opost isig icanon echo ...}) = 0
write(1, "\n", 1
)                       = 1
write(1, "Unrecoverable error: \nLisp init"..., 49Unrecoverable error:

Hi Eugene,

it's good news that somebody is finally working on the cross-compilation part. 
As for the segfault, it is difficult to guess it from the strace. Are you 
using the old  garbage collector?

Also, if the compiler is linked in, it will try to locate a file 
(${libdir}/ecl/sysfun.lsp). If your machine cannot reach the files ECL needs, 
try removing the compiler from the code by commenting out the :lisp-files 
line in build/compile.lsp:
(compiler::build-program
 #+(or cross stage1) "ecl"
 #-(or cross stage1) "ecl2"
;; :lisp-files '(#+(and (not dlopen) WANTS-CMP) cmp)
 :ld-flags '("-L./"))

Are there no remote debugging possibilities in this machine? If there are, 
then I could help you in debugging the error. But only after the 18th, 
because I have to travel tomorrow to another conference.

Best regards,

Juanjo




More information about the ecl-devel mailing list