From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Peter O'Gorman" Newsgroups: gmane.lisp.guile.bugs Subject: Re: guile-1.8.5 test failures Date: Sun, 8 Jun 2008 10:26:38 -0500 Message-ID: <20080608152638.GE27383@tw.il.thewrittenword.com> References: <20080529214535.GA513@tw.il.thewrittenword.com> <8763sr7h18.fsf@gnu.org> <20080605030704.GB27383@tw.il.thewrittenword.com> 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: ger.gmane.org 1212939059 8895 80.91.229.12 (8 Jun 2008 15:30:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Jun 2008 15:30:59 +0000 (UTC) Cc: Ludovic =?iso-8859-1?Q?Court=E8s?= To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Jun 08 17:31:41 2008 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K5Mrk-0003Jl-DJ for guile-bugs@m.gmane.org; Sun, 08 Jun 2008 17:31:32 +0200 Original-Received: from localhost ([127.0.0.1]:52498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5Mqx-0002mV-8P for guile-bugs@m.gmane.org; Sun, 08 Jun 2008 11:30:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5Mqt-0002mI-QK for bug-guile@gnu.org; Sun, 08 Jun 2008 11:30:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5Mqs-0002m6-9Z for bug-guile@gnu.org; Sun, 08 Jun 2008 11:30:39 -0400 Original-Received: from [199.232.76.173] (port=39878 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5Mqs-0002m3-4V for bug-guile@gnu.org; Sun, 08 Jun 2008 11:30:38 -0400 Original-Received: from mail1.thewrittenword.com ([67.95.107.114]:53624) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K5Mqo-00027F-4A; Sun, 08 Jun 2008 11:30:34 -0400 Original-Received: from mail1.il.thewrittenword.com (emma-internal-gw.il.thewrittenword.com [192.168.13.25]) by mail1.thewrittenword.com (Postfix) with ESMTP id 2A59C5C32; Sun, 8 Jun 2008 15:32:01 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.4.4 mail1.thewrittenword.com 2A59C5C32 Original-Received: from tw.pogma.org (danger-gw.il.thewrittenword.com [192.168.1.254]) by mail1.il.thewrittenword.com (Postfix) with ESMTP id 50153353; Sun, 8 Jun 2008 15:30:29 +0000 (UTC) Original-Received: from tw.pogma.org (localhost.localdomain [127.0.0.1]) by tw.pogma.org (8.14.2/8.14.2) with ESMTP id m58FQccG028597; Sun, 8 Jun 2008 10:26:38 -0500 Original-Received: (from pogma@localhost) by tw.pogma.org (8.14.2/8.14.2/Submit) id m58FQcmC028596; Sun, 8 Jun 2008 10:26:38 -0500 X-Authentication-Warning: tw.pogma.org: pogma set sender to bug-guile@mlists.thewrittenword.com using -f Content-Disposition: inline In-Reply-To: <20080605030704.GB27383@tw.il.thewrittenword.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on maetel.il.thewrittenword.com X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3896 Archived-At: On Wed, Jun 04, 2008 at 10:07:04PM -0500, Peter O'Gorman wrote: > On Mon, Jun 02, 2008 at 09:50:27PM +0200, Ludovic Court=E8s wrote: > > > 3. Fix build error on Tru64 Unix with the DEC compiler, which does = not like > > > the non-constant expression in case: statements, and on irix whi= ch does > > > not like the non-constant expression in the initializers in read= .c and > > > print.c. (yes, I know - yuck). > >=20 > > But these are constants! >=20 > I'll look into this again. Ok, turned out that the compiler was complaining about the 0?0=3D0:x construct, it looked at the 0=3D0 and decided that it was not okay to hav= e that as an argument to the case statement. It was easy to figure that out once I tried compiling preprocessed source, the caret pointed right at the "0=3D" and said: In this statement, "0=3D0" is not constant, but occurs in a context that = requires a constant expression. (needconstexpr) Attempting with -DSCM_DEBUG_TYPING_STRICTNESS=3D0 also failed, complainin= g about int being the expected return type, but void* being passed. Peter Index: libguile/tags.h =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=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 --- libguile/tags.h.orig 2008-06-06 15:43:41.000000000 +0000 +++ libguile/tags.h 2008-06-06 16:18:14.000000000 +0000 @@ -114,7 +114,17 @@ compiled, and does generate a warning when used with the wrong pointer type. */ + /* The Tru64 Unix compiler and HP compiler have issues with case + * (0?0=3D0:x), the compilers see 0=3D0 and dislike the non-constant + * expression in a case statement, so for them no type-checking is + * performed. Note that the case to scm_t_bits is required, if we just + * define SCM_UNPACK(x) (x) we get errors about returning a pointer + * when an int was expected */ +#if defined __DECC || defined __HP_cc +# define SCM_UNPACK(x) (scm_t_bits)(x) +#else # define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=3D(x)): x)) +#endif =20 /* There is no typechecking on SCM_PACK, since all kinds of types