Thread overview
[Issue 21587] Please capture and output failed/error message from "link" step
Jan 28, 2021
Rainer Schuetze
Jan 29, 2021
apham
Jan 29, 2021
Rainer Schuetze
Feb 02, 2021
apham
Jun 05, 2022
Rainer Schuetze
January 28, 2021
https://issues.dlang.org/show_bug.cgi?id=21587

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de

--- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> ---
Compiler and link messages are usually shown. Does the build fail because of some program crashing? What is the output on the command line?

Please provide a concrete example that is showing this behavior.

--
January 29, 2021
https://issues.dlang.org/show_bug.cgi?id=21587

--- Comment #2 from apham <apz28@hotmail.com> ---
Below is sample build output in command line but not found when build in
visuald
The problem is that build with "release" work but fails with "debug"

C:\Development\Projects\DLang\std\xml\xml_new\xml_new\Bug>dmd.exe -debug -w -wi
-m32mscoff -g -gf -gx -dip25 -dip1000 -preview=fixAliasThis -unittest -X
-Xf"xml_new.json" -version=noxmlTraceProfile -version=noxmlTraceParser
-version=noxmlTraceXPathParser -od"Debug" main.d
main.obj : error LNK2019: unresolved external symbol
__D9main_test11TestOptions6__ctorMFNcAAyaZSQBoQBh referenced in function
__Dmain
main.obj : error LNK2019: unresolved external symbol
__D9main_test11TestExecute6__ctorMFNcPFAyaZC6ObjectQoPFQmZAxaZSQCiQCb
referenced in function __Dmain
main.obj : error LNK2019: unresolved external symbol
__D9main_test11TestExecute7executeMFSQBi11TestOptionsZSQCa10TestResult
referenced in function __Dmain
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml9exception28XmlInvalidOperationException7__ClassZ referenced in
function
__D4pham3xml3dom__T7XmlNodeTAyaZQn14checkAttributeMFNfCQCaQByQBx__TQBwTQBrZQCeQByZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage18eInvalidOpDelegateyAa referenced in function
__D4pham3xml3dom__T7XmlNodeTAyaZQn14checkAttributeMFNfCQCaQByQBx__TQBwTQBrZQCeQByZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3utl9utlobject14shortClassNameFNaNbNfC6ObjectZAya referenced in
function
__D4pham3xml3dom__T7XmlNodeTAyaZQn14checkAttributeMFNfCQCaQByQBx__TQBwTQBrZQCeQByZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage21eNotAllowAppendDifDocyAa referenced in
function
__D4pham3xml3dom__T7XmlNodeTAyaZQn14checkAttributeMFNfCQCaQByQBx__TQBwTQBrZQCeQByZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage20eAttributeDuplicatedyAa referenced in
function
__D4pham3xml3dom__T7XmlNodeTAyaZQn14checkAttributeMFNfCQCaQByQBx__TQBwTQBrZQCeQByZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage14eNotAllowChildyAa referenced in function
__D4pham3xml3dom__T7XmlNodeTAyaZQn10checkChildMFNfCQBwQBuQBt__TQBsTQBnZQCaQBuZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage19eNotAllowAppendSelfyAa referenced in function
__D4pham3xml3dom__T7XmlNodeTAyaZQn10checkChildMFNfCQBwQBuQBt__TQBsTQBnZQCaQBuZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage25eInvalidOpFromWrongParentyAa referenced in
function
__D4pham3xml3dom__T7XmlNodeTAyaZQn11checkParentMFNaNfCQBzQBxQBw__TQBvTQBqZQCdbQByZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml4util7isSpaceFNaNbNfwZb referenced in function
__D4pham3xml6writer__T9XmlWriterTAyaZQp10putCommentMFNfMAxaZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml4util12isNameStartCFNaNbNfwZb referenced in function
__D4pham3xml4util__T6isNameTAyaVE3std8typecons__T4FlagVQBba10_416c6c6f77456d707479ZQBii1ZQCrFNaNbNfAxaZb
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml4util9isNameInCFNaNbNfwZb referenced in function
__D4pham3xml4util__T6isNameTAyaVE3std8typecons__T4FlagVQBba10_416c6c6f77456d707479ZQBii1ZQCrFNaNbNfAxaZb
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml4util6isCharFNaNbNfwZb referenced in function
__D4pham3xml4util__T13convertToCharTAyaZQuFNaNbNfAxaJwZb
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml9exception18XmlParserException7__ClassZ referenced in function
__D4pham3xml6reader__T9XmlReaderTAyaZQp16readElementENameMFNfJSQCiQCgQCf__T12ParseContextTQCfZQtZAxa
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage10eBlankNameyAa referenced in function
__D4pham3xml6reader__T9XmlReaderTAyaZQp16readElementENameMFNfJSQCiQCgQCf__T12ParseContextTQCfZQtZAxa
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml9xmlobject6XmlLoc10sourceLineMxFNbNdNfZk referenced in function
__D4pham3xml6reader__T9XmlReaderTAyaZQp16readElementENameMFNfJSQCiQCgQCf__T12ParseContextTQCfZQtZAxa
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml9xmlobject6XmlLoc12sourceColumnMxFNbNdNfZk referenced in function
__D4pham3xml6reader__T9XmlReaderTAyaZQp16readElementENameMFNfJSQCiQCgQCf__T12ParseContextTQCfZQtZAxa
main.obj : error LNK2019: unresolved external symbol
__D4pham3utl4utf827unicodeTrailingBytesForUTF8yAh referenced in function
__D4pham3xml6reader__T9XmlReaderTAyaZQp6decodeMFNaNfZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3utl4utf822unicodeOffsetsFromUTF8yAk referenced in function
__D4pham3xml6reader__T9XmlReaderTAyaZQp6decodeMFNaNfZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml9exception19XmlConvertException7__ClassZ referenced in function
__D4pham3xml6reader__T9XmlReaderTAyaZQp6decodeMFNfZ9errorUtf8MFNaNfEQCnQClQCk16UnicodeErrorKindkZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage23eInvalidUtf8SequenceEosyAa referenced in
function
__D4pham3xml6reader__T9XmlReaderTAyaZQp6decodeMFNfZ9errorUtf8MFNaNfEQCnQClQCk16UnicodeErrorKindkZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage24eInvalidUtf8SequenceCodeyAa referenced in
function
__D4pham3xml6reader__T9XmlReaderTAyaZQp6decodeMFNfZ9errorUtf8MFNaNfEQCnQClQCk16UnicodeErrorKindkZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml9exception18XmlParserException8__mixin16__ctorMFNfSQCiQCg9xmlobject6XmlLocAyaC9ExceptionZCQDvQDtQDsQDl
referenced in function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe5parseMFNfZCQDmQDk3dom__T11XmlDocumentTQDjZQs
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage4eEosyAa referenced in function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe5parseMFNfZCQDmQDk3dom__T11XmlDocumentTQDjZQs
main.obj : error LNK2001: unresolved external symbol
__D4pham3xml9exception12XmlException7__ClassZ
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage21eExpectedStringButEosyAa referenced in
function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe10parseCDataMFNfKSQDsQDq6reader__T12ParseContextTQDtZQtZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage26eExpectedStringButNotFoundyAa referenced in
function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe10parseCDataMFNfKSQDsQDq6reader__T12ParseContextTQDtZQtZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage12eInvalidNameyAa referenced in function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe25parseAttributeDeclarationMFNfCQEgQEe3dom__T14XmlDeclarationTQEgZQvKSQFsQFq6reader__T12ParseContextTQFtZQtZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage30eExpectedOneOfStringsButStringyAa referenced
in function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe34parseDocumentTypeAttributeListItemMFNfCQEpQEn3dom__T28XmlDocumentTypeAttributeListTQFdZQBjZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage18eMultipleTextFoundyAa referenced in function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe30parseDocumentTypeElementChoiceMFNfCQElQEj3dom__T22XmlDocumentTypeElementTQEtZQBdCQGfQGdQBu__T26XmlDocumentTypeElementItemTQGqZQBhZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage24eExpectedStringButStringyAa referenced in
function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe11parseEntityMFNfKSQDtQDr6reader__T12ParseContextTQDuZQtZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage16eExpectedEndNameyAa referenced in function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe16parseElementXEndMFNfAxaZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage19eExpectedCharButEosyAa referenced in function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe__T10expectCharVii0ZQrMFNfwZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage20eExpectedCharButCharyAa referenced in
function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe__T10expectCharVii0ZQrMFNfwZv
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml9xmlobject6XmlLoc11isSpecifiedMxFNbNfZb referenced in function
__D4pham3xml9exception18XmlParserException8__mixin1__T6__ctorTwTwZQmMFNeSQCsQCq9xmlobject6XmlLocAxawwZCQDwQDuQDtQDm
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml9xmlobject6XmlLoc11lineMessageMxFNbNfZAya referenced in function
__D4pham3xml9exception18XmlParserException8__mixin1__T6__ctorTwTwZQmMFNeSQCsQCq9xmlobject6XmlLocAxawwZCQDwQDuQDtQDm
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage25eExpectedOneOfCharsButEosyAa referenced in
function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe__T10expectCharVii0ZQrMFNfQCwZw
main.obj : error LNK2019: unresolved external symbol
__D4pham3xml7message10XmlMessage26eExpectedOneOfCharsButCharyAa referenced in
function
__D4pham3xml6parser__T9XmlParserTAyaVE3std8typecons__T4FlagVQBba3_534158ZQti0ZQCe__T10expectCharVii0ZQrMFNfQCwZw
main.obj : error LNK2001: unresolved external symbol
__D4pham3xml3dom12__ModuleInfoZ
main.obj : error LNK2001: unresolved external symbol
__D4pham3xml5xpath12__ModuleInfoZ
main.obj : error LNK2001: unresolved external symbol
__D9main_test12__ModuleInfoZ
main.exe : fatal error LNK1120: 43 unresolved externals
Error: linker exited with status 1120

--
January 29, 2021
https://issues.dlang.org/show_bug.cgi?id=21587

--- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> ---
I suspect it might be related to demangling the symbols in the linker error messages. Please try disabling both "Demangle names in link errors" and "Monitor linker dependencies" in the global options (Tools->Options->Projects and Solutions->Visual D Settings).

Regarding the actual link errors, I guess you are linking in a library, but the versions specified on the command line don't match in the "Debug" configuration. Or maybe other options are different, e.g. -unittest.

--
February 02, 2021
https://issues.dlang.org/show_bug.cgi?id=21587

--- Comment #4 from apham <apz28@hotmail.com> ---
Disable both options do not make any differences. Something wrong in DMD compiler that not output with debug build

--
June 05, 2022
https://issues.dlang.org/show_bug.cgi?id=21587

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Rainer Schuetze <r.sagitario@gmx.de> ---
This very much seems like a silent crash in dmd. To notify the user about this the exit code is now shown in case of failure (crashes have large exit codes).

Released in https://github.com/dlang/visuald/releases/tag/v1.3.0

--