trying to build same code with dub build --compiler=ldc2 leads to:
---
/home/animus/dpath_work/dtk/source/dtk/platforms/sdl_desktop/utils.d(275,51): Error: template `std.string.fromStringz` cannot deduce function from argument types `!()(char[32])`, candidates are:
/usr/lib/ldc/x86_64-redhat-linux-gnu/include/d/std/string.d(222,15): `fromStringz(Char)(return scope inout(Char)* cString)`
To help reducing you can try 1. mocking the C library in D, 2. reproduce the bug with that fake tk. Then you can dustmite the whole.
Also try with older DMD versions, e.g to see if it's a regression. That can help to spot the issue.
Comment #5 by animuspexus — 2022-02-06T17:32:13Z
tried to use dustmade. maybe I use it incorrectly, but it runned for some 5-6 hours and deleted all files in directory and left only dub.json. I runned it like this: `dustmite . 'dub build' > ../dust_log 2>&1` inside of dtk dir.
judging from backtraces I've provided earlier, my guess is what's going on is some circular-recursive interface check. probably, best tactic would be to add some debug printfs into those Semantic.Visitor.visit.ClassDeclaration/Class.Declaration.accept.Visitor functions and probably add some context so those functions could detect if new recursion loop iteration is trying to start. but I don't think I'm good enough to mess with dmd code.
Comment #11 by moonlightsentinel — 2022-04-02T03:27:05Z
(In reply to Alexey from comment #5)
> runned it like this: `dustmite . 'dub build' > ../dust_log 2>&1`
Dustmite expects a command that exits with code 0 iff the error is present in the current iteration - dub build returns code 0 for successful builds.
Comment #12 by dlang-bot — 2023-06-21T09:25:13Z
@RazvanN7 created dlang/dmd pull request #15337 "Fix Issue 22729 - ICE: Invalid array access for invalid interface definition" fixing this issue:
- Fix Issue 22729 - ICE: Invalid array access for invalid interface definition
https://github.com/dlang/dmd/pull/15337
Comment #13 by dlang-bot — 2023-06-21T10:36:18Z
dlang/dmd pull request #15337 "Fix Issue 22729 - ICE: Invalid array access for invalid interface definition" was merged into stable:
- b026b3b07f51c678a315adac5e0f42d20e7d6ba6 by RazvanN7:
Fix Issue 22729 - ICE: Invalid array access for invalid interface definition
https://github.com/dlang/dmd/pull/15337
Comment #14 by dlang-bot — 2023-07-02T13:41:39Z
dlang/dmd pull request #15373 "merge stable" was merged into master:
- 9b65d510217a6f011b6a91f519a33f07b0061c17 by Razvan Nitu:
Fix Issue 22729 - ICE: Invalid array access for invalid interface definition (#15337)
https://github.com/dlang/dmd/pull/15373