Use GCC only for specific ARCH

Dimitry Andric dim at FreeBSD.org
Mon Feb 2 07:26:51 UTC 2015


On 10 Dec 2014, at 09:29, Christoph Moench-Tegeder <cmt at burggraben.net> wrote:
> 
> ## Daniel Morante (daniel at morante.net):
> 
>> I have a port that builds fine on a 9.3 amd64, but on 9.3 i386 it fails
>> on this line:
>> 
>> inline int64 GetMaxMoney() { return nBestHeight <= HARDFORK_HEIGHT_1 ?
>> 50000000000 * COIN : 25000000000 * COIN; }
>> 
>> With the following error:
>> 
>> "integer constant is too large for 'long' type"
> 
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150202/768b46a7/attachment.sig>


More information about the freebsd-ports mailing list