[Issue 22645] Linking fails with fatal error LNK1318: Unexpected PDB-error: OK (0) ""

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 3 13:08:29 UTC 2022


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

--- Comment #2 from simon.vanbernem at yahoo.de ---
I can try to create a minimal example, but tbh I don't have a lot of hope of
this reproducing:

Just using the same flags on a simple program doesn't repro. Having different
objs in the error on each run seems like there is some parallelism involved,
and the fact that it worked (sometimes) after a version upgrade (and now also 2
times after using ldc for a while 2) sounds like the compiler is caching bad
state that causes the issue. So even if I sent you the entire project, what are
the chances of having an issue with parallelism and caching behaviour repro for
other people? It doesn't even repro for me for the same code all the time.

I hoped the error could be diagnosed somewhat easily without a repro, because
the PDB-Error here is 0 and the error message is just empty. That sounds to me
like some part of the linker uses something other than this error code to
diagnose an error, but that something is not enough information to determine
there is an error, so the linker exits even though there is no PDB-error.

If you think there is value to it I can continue to try to find a minimal
example or send you the projects, but I personally hoped that inspecting the
way PDB errors are handled might already yield something.

--


More information about the Digitalmars-d-bugs mailing list