<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.normaltextrun
{mso-style-name:normaltextrun;}
span.scx91196754
{mso-style-name:scx91196754;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="#0563C1" vlink="#954F72" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">When I compile clangd with Debug mode(-DCMAKE_BUILD_TYPE=Debug) on Windows, it raised an error as follows.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">My compiler is MingW64 Gcc (Target: x86_64-w64-mingw32).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] Scanning dependencies of target clangd</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] [100%] Building CXX object tools/clang/tools/extra/clangd/tool/CMakeFiles/clangd.dir/ClangdMain.cpp.obj</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] [100%] Linking CXX executable ..\..\..\..\..\..\bin\clangd.exe</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangSema.a(ScopeInfo.cpp.obj):ScopeInfo.cpp:(.debug_aranges+0x6): relocation truncated to fit: secrel32 against `.debug_info'</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangEdit.a(Commit.cpp.obj):Commit.cpp:(.debug_aranges+0x6): relocation truncated to fit: secrel32 against `.debug_info'</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangEdit.a(EditedSource.cpp.obj):EditedSource.cpp:(.debug_aranges+0x6): relocation truncated to fit: secrel32 against `.debug_info'</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangEdit.a(RewriteObjCFoundationAPI.cpp.obj):RewriteObjCFoundationAPI.cpp:(.debug_aranges+0x6): relocation truncated to fit: secrel32
against `.debug_info'</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangAnalysis.a(AnalysisDeclContext.cpp.obj):AnalysisDeclContext.cpp:(.debug_aranges+0x6): relocation truncated to fit: secrel32
against `.debug_info'</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangAnalysis.a(BodyFarm.cpp.obj):BodyFarm.cpp:(.debug_aranges+0x6): relocation truncated to fit: secrel32 against `.debug_info'</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangAnalysis.a(CFG.cpp.obj):CFG.cpp:(.debug_aranges+0x6): relocation truncated to fit: secrel32 against `.debug_info'</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangAnalysis.a(CFGReachabilityAnalysis.cpp.obj):CFGReachabilityAnalysis.cpp:(.debug_aranges+0x6): relocation truncated to fit:
secrel32 against `.debug_info'</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangAnalysis.a(CFGStmtMap.cpp.obj):CFGStmtMap.cpp:(.debug_aranges+0x6): relocation truncated to fit: secrel32 against `.debug_info'</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangAnalysis.a(CallGraph.cpp.obj):CallGraph.cpp:(.debug_aranges+0x6): relocation truncated to fit: secrel32 against `.debug_info'</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] ../../../../../../lib/libclangAnalysis.a(CloneDetection.cpp.obj):CloneDetection.cpp:(.debug_aranges+0x6): additional relocation overflows omitted from the
output</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] collect2.exe: error: ld returned 1 exit status</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] mingw32-make.exe[3]: *** [tools\clang\tools\extra\clangd\tool\CMakeFiles\clangd.dir\build.make:210: bin/clangd.exe] Error 1</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:35621: tools/clang/tools/extra/clangd/tool/CMakeFiles/clangd.dir/all] Error 2</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:35633: tools/clang/tools/extra/clangd/tool/CMakeFiles/clangd.dir/rule] Error 2</span></span><span class="scx91196754"><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"> </span></span><span lang="EN-US" style="font-size:11.0pt;color:black;background:white"><br>
</span><span class="normaltextrun"><span lang="EN-US" style="font-size:11.0pt;background:white">[build] mingw32-make.exe: *** [Makefile:11807: clangd] Error 2</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks for the great work!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">--Xiaodong<o:p></o:p></span></p>
</div>
</body>
</html>