www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - compiler fails with fatal error LNK1318: Unexpected PDB-error: OK (0)

reply Simon <simon.vanbernem yahoo.de> writes:
When compiling my project using v2.098.0 or v2.098.1 on Windows 
10, this error just appeared:

  : fatal error LNK1318: Unerwarteter PDB-Fehler: OK (0) "".
Error: linker exited with status 1318

"Unerwarteter PDB-Fehler" means "Unexpected PDB-error". The next 
3 attempts to compile yielded the following errors:

libucrtd.lib(lseek.obj) : fatal error LNK1318: Unerwarteter 
PDB-Fehler: OK (0) "".
Error: linker exited with status 1318

libucrtd.lib(initcon.obj) : fatal error LNK1318: Unerwarteter 
PDB-Fehler: OK (0) "".
Error: linker exited with status 1318

libucrtd.lib(round.obj) : fatal error LNK1318: Unerwarteter 
PDB-Fehler: OK (0) "".
Error: linker exited with status 1318

The obj file reported seems to pretty much be picked at random. 
In the first error message there simply was no lib/obj mentioned. 
This issue started appearing today, without installing any 
updates (to any program at all). The PC wasn't even shut down 
since yesterday, when everything worked fine. Restarting doesn't 
help, removing all obj files and doing a full rebuild also 
doesn't help (I have obj files built by MSVC that also get 
linked). I was on v2.098.0 before, then upgraded in hopes of 
fixing the issue. The very first compile after upgrading to 
v2.098.1 worked, every consecutive compile after that is broken 
again.
Jan 03 2022
next sibling parent Simon <simon.vanbernem yahoo.de> writes:
Forgot to mention: I'm using DMD, and the Windows 10 is 64 bit.
Jan 03 2022
prev sibling parent reply Simon <simon.vanbernem yahoo.de> writes:
OOOOoops this went into the wrong forum! Sorry! I will repost 
this as a compiler issue, any moderator feel free to delete this 
post.
Jan 03 2022
next sibling parent russhy <russhy__ gmail.com> writes:
On Monday, 3 January 2022 at 09:20:57 UTC, Simon wrote:
 OOOOoops this went into the wrong forum! Sorry! I will repost 
 this as a compiler issue, any moderator feel free to delete 
 this post.
Are you using dub? if the problem appeared over night, then it sounds like a cache issue, probably due to windows antivirus ``dub clean`` and delete the ``.dub`` folder, and see if that works
Jan 03 2022
prev sibling parent frame <frame86 live.com> writes:
On Monday, 3 January 2022 at 09:20:57 UTC, Simon wrote:
 OOOOoops this went into the wrong forum! Sorry! I will repost 
 this as a compiler issue, any moderator feel free to delete 
 this post.
I got a similar issue once if a process (symbol server registry or something) locked the PDB files and the linker wasn't able to update the file but silently ignores it. However, this doesn't smell like a compiler issue. Manually removing all PDB files could help. Those may are cached in some temp folders outside the project too.
Jan 03 2022