From: SourceForge.net <no...@so...> - 2007-07-01 17:51:51
|
Bugs item #1607416, was opened at 2006-12-02 13:57 Message generated for change (Comment added) made by remlali You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=1607416&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: clisp Group: build problems Status: Open Resolution: None Priority: 1 Private: No Submitted By: Larry Liimatainen (remlali) Assigned to: Nobody/Anonymous (nobody) Summary: general build on hpux 11.11 parisc Initial Comment: Hi, My ambition is to keep an track of the build procedure on hpux 11.11 parisc, that doesn't work today with clisp. I hope to annotate this bug ticket with all relevant info as soon as possible. As an apertif, lets start with a simple gcc problem: Currently it stops at this: The compile halted when compiling malloc/gmalloc.c. The lines 240 and 360 differ at: http://clisp.cvs.sourceforge.net/clisp/clisp/src/malloc/gmalloc.c?view=markup I made the lines 240 and 360 be equal to: __ptr_t (*__morecore) PP ((ptrdiff_t __size)) = __default_morecore; I dont know what I'm doing but atleast the compile went through. Now instead I got an bus error when the interpreter tried to cold boot. ---------------------------------------------------------------------- >Comment By: Larry Liimatainen (remlali) Date: 2007-07-01 17:51 Message: Logged In: YES user_id=188676 Originator: YES > does "42" get printed? yes. ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2007-06-20 16:41 Message: Logged In: YES user_id=5735 Originator: NO try this: $ cat > z.c <<EOF #include <stdio.h> int global_var = 42; void main (void) { printf("%d\n",global_var); } EOF $ gcc z.c -o z $ ./z does "42" get printed? ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2007-06-20 13:54 Message: Logged In: YES user_id=5735 Originator: NO gmalloc prototype has been fixed in the CVS, thank. does the back_trace reinit actually make a difference? ---------------------------------------------------------------------- Comment By: Larry Liimatainen (remlali) Date: 2006-12-22 19:06 Message: Logged In: YES user_id=188676 Originator: YES clisp builds upto ANSI CL, ie no modules yet. apply these workarounds: in src/spvw.d 3269 # The argv_* variables now have their final values. 3270 # Analyze the environment variables determining the locale. 3271 # Deal with LC_CTYPE. + back_trace = NULL; 3272 init_ctype(); It seems back_trace is initialized to NULL when declared but it has no effect. Instead it contains some garbage, bt.bt_next == bt.bt_function for example. also change src/malloc/gmalloc.c: change line 360 to use __malloc_ptrdiff_t. This made the compilation through all but modules, atleast an full ANSI CL clisp can be started and seems to be working and running ok. ---------------------------------------------------------------------- Comment By: Larry Liimatainen (remlali) Date: 2006-12-09 12:05 Message: Logged In: YES user_id=188676 Originator: YES changed gmalloc and runned gdb, see attachment.. will provide more info as needed. ---------------------------------------------------------------------- Comment By: Larry Liimatainen (remlali) Date: 2006-12-09 12:03 Message: Logged In: YES user_id=188676 Originator: YES File Added: clisp-debug.txt ---------------------------------------------------------------------- Comment By: Jörg Höhle (hoehle) Date: 2006-12-07 11:20 Message: Logged In: YES user_id=377168 Originator: NO Looking at gmalloc.c, it looks like you should have done the opposite: change line 360 to use __malloc_ptrdiff_t. But that will probably not help you with sigsegv or sigbus when running lisp.run to build lispimag.mem. For that you need to provide more information and a gdb backtrace. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=1607416&group_id=1355 |