Hi,
I'm trying to compile dlangide, and it fails when compiling the dependency dlangui. Trying to compile dlangui independently gives the same error message (see below for full stack trace)
As phobos nor dlangui can be broken, it should be something related to wrong installation on my side?, wrong versions of dmd/dub/phobos?
dmd version: DMD64 D Compiler v2.090.0
dub version: DUB version 1.19.0, built on Jan 5 2020
Thanks for any help.
> dub run dlangui
Building package dlangui in /home/aperea/.dub/packages/dlangui-0.9.182/dlangui/
Performing "debug" build using /usr/bin/dmd for x86_64.
dlangui 0.9.182: building configuration "default"...
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/dom/cssparser.d(86,18): Deprecation: union field intValue with default initialization 0 must be before field typeFlagId
/usr/include/dmd/phobos/std/math.d(282,12): Error: variable std.math.floatTraits!(inout(double)).RECIP_EPSILON only parameters or stack based variables can be inout
/usr/include/dmd/phobos/std/math.d(6814,15): Error: template instance std.math.floatTraits!(inout(double)) error instantiating
/usr/include/dmd/phobos/std/format.d(2652,27): instantiated from here: isInfinity!(inout(double))
/usr/include/dmd/phobos/std/format.d(1875,20): instantiated from here: formatValueImpl!(Appender!string, inout(double), char)
/usr/include/dmd/phobos/std/conv.d(1072,16): instantiated from here: formatValue!(Appender!string, inout(double), char)
/usr/include/dmd/phobos/std/conv.d(222,24): instantiated from here: toImpl!(string, inout(double))
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/core/settings.d(501,33): instantiated from here: to!(inout(double))
/usr/include/dmd/phobos/std/format.d(2671,31): Error: template instance std.math.signbit!(inout(double)) error instantiating
/usr/include/dmd/phobos/std/format.d(1875,20): instantiated from here: formatValueImpl!(Appender!string, inout(double), char)
/usr/include/dmd/phobos/std/conv.d(1072,16): instantiated from here: formatValue!(Appender!string, inout(double), char)
/usr/include/dmd/phobos/std/conv.d(222,24): instantiated from here: toImpl!(string, inout(double))
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/core/settings.d(501,33): instantiated from here: to!(inout(double))
/usr/include/dmd/phobos/std/format.d(2709,10): Error: forward reference to inferred return type of function call function () @trusted
{
import core.stdc.stdio : snprintf;
return snprintf(buf2.ptr, buf2.length, sprintfSpec.ptr, fs.width, fs.precision == fs.UNSPECIFIED ? -1 : fs.precision, tval);
}
()
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/dialogs/filedlg.d(377,54): Deprecation: function std.typecons.Nullable!(SysTime).Nullable.get_ is deprecated - Implicit conversion with alias Nullable.get this will be removed after 2.096. Please use .get explicitly.
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/dialogs/filedlg.d(377,63): Deprecation: function std.typecons.Nullable!(SysTime).Nullable.get_ is deprecated - Implicit conversion with alias Nullable.get this will be removed after 2.096. Please use .get explicitly.
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/dialogs/filedlg.d(377,73): Deprecation: function std.typecons.Nullable!(SysTime).Nullable.get_ is deprecated - Implicit conversion with alias Nullable.get this will be removed after 2.096. Please use .get explicitly.
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/dialogs/filedlg.d(377,81): Deprecation: function std.typecons.Nullable!(SysTime).Nullable.get_ is deprecated - Implicit conversion with alias Nullable.get this will be removed after 2.096. Please use .get explicitly.
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/dialogs/filedlg.d(377,90): Deprecation: function std.typecons.Nullable!(SysTime).Nullable.get_ is deprecated - Implicit conversion with alias Nullable.get this will be removed after 2.096. Please use .get explicitly.
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/graphics/ftfonts.d(541,9): Deprecation: foreach: loop index implicitly converted from size_t to int
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/graphics/scene/scene3d.d(123,9): Deprecation: variable res is shadowing variable dlangui.graphics.scene.scene3d.visit.res. Rename the foreach variable.
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/widgets/editors.d(3447,9): Deprecation: foreach: loop index implicitly converted from size_t to int
../../.dub/packages/dlangui-0.9.182/dlangui/src/dlangui/widgets/editors.d(3797,21): Deprecation: foreach: loop index implicitly converted from size_t to int
/usr/bin/dmd failed with exit code 1.
|