From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Chris Zheng Newsgroups: gmane.emacs.bugs Subject: bug#34106: 27.0.50; master build failed with MSYS2/MinGW-w64 Date: Thu, 17 Jan 2019 01:28:26 +0800 Message-ID: <20190116172826.GA8756@Kael> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1547659623 7647 195.159.176.226 (16 Jan 2019 17:27:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2019 17:27:03 +0000 (UTC) User-Agent: Mutt/1.11.2 (2019-01-07) To: 34106@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 16 18:26:59 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjoxu-0001r1-T1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jan 2019 18:26:59 +0100 Original-Received: from localhost ([127.0.0.1]:55238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjp01-00076y-MF for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jan 2019 12:29:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjozv-00076m-6v for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:29:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjozu-00043x-Gv for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:29:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjozu-00043o-D1 for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gjozu-0000fF-3S for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chris Zheng Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Jan 2019 17:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34106 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15476597222526 (code B ref -1); Wed, 16 Jan 2019 17:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jan 2019 17:28:42 +0000 Original-Received: from localhost ([127.0.0.1]:33812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjoza-0000eg-GB for submit@debbugs.gnu.org; Wed, 16 Jan 2019 12:28:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46333) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjozZ-0000eW-L1 for submit@debbugs.gnu.org; Wed, 16 Jan 2019 12:28:42 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37737) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gjozU-0003qt-EQ for submit@debbugs.gnu.org; Wed, 16 Jan 2019 12:28:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjozT-0006zf-OB for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:28:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjozT-0003qB-2o for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:28:35 -0500 Original-Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:46061) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjozS-0003p5-Sj for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 12:28:35 -0500 Original-Received: by mail-pl1-x636.google.com with SMTP id a14so3310503plm.12 for ; Wed, 16 Jan 2019 09:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=OV1fYDFFi430zhIe3zU/lzc1o1zJUKVVz9MxHa8FF3M=; b=KdwJxQ6/ArSfuCW7Ca0SbXmOEkW05MVkmaIEDmbnWhPkLaJNLggdm5mX1OnV2VcPXv nzBOjq5oxopshLSg2xkg/zXNw4L/sOYMzjR3/zRHn3ZUvktnrA5TQfczKMMMNbcrrNGJ 7PXyCRNFuzuthekcVf7xzFOnQy4eVqv1J1cexVZaRrMBXubJrPG8C6/aZmz7E3w5T+Xm 9YEOM0NFe3kUjb5NZ2ksdd0561PncSvgnKQuoP6qByoSkDgaJe3WsdkvFOHVGPWJSscf /TSt1D7mtfHmgCuq0VmbBe6B3vChaXFoirPO7I0R/gxO2rMm8njLPTfAdrER2M6xsOsv lWLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=OV1fYDFFi430zhIe3zU/lzc1o1zJUKVVz9MxHa8FF3M=; b=kdZ2/43/yVTb29bndRGhIqjbzBUYgvWgznmRy3xM15nD3IPdGh1hf11CPKwmfVd+78 +CXiNwb41J9BFvm7V9iE3b0uOaIuH0IpPe3ZGLJfELcB/qlduzF9LC9oypeyO8Yc1Hlc KR21bCSu2yVrz5PDPKv8EL653BLPxaybJNiHenRWKLstkGDNCPmNVd3pJpOgCicZjp7W QDalcr53AEt3pQB86uHfVHCFdMRAoZ3WQlistsjlbWwX2gSvijIkaFG+BuW/D49y5bsv mTNfSewqZykOn6B6q8tahsVbg/+3kkZjeCdcpBBZQ0iwHjYpuUZ5NWjBQ4TpTUHc+OAw 9HXg== X-Gm-Message-State: AJcUukeD+nrXd2dSq5w+897PWm/V2wqUhCyesuxHdusnw+kPF03Qbr7L sWnos32uSJLIFt5umUb5zH4vV3sK X-Google-Smtp-Source: ALg8bN7QOkL135bO0Ua1ngzAnlUXBExN584IK58U0KyFNbE8FtEr9kTtW+OWW3p9a/QT7pk+HaZsvQ== X-Received: by 2002:a17:902:d202:: with SMTP id t2mr11100614ply.193.1547659712457; Wed, 16 Jan 2019 09:28:32 -0800 (PST) Original-Received: from Kael (67.230.166.176.16clouds.com. [67.230.166.176]) by smtp.gmail.com with ESMTPSA id t5sm13221949pfb.60.2019.01.16.09.28.30 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Jan 2019 09:28:31 -0800 (PST) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154487 Archived-At: When build master branch under MS-Windows I’m seeing this CC pdumper.o pdumper.c: In function 'dump_cold_bignum': pdumper.c:3447:53: error: conversion from 'size_t' {aka 'long long unsigned int'} to 'mp_size_t' {aka 'long int'} may change value [-Werror=conversion] mp_limb_t limb = mpz_getlimbn (bignum->value, i); cc1.exe: some warnings being treated as errors Because with MSYS2/MinGW-w64 the `long' is 32-bit instead of 64-bit. A explicit cast can fix it. diff --git a/src/pdumper.c b/src/pdumper.c index 3787408e6d..9d5ace6c38 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -3444,7 +3444,7 @@ dump_cold_bignum (struct dump_context *ctx, Lisp_Object object) Fputhash (object, descriptor, ctx->bignum_data); for (size_t i = 0; i < nlimbs; ++i) { - mp_limb_t limb = mpz_getlimbn (bignum->value, i); + mp_limb_t limb = mpz_getlimbn (bignum->value, (mp_size_t) i); dump_write (ctx, &limb, sizeof (limb)); } } Thank you, Chris