GNU bug report logs - #19019
Guile improperly assumes 'long' is the same size as pointers

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Mark H Weaver <mhw@HIDDEN>; merged with #22406; dated Tue, 11 Nov 2014 16:29:02 UTC; Maintainer for guile is bug-guile@HIDDEN.
Merged 19019 22406. Request was from Andy Wingo <wingo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 19019 <at> debbugs.gnu.org:


Received: (at 19019) by debbugs.gnu.org; 22 Jun 2016 11:34:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 22 07:34:18 2016
Received: from localhost ([127.0.0.1]:50401 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bFgQE-00059q-3g
	for submit <at> debbugs.gnu.org; Wed, 22 Jun 2016 07:34:18 -0400
Received: from pb-sasl1.pobox.com ([64.147.108.66]:53451
 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <wingo@HIDDEN>) id 1bFgQC-00059e-10
 for 19019 <at> debbugs.gnu.org; Wed, 22 Jun 2016 07:34:16 -0400
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1])
 by pb-sasl1.pobox.com (Postfix) with ESMTP id 8A79C1BAF1
 for <19019 <at> debbugs.gnu.org>; Wed, 22 Jun 2016 07:34:14 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to
 :subject:date:in-reply-to:message-id:mime-version:content-type;
 s=sasl; bh=6yhUdMk8N6K11EI5a4wy3vsem0Q=; b=VxnK1y/eb+2iPdDGE/5E
 J/Gf5DU7pcH7iqYKYqsG3xI94nuIaoQN60GfNRzki/pmIlVV73JL/i5HRu5WeGMu
 mCI/mt8EAoQEsUkqSGf8gAL1/uzx/l2CSbMGm8IrLsoTCkVucXTePD3xaU8Lw+/w
 1sSqj3zeelKmHIZpL4gpJcQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject
 :date:in-reply-to:message-id:mime-version:content-type; q=dns;
 s=sasl; b=qnJokc0Hx4Rm9+QTCXWaocNy8DlECb4IgLj0HTyjk2PrJB0zYuvQD
 RSC1k8Rq3JLOvGpCXCiDmmjm26tGtLgI6NrsEICMq5h/VhMrsM9R3XwQ3FgCi2uM
 PFiJDgxI1QUzsE6HIGVBbL3leuNlmscR9rrPjDJh95eFapWn3s1OMs=
Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1])
 by pb-sasl1.pobox.com (Postfix) with ESMTP id 4FF381BAEE
 for <19019 <at> debbugs.gnu.org>; Wed, 22 Jun 2016 07:34:13 -0400 (EDT)
Received: from clucks (unknown [88.160.190.192])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 878281BAED
 for <19019 <at> debbugs.gnu.org>; Wed, 22 Jun 2016 07:34:12 -0400 (EDT)
From: Andy Wingo <wingo@HIDDEN>
To: bug#19019 <19019 <at> debbugs.gnu.org>
Subject: Re: Status: Guile improperly assumes 'long' is the same size as
 pointers
Date: Wed, 22 Jun 2016 13:34:05 +0200
In-Reply-To: bug's message of "Wed\, 22 Jun 2016 11\:28\:53 +0000"
Message-ID: <87d1n9tq36.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Pobox-Relay-ID: 3E3ACBC4-386D-11E6-B2C8-C1836462E9F6-02397024!pb-sasl1.pobox.com
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: 19019
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)

merge 19019 22406
thanks




Information forwarded to bug-guile@HIDDEN:
bug#19019; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Nov 2014 16:28:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 11 11:28:20 2014
Received: from localhost ([127.0.0.1]:57493 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XoEIm-0004ko-51
	for submit <at> debbugs.gnu.org; Tue, 11 Nov 2014 11:28:20 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54767)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <mhw@HIDDEN>) id 1XoEIk-0004kh-Pe
 for submit <at> debbugs.gnu.org; Tue, 11 Nov 2014 11:28:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mhw@HIDDEN>) id 1XoEId-0001bp-LE
 for submit <at> debbugs.gnu.org; Tue, 11 Nov 2014 11:28:18 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41263)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mhw@HIDDEN>) id 1XoEId-0001bl-IZ
 for submit <at> debbugs.gnu.org; Tue, 11 Nov 2014 11:28:11 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56426)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mhw@HIDDEN>) id 1XoEIX-0000O8-Bz
 for bug-guile@HIDDEN; Tue, 11 Nov 2014 11:28:11 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mhw@HIDDEN>) id 1XoEIR-0001Zy-CN
 for bug-guile@HIDDEN; Tue, 11 Nov 2014 11:28:05 -0500
Received: from world.peace.net ([96.39.62.75]:43033)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mhw@HIDDEN>) id 1XoEIR-0001Zr-8n
 for bug-guile@HIDDEN; Tue, 11 Nov 2014 11:27:59 -0500
Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23]
 helo=yeeloong.lan)
 by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.72) (envelope-from <mhw@HIDDEN>)
 id 1XoEIK-0001ai-FY; Tue, 11 Nov 2014 11:27:52 -0500
From: Mark H Weaver <mhw@HIDDEN>
To: bug-guile@HIDDEN
Subject: Guile improperly assumes 'long' is the same size as pointers
Date: Tue, 11 Nov 2014 11:26:41 -0500
Message-ID: <87oasditz2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Forwarded from guile-user:

> Date: Mon, 10 Nov 2014 12:44:55 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> Subject: Re: Unable to compile Guile
> To: jeremy chen <yngccc@HIDDEN>
> Cc: guile-user@HIDDEN
> 
>> Date: Sun, 9 Nov 2014 23:30:07 -0500
>> From: jeremy chen <yngccc@HIDDEN>
>> 
>> Hi, I am trying to compile guile on windows with Mingw-w64.
>> The file libguile/numbers.c signal an error in this function:
>> 
>> static SCM
>> scm_i_inum2big (scm_t_inum x)
>> {
>> /* Return a newly created bignum initialized to X. */
>> SCM z = make_bignum ();
>> #if SIZEOF_VOID_P == SIZEOF_LONG
>> mpz_init_set_si (SCM_I_BIG_MPZ (z), x);
>> #else
>> /* Note that in this case, you'll also have to check all mpz_*_ui and
>> mpz_*_si invocations in Guile. */
>> #error creation of mpz not implemented for this inum size
>> #endif
>> return z;
>> }
>> 
>> sizeof(void*) is 8 and sizeof(long) is 4 on my machine.
>> Anyway to get around this? Thanks.
> 
> This is a bug in Guile: it assumes the LP64 data model, where both
> 'long' and a pointer are 64-bit wide.  But 64-bit Windows uses the
> LLP64 model, where 'long' is a 32-bit data type, and the 64-bit
> integer data type is 'long long' or '__int64'.
> 
> You need to fix Guile to support the LLP64 model, at least in this
> module, and probably elsewhere as well.




Acknowledgement sent to Mark H Weaver <mhw@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#19019; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 22 Jun 2016 13:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.