D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17095 - Have issues with std.bigint on Ubuntu 32-bit
Summary: Have issues with std.bigint on Ubuntu 32-bit
Status: RESOLVED DUPLICATE of issue 14767
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Linux
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-16 05:59 UTC by Virgil
Modified: 2020-03-21 03:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Virgil 2017-01-16 05:59:12 UTC
Using Ubuntu 14.04, x86 - DMD32 D Compiler v2.072.2

Encountered the following error when trying to compile IP2Location.d codes from 
https://github.com/ip2location/ip2location-d/blob/master/source/ip2location-d/ip2location.d

Error below:

ip2location-d 8.0.3: building configuration "library"...
/usr/include/dmd/phobos/std/internal/math/biguintx86.d(231,14): Error: asm statements cannot be interpreted at compile time
/usr/include/dmd/phobos/std/internal/math/biguintcore.d(1758,52):        called from here: multibyteIncrementAssign(data[0..hi], cast(uint)(y & 4294967295LU))
/usr/include/dmd/phobos/std/internal/math/biguintcore.d(448,40):        called from here: biguintFromDecimal(tmp, s)
/usr/include/dmd/phobos/std/bigint.d(112,40):        called from here: this.data.fromDecimalString(filterBidirectional(codeUnits))
../../../../.dub/packages/ip2location-d-8.0.3/ip2location-d/source/ip2location-d/ip2location.d(78,47):        called from here: BigInt(BigUint([0u]), false).this("340282366920938463463374607431768211455")
dmd failed with exit code 1.


Have tested with Ubuntu 14.04 64-bit and it's working fine.
Comment 1 basile-z 2018-01-14 18:20:36 UTC

*** This issue has been marked as a duplicate of issue 14767 ***