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

            Bug ID: 38579
           Summary: '/failifmismatch: mismatch detected: MD_DynamicRelease
                    and MT_StaticRelease' error is not very helpful
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: COFF
          Assignee: unassignedb...@nondot.org
          Reporter: t...@ritter.vg
                CC: llvm-bugs@lists.llvm.org

While building Firefox with CFI icall on Windows, I encountered this error:

> 49:24.06 
> c:/mozilla-unified-2/build/build-clang/build-clang-339310/build/stage3/clang/bin/lld-link.exe
>  -NOLOGO -DLL -OUT:mozglue.dll -PDB:mozglue.pdb -SUBSYSTEM:WINDOWS,6.01 
> -MACHINE:X64 
> @c:/mozilla-unified-2/obj-x86_64-pc-mingw32/mozglue/build/mozglue_dll.list 
> ./module.res -fsanitize=cfi-icall -fsanitize-cfi-icall-generalize-pointers 
> -fsanitize-blacklist=c:/mozilla-unified-2/build/sanitizers/cfi_suppressions.txt
>  -fno-sanitize-trap=cfi -LARGEADDRESSAWARE -NXCOMPAT -DYNAMICBASE -DEBUG 
> -DEBUGTYPE:CV -DEBUG -OPT:REF,ICF -DEF:mozglue.def -DELAYLOAD:user32.dll 
> -DELAYLOAD:crypt32.dll -DELAYLOAD:wintrust.dll        kernel32.lib user32.lib 
> gdi32.lib winmm.lib wsock32.lib advapi32.lib secur32.lib dbghelp.lib 
> crypt32.lib version.lib wintrust.lib delayimp.lib
> 49:24.08 lld-link.exe: error: /failifmismatch: mismatch detected: 
> MD_DynamicRelease and MT_StaticRelease for key RuntimeLibrary

I dug into it and determined that all the object files in my .list file were
compiled with -MD so it's very unclear what the conflict is.  

It would be very helpful if this error message output the conflicting libraries
(any two conflicting libraries would work, since the error is definitely with
one of them.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to