From owner-freebsd-ports@FreeBSD.ORG Mon Feb 2 07:26:51 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D6EA927C for ; Mon, 2 Feb 2015 07:26:51 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 90A7E9B9 for ; Mon, 2 Feb 2015 07:26:51 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::6c9a:cbdb:e71:930b] (unknown [IPv6:2001:7b8:3a7:0:6c9a:cbdb:e71:930b]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 4D8825C2E; Mon, 2 Feb 2015 08:26:48 +0100 (CET) Subject: Re: Use GCC only for specific ARCH Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_B4E31A69-7CF3-4AF2-B290-86C2E30A68D1"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b4 (755500a+) From: Dimitry Andric In-Reply-To: <20141210082930.GA92094@elch.exwg.net> Date: Mon, 2 Feb 2015 08:26:43 +0100 Message-Id: References: <5488002D.6080200@morante.net> <20141210082930.GA92094@elch.exwg.net> To: Christoph Moench-Tegeder X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2015 07:26:51 -0000 --Apple-Mail=_B4E31A69-7CF3-4AF2-B290-86C2E30A68D1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 10 Dec 2014, at 09:29, Christoph Moench-Tegeder = wrote: >=20 > ## Daniel Morante (daniel@morante.net): >=20 >> I have a port that builds fine on a 9.3 amd64, but on 9.3 i386 it = fails >> on this line: >>=20 >> inline int64 GetMaxMoney() { return nBestHeight <=3D = HARDFORK_HEIGHT_1 ? >> 50000000000 * COIN : 25000000000 * COIN; } >>=20 >> With the following error: >>=20 >> "integer constant is too large for 'long' type" >=20 > I believe the fix is to make sure those constants are interpreted as > "long long", e.g. by post-fixing LL. Or by using the ugly-looking, but more portable INT64_C() macro. -Dimitry --Apple-Mail=_B4E31A69-7CF3-4AF2-B290-86C2E30A68D1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlTPJrcACgkQsF6jCi4glqMCWwCdFzSfe9jnp0eK4hJzYub478lv c78AnjFdKJYs/Ozr2yjEZaoTaZrHViun =Ka11 -----END PGP SIGNATURE----- --Apple-Mail=_B4E31A69-7CF3-4AF2-B290-86C2E30A68D1--