From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Gaylard Newsgroups: gmane.lisp.guile.devel Subject: Re: [patch] get 1.8.8 to build on Solaris 10u9 Date: Fri, 29 Apr 2011 22:27:21 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1304108857 7691 80.91.229.12 (29 Apr 2011 20:27:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2011 20:27:37 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 29 22:27:33 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QFuHf-0004TH-Jp for guile-devel@m.gmane.org; Fri, 29 Apr 2011 22:27:27 +0200 Original-Received: from localhost ([::1]:57074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFuHf-0000Oe-2M for guile-devel@m.gmane.org; Fri, 29 Apr 2011 16:27:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFuHc-0000OY-2w for guile-devel@gnu.org; Fri, 29 Apr 2011 16:27:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFuHa-0004aR-F9 for guile-devel@gnu.org; Fri, 29 Apr 2011 16:27:24 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:33447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFuHa-0004aG-Cv for guile-devel@gnu.org; Fri, 29 Apr 2011 16:27:22 -0400 Original-Received: by qwa26 with SMTP id 26so2594815qwa.0 for ; Fri, 29 Apr 2011 13:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=SmOExCWs+Fmm19EMY11Ssgrusj2XpuuKk2x3eJEN9eI=; b=IsfyDbbddEnMY6oSzvoZj1gm9V7bgNtTTmpmgLI/418XwgDxPFKDPpq0nlxkjSg6k4 gJTNdOz2pIqymHeKdzZvQ4gezEzjej4a6ntF0JTuq8B7a1AMQBSKzrWVafG42wO7BbaU kSnvi3LNzkGIFzbyUUV6zEMlPKbwmGZ4VTPd4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=ofCQht+IL6LJL+ViFdc83PUD0iSYUihCyNRtUKeVO6d8vWWOT3a+hZ3LM6uMzCTvjv 6QbAM86ag7Qil8auG3zCzgVGyMRMARIvMdWL2auD08GTSQ9pCAm9qhYLb3I1HrXV3eNZ vgcWbP7U59hBWLr+PdSDa8FAXKLOvz5QuRodo= Original-Received: by 10.224.205.132 with SMTP id fq4mr3956521qab.242.1304108841406; Fri, 29 Apr 2011 13:27:21 -0700 (PDT) Original-Received: by 10.229.83.141 with HTTP; Fri, 29 Apr 2011 13:27:21 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: gfzsd4B5P2UHwFEpDFK0XABSrH8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.41 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12383 Archived-At: [resending -- this time to the list. Sorry for the noise.] On Thu, Apr 28, 2011 at 7:55 PM, Andy Wingo wrote: > Hi Andrew, > > On Thu 28 Apr 2011 17:33, Andrew Gaylard writes: > >> With the attached patch, I can build and run guile-1.8.8 on Solaris. >> It seems that the old logic that used USRSTACK no longer works, >> so I took it out. >> >> Tested on Solaris 10u9, on both SPARC64 and x86_64. > > Thanks for the patch. =A0Do you have access to other versions of Solaris? > We would need to test this patch under them as well. > > Andy Hi Andy, I've tested on a Solaris-9 SPARC zone, with these results: gmake[4]: Entering directory `/export/home/andrewg/guile/branches/1.8.8/src/guile-1.8.8/test-suite/stand= alone' PASS: test-system-cmds PASS: test-require-extension PASS: test-bad-identifiers PASS: test-num2integral PASS: test-round PASS: test-gh PASS: test-asmobs PASS: test-list FAIL: test-unwind PASS: test-conversion PASS: test-fast-slot-ref PASS: test-use-srfi PASS: test-scm-c-read PASS: test-scm-take-locale-symbol PASS: test-with-guile-module PASS: test-scm-with-guile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D 1 of 16 tests failed Please report to bug-guile@gnu.org =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D This occurs with and without the patch to guile-1.8.8/libguile/threads.c. Without the patch to guile-1.8.8/libguile/gc_os_dep.c, the build doesn't even complete: gc_os_dep.c: In function `scm_get_stack_base': gc_os_dep.c:1909: error: `USERLIMIT' undeclared (first use in this function= ) gc_os_dep.c:1909: error: (Each undeclared identifier is reported only once gc_os_dep.c:1909: error: for each function it appears in.) So this patch is good to go, I think. I've tried debugging the core left behind by test-unwind by rebuilding with= -g, but I get this far, after which I'm stuck: Core was generated by `/export/home/andrewg/guile/branches/1.8.8/src/guile-1.8.8/test-suite/stand= alone'. Program terminated with signal 11, Segmentation fault. #0 0x7f8bf714 in scm_i_dowinds (to=3D0xfd740, delta=3D-1, turn_func=3D0x7f8b6764 , data=3D0xffbfec10) at dynwind.c:303 303 if (FRAME_P (wind_elt)) (gdb) bt #0 0x7f8bf714 in scm_i_dowinds (to=3D0xfd740, delta=3D-1, turn_func=3D0x7f8b6764 , data=3D0xffbfec10) at dynwind.c:303 #1 0x7f8bf6f0 in scm_i_dowinds (to=3D0xfd750, delta=3D-2, turn_func=3D0x7f8b6764 , data=3D0xffbfec10) at dynwind.c:300 #2 0x7f8b6854 in copy_stack_and_call (continuation=3D0x105668, val=3D0x4, dst=3D0xffbfeec4) at continuations.c:222 #3 0x7f8b698c in scm_dynthrow (cont=3D0xfd758, val=3D0x4) at continuations= .c:275 #4 0x7f8b6758 in grow_stack (cont=3D0x7f9bb6c4, val=3D0xffbfefd0) at continuations.c:187 #5 0x7f8b6974 in scm_dynthrow (cont=3D0x0, val=3D0x0) at continuations.c:2= 71 Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) list 298 SCM wind_key; 299 300 scm_i_dowinds (SCM_CDR (to), 1 + delta, turn_func, data); 301 wind_elt =3D SCM_CAR (to); 302 303 if (FRAME_P (wind_elt)) 304 { 305 if (!FRAME_REWINDABLE_P (wind_elt)) 306 scm_misc_error ("dowinds", 307 "cannot invoke continuation from this context", (gdb) p wind_elt $1 =3D (SCM) 0x0 (gdb) p to $2 =3D (SCM) 0xfd740 I'm pretty sure this is not due to the patch to guile-1.8.8/libguile/thread= s.c, since it happens with and without it. --=20 Andrew