[llvm-bugs] [Bug 48788] New: LNK2038 error: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' does not match value 'MDd_DynamicDebug' in RpgLexer.obj

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 18 05:47:25 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48788

            Bug ID: 48788
           Summary: LNK2038 error: mismatch detected for 'RuntimeLibrary':
                    value 'MD_DynamicRelease' does not match value
                    'MDd_DynamicDebug' in RpgLexer.obj
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: francis.andre.kampbell at orange.fr
                CC: llvm-bugs at lists.llvm.org

Hello LLVM people

I build all librairies of llvm-project/llvm with the 'Release' configuration.
When linked by my project in Release mode, evething is fine, but when linking
by my project in Debug mode, I got:

1>LLVMCore.lib(Value.obj) : error LNK2038: discordance détectée pour
'_ITERATOR_DEBUG_LEVEL' : la valeur '0' ne correspond pas à la valeur '2' in
RpgLexer.obj
1>LLVMCore.lib(Value.obj) : error LNK2038: discordance détectée pour
'RuntimeLibrary' : la valeur 'MD_DynamicRelease' ne correspond pas à la valeur
'MDd_DynamicDebug' in RpgLexer.obj
1>LLVMCore.lib(LLVMContext.obj) : error LNK2038: discordance détectée pour
'_ITERATOR_DEBUG_LEVEL' : la valeur '0' ne correspond pas à la valeur '2' in
RpgLexer.obj
1>LLVMCore.lib(LLVMContext.obj) : error LNK2038: discordance détectée pour
'RuntimeLibrary' : la valeur 'MD_DynamicRelease' ne correspond pas à la valeur
'MDd_DynamicDebug' in RpgLexer.obj
1>LLVMCore.lib(Metadata.obj) : error LNK2038: discordance détectée pour
'_ITERATOR_DEBUG_LEVEL' : la valeur '0' ne correspond pas à la valeur '2' in
RpgLexer.obj
1>LLVMCore.lib(Metadata.obj) : error LNK2038: discordance détectée pour
'RuntimeLibrary' : la valeur 'MD_DynamicRelease' ne correspond pas à la valeur
'MDd_DynamicDebug' in RpgLexer.obj
1>LLVMCore.lib(BasicBlock.obj) : error LNK2038: discordance détectée pour
'_ITERATOR_DEBUG_LEVEL' : la valeur '0' ne correspond pas à la valeur '2' in
RpgLexer.obj

>From the LLMV-dev mailing list, it seems that the problem is coming from the
mismatch between the 'Release' LLVM libs and mu 'Debug' project. 

>From my point of view, this is an issue. One should be able to link 'Release'
LLVM libs while building a project compiled with 'Debug'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210118/0e2444ce/attachment-0001.html>


More information about the llvm-bugs mailing list