Open tmsnvd opened 9 years ago
Done few experiments with dmd versions, .066 and .067 does not build, .065 works fine
On 8/30/2014 8:32 AM, topazas wrote:
Hello,
just downloaded with dub this package, but build failed with multiple unit test errors: win7, latest d2 compiler.
Tomas@BITIKZYZ /e/D/workspace/test1 $ dub Building eris 0.0.1 configuration "library", build type debug. Running dmd... C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2746): Error: cannot have const out parameter of type const(Decimal!(9, 99, cast(Rounding)1)) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2643): Error: None of the overloads of 'payload' are callable using argument types (ushort) const, candidates are: C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(481): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.payload() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(490): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.payload(const(ushort) value) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1466): Error: template instance eris.decimal.arithmetic.setInvalidFlag!(const(Decimal!(9, 99, cast(Rounding)1))) error instantiating C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(451): instantiated from here: add!(const(Decimal!(9, 99, cast(Rounding)1))) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(1261): instantiated from here: nextPlus!(Decimal!(9, 99, cast(Rounding)1)) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(39): instantiated from here: Decimal!(9, 99, cast(Rounding)1) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1483): Error: template eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.opAssign cannot deduce function from argument types !()(const(Decimal!(9, 99, cast(Rounding)1))) const, candidates are: C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(359): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.opAssign(T : Decimal!(9, 99, cast(Rounding)1))(in T that) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(368): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.opAssign(T : ExtendedInt)(in T that) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(374): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.opAssign(T : long)(in T that) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(379): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.opAssign(T : real)(in T that) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(384): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.opAssign(T : string)(in T that) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1485): Error: None of the overloads of 'exponent' are callable using argument types (int) const, candidates are: C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(453): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(461): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent(int expo) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1487): Error: None of the overloads of 'sign' are callable using argument types (bool) const, candidates are:Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(374): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.opAssign C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(514): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.sign() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(520): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.sign(bool value) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1503): Error: None of the overloads of 'coefficient' are callable using argument types (ExtendedInt) const, candidates are:pData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(384): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.opAssign C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(468): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coefficient() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(474): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coefficient(ExtendedInt mant) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1504): Error: None of the overloads of 'sign' are callable using argument types (bool) const, candidates are:Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(453): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(514): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.sign() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(520): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.sign(bool value) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1509): Error: None of the overloads of 'coefficient' are callable using argument types (ExtendedInt) const, candidates are:pData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1487): Error: None of the overloads of 'sign' are callable using argument types C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(468): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coefficient() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(474): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coefficient(ExtendedInt mant) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1510): Error: None of the overloads of 'sign' are callable using argument types (bool) const, candidates are:alue) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(514): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.sign()nt C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(520): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.sign(bool value) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1513): Error: None of the overloads of 'coefficient' are callable using argument types (ExtendedInt) const, candidates are: C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(468): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coefficient() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(474): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coefficient(ExtendedInt mant) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1514): Error: None of the overloads of 'sign' are callable using argument types (bool) const, candidates are:ol) const, candidates are: C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(514): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.sign() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(520): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.sign(bool value) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1517): Error: cannot modify const expression sum.digits C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1518): Error: None of the overloads of 'exponent' are callable using argument types (int) const, candidates are: (ExtendedInt) const, candidates are: C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(453): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(461): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent(int expo) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2358): Error: None of the overloads of 'coefficient' are callable using argument types (ExtendedInt) const, candidates are:ant) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(468): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coefficient() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(474): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coefficient(ExtendedInt mant) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2359): Error: None of the overloads of 'exponent' are callable using argument types (int) const, candidates are:rs\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(520): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.sign(boo C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(453): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(461): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent(int expo) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2362): Error: None of the overloads of 'coefficient' are callable using argument types (ExtendedInt) const, candidates are:pData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(468): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coeffici C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(468): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coefficient() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(474): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coefficient(ExtendedInt mant) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2363): Error: None of the overloads of 'exponent' are callable using argument types (int) const, candidates are:rs\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(1514): Error: None of the overloads of 'sign' are callable using argument types C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(453): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(461): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent(int expo) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(612): Error: template instance eris.decimal.arithmetic.alignOps!(const(Decimal!(9, 99, cast(Rounding)1))) error instantiating C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(967): instantiated from here: compare!(const(Decimal!(9, 99, cast(Rounding)1))) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(452): instantiated from here: opCmp!(Decimal!(9, 99, cast(Rounding)1)) ty C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(1261): instantiated from here: nextPlus!(Decimal!(9, 99, cast(Rounding)1)) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(39): instantiated from here: Decimal!(9, 99, cast(Rounding)1)ecimal.exponent C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2746): Error: cannot have const out parameter of type const(Decimal!(9, 99, cast(Rounding)1)) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(129): Error: None of the overloads of 'sign' are callable using argument types (bool) const, candidates are:nt expo) FAIL C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1.dub\build\library-debug-windows-x86-dmd-870CB0A0B8CA469BA20A1E41CC71D70C\ eris staticLibraryargument Error executing command run: dmd failed with exit code 1. C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(468): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coeffici ent() Tomas@BITIKZYZ /e/D/workspace/test1packages\eris-0.0.1\eris\decimal\decimal.d(474): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coeffici $ t(ExtendedInt mant) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2359): Error: None of the overloads of 'exponent' are callable using argument ty pes (int) const, candidates are: C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(453): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent () C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(461): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent (int expo) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2362): Error: None of the overloads of 'coefficient' are callable using argument types (ExtendedInt) const, candidates are: C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(468): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coeffici ent() C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(474): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.coeffici ent(ExtendedInt mant) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2363): Error: None of the overloads of 'exponent' are callable using argument ty pes (int) const, candidates are: C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(453): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent () C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(461): eris.decimal.decimal.Decimal!(9, 99, cast(Rounding)1).Decimal.exponent (int expo) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(612): Error: template instance eris.decimal.arithmetic.alignOps!(const(Decimal!( 9, 99, cast(Rounding)1))) error instantiating C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(967): instantiated from here: compare!(const(Decimal!(9, 99, cast(Rounding)1 ))) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(452): instantiated from here: opCmp!(Decimal!(9, 99, cast(Rounding)1)) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(1261): instantiated from here: nextPlus!(Decimal!(9, 99, cast(Rounding)1)) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\decimal.d(39): instantiated from here: Decimal!(9, 99, cast(Rounding)1) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(2746): Error: cannot have const out parameter of type const(Decimal!(9, 99, cast (Rounding)1)) C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1\eris\decimal\arithmetic.d(129): Error: None of the overloads of 'sign' are callable using argument types ( bool) const, candidates are: FAIL C:\Users\Tomas\AppData\Roaming\dub\packages\eris-0.0.1.dub\build\library-debug-windows-x86-dmd-870CB0A0B8CA469BA20A1E41CC71D70C\ eris staticLibrary Error executing command run: dmd failed with exit code 1. — Reply to this email directly or view it on GitHub https://github.com/andersonpd/eris/issues/2.
These errors are due to a bug in the DMD 2.066 release.
See http://forum.dlang.org/thread/tbbrawedzxyedrxqffuh@forum.dlang.org or https://issues.dlang.org/show_bug.cgi?id=13294
DMD 2.066.0-b5 is the last working version. I believe the problem is fixed in DMD v2.067.0-b1 but I haven't tested it myself yet.
Paul
Have tested now, it is not fixed.
Hello,
just downloaded with dub this package, but build failed with multiple unit test errors: win7, latest d2 compiler.