[Ecls-list] SI:TOP-LEVEL, stack overflows

2011-07-31 Thread Philipp Marek
Hello everybody,

I'm trying to get an executable via

(c:build-program
#P./a.out
:epilogue-code '(progn (cl-user::main) (quit))
:lisp-files files))

but when I start the executable all I get is

Wrong number of arguments passed to function
#compiled-function SI:TOP-LEVEL.
No restarts available.

and then the REPL is started.

What am I doing wrong?


Furthermore I'd like to ask about the frequent freezes via

;;; Stack overflow.
;;; Jumping to the outermost toplevel prompt

Is that something dependent on my setup, or is that a known ECL problem?


Thank you for your help!


Regards,

Phil



--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] SI:TOP-LEVEL, stack overflows

2011-07-31 Thread Juan Jose Garcia-Ripoll
On Sun, Jul 31, 2011 at 7:19 PM, Philipp Marek phil...@marek.priv.atwrote:

 Hello everybody,

 I'm trying to get an executable via

(c:build-program
#P./a.out
:epilogue-code '(progn (cl-user::main) (quit))
:lisp-files files))

 but when I start the executable all I get is

Wrong number of arguments passed to function
#compiled-function SI:TOP-LEVEL.
No restarts available.


I do not get the same as you. Are you calling TOP-LEVEL from somewhere in
your code?

 (let* ((c::*compile-in-constants* t) (x (compile-file foo :system-p t)))
(c:build-program foo-st :lisp-files (list x) :epilogue-code '(progn
(cl-user::main) (quit
[...]
#Pfoo-st
 (si::system ./foo-st)

HOLA
0

Furthermore I'd like to ask about the frequent freezes via

;;; Stack overflow.
;;; Jumping to the outermost toplevel prompt

 Is that something dependent on my setup, or is that a known ECL problem?


If it was a known problem I would have worked hard to solve it :-) Does it
happen in ECL or in your standalone program? It may be that 1) the stack
limits are too small (See http://ecls.sourceforge.net/new-manual/ch20.html)
or 2) your program has an error and you did not set up a proper handler
around the main routines in your program (lacking an error handler ECL may
get crazy trying to restore from a problem)

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] SI:TOP-LEVEL, stack overflows

2011-07-31 Thread Philipp Marek
Wrong number of arguments passed to function
#compiled-function SI:TOP-LEVEL.
No restarts available
 I do not get the same as you. Are you calling TOP-LEVEL from somewhere in
 your code?
 No, I don't.

 Any ideas what I could look at, to determine the cause?
With e6bb812e38c7d04b32ada6c296a423ea82934fd4 I even get this for ECL itself, 
and the
.eclrc is not done:

$ rm build -rf  ./configure --enable-shared --enable-threads  make
...
;;;   Invoking external command:
;;;   gcc -I. -I/home/.../build/ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -g 
-O2 -fPIC
-D_THREAD_SAFE -Dlinux -I/home/.../src/c -w -c eclinittsZavj.c -o 
eclinittsZavj.o
;;; Note:
;;;   Invoking external command:
;;;   gcc -o bin/ecl -L/home/.../build/ /home/.../build/eclinittsZavj.o -L./
-Wl,--rpath,/usr/local/lib/ libecl.so -lpthread -ldl -lm sed -e
's,@libdir\\@,/usr/local/lib/,' \
-e 's,@includedir\\@,/usr/local/include/,' \
-e 's,~A,/usr/local/lib/,' bin/ecl-config.pre  bin/ecl-config
$ LD_LIBRARY_PATH=/home/.../build/ /home/.../build//bin/ecl -dir 
/home/.../build/
Wrong number of arguments passed to function #compiled-function 
SI:TOP-LEVEL.
No restarts available.
Top level in: #process TOP-LEVEL.


This is on
$ uname -a
Linux cacao 2.6.39-2-amd64 #1 SMP Tue Jul 5 02:51:22 UTC 2011 x86_64 
GNU/Linux




--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] SI:TOP-LEVEL, stack overflows

2011-07-31 Thread Juan Jose Garcia-Ripoll
On Sun, Jul 31, 2011 at 10:45 PM, Philipp Marek phil...@marek.priv.atwrote:

;;;   gcc -o bin/ecl -L/home/.../build/ /home/.../build/eclinittsZavj.o
 -L./
 -Wl,--rpath,/usr/local/lib/ libecl.so -lpthread -ldl -lm sed -e
 's,@libdir\\@,/usr/local/lib/,' \
-e 's,@includedir\\@,/usr/local/include/,' \
-e 's,~A,/usr/local/lib/,' bin/ecl-config.pre  bin/ecl-config
$ LD_LIBRARY_PATH=/home/.../build/ /home/.../build//bin/ecl -dir
 /home/.../build/
 Wrong number of arguments passed to function #compiled-function
 SI:TOP-LEVEL.
 No restarts available.
 Top level in: #process TOP-LEVEL.


A few things: you did not reinstall ECL after building it and since it is
using --rpath I doubt that the change in LD_LIBRARY_PATH had any effect.
Besides this, did you completely your build directory after updating ECL and
finally, why do you say that ECL did not load .eclrc at this point? My
feeling is that all this is due to conflicting versions of the library and
partial rebuilds, but I tend to be proven wrong.

In any case this does not explain the stack overflows during ECL's use of
quicklisp libraries. Would it be possible for you to send me an excerpt of
your .eclrc (by private email)so that I can try to reproduce the sequence of
libraries you loaded?

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list