From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Can't build Emacs on master branch Date: Sun, 19 Aug 2018 10:08:34 -0700 Organization: UCLA Computer Science Department Message-ID: <1f958d58-3d15-243f-dbdd-8bfcaeb4766a@cs.ucla.edu> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------4608CFCCD337E43B342C8296" X-Trace: blaine.gmane.org 1534698411 4574 195.159.176.226 (19 Aug 2018 17:06:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2018 17:06:51 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: Federico , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 19 19:06:47 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frRA4-00012o-KA for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2018 19:06:44 +0200 Original-Received: from localhost ([::1]:43569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frRCB-0004bm-54 for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2018 13:08:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frRC4-0004bg-Sj for emacs-devel@gnu.org; Sun, 19 Aug 2018 13:08:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frRC0-000261-VO for emacs-devel@gnu.org; Sun, 19 Aug 2018 13:08:48 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34014) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1frRC0-00025F-PA for emacs-devel@gnu.org; Sun, 19 Aug 2018 13:08:44 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5821B16081D; Sun, 19 Aug 2018 10:08:43 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id S09-e_mCQPW9; Sun, 19 Aug 2018 10:08:42 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 34F73160885; Sun, 19 Aug 2018 10:08:42 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id UbKilAa_zfYW; Sun, 19 Aug 2018 10:08:42 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.154.30.119]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id E6D0016081D; Sun, 19 Aug 2018 10:08:41 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228691 Archived-At: This is a multi-part message in MIME format. --------------4608CFCCD337E43B342C8296 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Federico wrote: > calc/calc-aent.el:28:1:Error: Arithmetic range error: "expt", 10, 9 Thanks for reporting it, as it didn't happen on the platform I was testing with. I installed the attached, which should fix it. --------------4608CFCCD337E43B342C8296 Content-Type: text/x-patch; name="0001-Fix-expt-signedness-bug-without-wide-int.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Fix-expt-signedness-bug-without-wide-int.patch" >From ecd7a9407711ebe24d7e07d4402a2d66754ee693 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 19 Aug 2018 10:05:41 -0700 Subject: [PATCH] Fix expt signedness bug --without-wide-int Problem reported by Federico in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00619.html * src/floatfns.c (Fexpt): Use TYPE_RANGED_FIXNUMP, not RANGED_FIXNUMP, to fix bug with unsigned comparison on platforms built --without-wide-int. --- src/floatfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/floatfns.c b/src/floatfns.c index 54d068c29e..7c52a0a9a2 100644 --- a/src/floatfns.c +++ b/src/floatfns.c @@ -212,7 +212,7 @@ DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0, if (INTEGERP (arg1) && NATNUMP (arg2)) { unsigned long exp; - if (RANGED_FIXNUMP (0, arg2, ULONG_MAX)) + if (TYPE_RANGED_FIXNUMP (unsigned long, arg2)) exp = XFIXNUM (arg2); else if (MOST_POSITIVE_FIXNUM < ULONG_MAX && BIGNUMP (arg2) && mpz_fits_ulong_p (XBIGNUM (arg2)->value)) -- 2.17.1 --------------4608CFCCD337E43B342C8296--