www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17095] New: Have issues with std.bigint on Ubuntu 32-bit

https://issues.dlang.org/show_bug.cgi?id=17095

          Issue ID: 17095
           Summary: Have issues with std.bigint on Ubuntu 32-bit
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: virgil_lam yahoo.com

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.

--
Jan 15 2017