[Issue 21447] New: Undocumented MS linker error LNK1377

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 2 15:38:27 UTC 2020


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

          Issue ID: 21447
           Summary: Undocumented MS linker error LNK1377
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: kinke at gmx.net

Trying to link a huge project compiled with DMD v2.094.2 for Win64 yields:

extra.lib(mutation_bb3e_d85.obj) : fatal error LNK1377:
'_D8kaleidic3sil3std5extra5chart6ggplot4Plot4saveMFAyaiiZv' symbol not found in
object. The containing library is corrupt.

Note that this isn't the usual LNK2019 ('unresolved external symbol ...
referenced in function ...'). Googling 'LNK1377' only yields 28 (unrelated)
results. Compiling with LDC v1.24.0 works fine.

Additionally, the symbol *is* defined in that extra.lib. `dumpbin /symbols
extra.lib`:

017 00000000 UNDEF  notype ()    External     |
_D8kaleidic3sil3std5extra5chart6ggplot4Plot4saveMFAyaiiZv
...
017 00000000 UNDEF  notype ()    External     |
_D8kaleidic3sil3std5extra5chart6ggplot4Plot4saveMFAyaiiZv
...
085 00000000 SECTB  notype ()    External     |
_D8kaleidic3sil3std5extra5chart6ggplot4Plot4saveMFAyaiiZv
086 00000000 SECTC  notype       Static       |
$unwind$_D8kaleidic3sil3std5extra5chart6ggplot4Plot4saveMFAyaiiZv
087 00000000 SECTD  notype       Static       |
$pdata$_D8kaleidic3sil3std5extra5chart6ggplot4Plot4saveMFAyaiiZv

To me, 'symbol not found in object' sounds like the linker expects the symbol
to be defined in the same object file.

Unfortunately I can't really provide a testcase, not even binary artifacts -
the lib is huge (~288 MB), the dumpbin output >3M lines...

--


More information about the Digitalmars-d-bugs mailing list