Bug 17095 – Have issues with std.bigint on Ubuntu 32-bit
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2017-01-16T05:59:12Z
Last change time
2020-03-21T03:56:34Z
Assigned to
No Owner
Creator
Virgil
Comments
Comment #0 by virgil_lam — 2017-01-16T05:59:12Z
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 by b2.temp — 2018-01-14T18:20:36Z
*** This issue has been marked as a duplicate of issue 14767 ***