Skip to content

Commit 70cfeac

Browse files
committed
Site updated: 2017-04-12 19:55:47
1 parent b811b54 commit 70cfeac

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

2017/04/09/Windows-LLVM-环境的二三事/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ <h1>Windows LLVM 环境的二三事</h1>
8181
<figure class="highlight plain"><table><tr><td class="code"><pre><div class="line">命令语法不正确。</div><div class="line">mingw32-make.exe[2]: *** [tools\lto\CMakeFiles\LTO_exports.dir\build.make:61: tools/lto/LTO.def] Error 1</div><div class="line">mingw32-make.exe[2]: *** Deleting file &apos;tools/lto/LTO.def&apos;</div><div class="line">mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:9977: tools/lto/CMakeFiles/LTO_exports.dir/all] Error 2</div><div class="line">mingw32-make.exe: *** [Makefile:151: all] Error 2</div></pre></td></tr></table></figure>
8282
<p>找到了这个 build.make 发现这一行的命令很奇怪</p>
8383
<figure class="highlight powershell"><table><tr><td class="code"><pre><div class="line">cd /d C:\Users\hcyue\code\llvm-<span class="number">3.5</span>.<span class="number">2</span>.build\tools\lto &amp;&amp; <span class="string">"C:\Program Files\CMake\bin\cmake.exe"</span> -E echo EXPORTS &gt; LTO.def</div><div class="line">cd /d C:\Users\hcyue\code\llvm-<span class="number">3.5</span>.<span class="number">2</span>.build\tools\lto &amp;&amp; type C:/Users/hcyue/code/llvm-<span class="number">3.5</span>.<span class="number">2</span>.src/tools/lto/lto.exports &gt;&gt; LTO.def</div></pre></td></tr></table></figure>
84-
<p>纵横 Windows 这么多年没见过 cd 还可以带个 <code>/d</code> 参数的。那把它删了吧。</p>
84+
<p><del>纵横 Windows 这么多年没见过 cd 还可以带个 <code>/d</code> 参数的</del> 似乎 powershell 的 cd 并不支持 /d 参数。那把它删了吧。</p>
8585
<p>之后继续报错,link 的时候找不到 symbol。发现是刚刚改的那两行生成的目标文件 <code>LTO.def</code> 有问题,不知道为什么没有写入成正常的文本文件,而是二进制文件(VS code 打开提示文件过大或为二进制文件)。直接 <code>type</code> 出来是一个奇怪的、字距拉得很开的、看起来像是文本文件的格式。很气。</p>
8686
<p>然而既然 <code>.def</code> 反正是文本文件,我大不了手动构建一下 <code>def</code> 。于是手动运行命令把 <code>lto.exports</code> 里的东西 <code>type</code> 出来</p>
8787
<figure class="highlight powershell"><table><tr><td class="code"><pre><div class="line">type C:/Users/hcyue/code/llvm-<span class="number">3.5</span>.<span class="number">2</span>.src/tools/lto/lto.exports</div></pre></td></tr></table></figure>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h1>
110110
<figure class="highlight plain"><table><tr><td class="code"><pre><div class="line">命令语法不正确。</div><div class="line">mingw32-make.exe[2]: *** [tools\lto\CMakeFiles\LTO_exports.dir\build.make:61: tools/lto/LTO.def] Error 1</div><div class="line">mingw32-make.exe[2]: *** Deleting file &apos;tools/lto/LTO.def&apos;</div><div class="line">mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:9977: tools/lto/CMakeFiles/LTO_exports.dir/all] Error 2</div><div class="line">mingw32-make.exe: *** [Makefile:151: all] Error 2</div></pre></td></tr></table></figure>
111111
<p>找到了这个 build.make 发现这一行的命令很奇怪</p>
112112
<figure class="highlight powershell"><table><tr><td class="code"><pre><div class="line">cd /d C:\Users\hcyue\code\llvm-<span class="number">3.5</span>.<span class="number">2</span>.build\tools\lto &amp;&amp; <span class="string">"C:\Program Files\CMake\bin\cmake.exe"</span> -E echo EXPORTS &gt; LTO.def</div><div class="line">cd /d C:\Users\hcyue\code\llvm-<span class="number">3.5</span>.<span class="number">2</span>.build\tools\lto &amp;&amp; type C:/Users/hcyue/code/llvm-<span class="number">3.5</span>.<span class="number">2</span>.src/tools/lto/lto.exports &gt;&gt; LTO.def</div></pre></td></tr></table></figure>
113-
<p>纵横 Windows 这么多年没见过 cd 还可以带个 <code>/d</code> 参数的。那把它删了吧。</p>
113+
<p><del>纵横 Windows 这么多年没见过 cd 还可以带个 <code>/d</code> 参数的</del> 似乎 powershell 的 cd 并不支持 /d 参数。那把它删了吧。</p>
114114
<p>之后继续报错,link 的时候找不到 symbol。发现是刚刚改的那两行生成的目标文件 <code>LTO.def</code> 有问题,不知道为什么没有写入成正常的文本文件,而是二进制文件(VS code 打开提示文件过大或为二进制文件)。直接 <code>type</code> 出来是一个奇怪的、字距拉得很开的、看起来像是文本文件的格式。很气。</p>
115115
<p>然而既然 <code>.def</code> 反正是文本文件,我大不了手动构建一下 <code>def</code> 。于是手动运行命令把 <code>lto.exports</code> 里的东西 <code>type</code> 出来</p>
116116
<figure class="highlight powershell"><table><tr><td class="code"><pre><div class="line">type C:/Users/hcyue/code/llvm-<span class="number">3.5</span>.<span class="number">2</span>.src/tools/lto/lto.exports</div></pre></td></tr></table></figure>

tags/LLVM/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h1>
114114
<figure class="highlight plain"><table><tr><td class="code"><pre><div class="line">命令语法不正确。</div><div class="line">mingw32-make.exe[2]: *** [tools\lto\CMakeFiles\LTO_exports.dir\build.make:61: tools/lto/LTO.def] Error 1</div><div class="line">mingw32-make.exe[2]: *** Deleting file &apos;tools/lto/LTO.def&apos;</div><div class="line">mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:9977: tools/lto/CMakeFiles/LTO_exports.dir/all] Error 2</div><div class="line">mingw32-make.exe: *** [Makefile:151: all] Error 2</div></pre></td></tr></table></figure>
115115
<p>找到了这个 build.make 发现这一行的命令很奇怪</p>
116116
<figure class="highlight powershell"><table><tr><td class="code"><pre><div class="line">cd /d C:\Users\hcyue\code\llvm-<span class="number">3.5</span>.<span class="number">2</span>.build\tools\lto &amp;&amp; <span class="string">"C:\Program Files\CMake\bin\cmake.exe"</span> -E echo EXPORTS &gt; LTO.def</div><div class="line">cd /d C:\Users\hcyue\code\llvm-<span class="number">3.5</span>.<span class="number">2</span>.build\tools\lto &amp;&amp; type C:/Users/hcyue/code/llvm-<span class="number">3.5</span>.<span class="number">2</span>.src/tools/lto/lto.exports &gt;&gt; LTO.def</div></pre></td></tr></table></figure>
117-
<p>纵横 Windows 这么多年没见过 cd 还可以带个 <code>/d</code> 参数的。那把它删了吧。</p>
117+
<p><del>纵横 Windows 这么多年没见过 cd 还可以带个 <code>/d</code> 参数的</del> 似乎 powershell 的 cd 并不支持 /d 参数。那把它删了吧。</p>
118118
<p>之后继续报错,link 的时候找不到 symbol。发现是刚刚改的那两行生成的目标文件 <code>LTO.def</code> 有问题,不知道为什么没有写入成正常的文本文件,而是二进制文件(VS code 打开提示文件过大或为二进制文件)。直接 <code>type</code> 出来是一个奇怪的、字距拉得很开的、看起来像是文本文件的格式。很气。</p>
119119
<p>然而既然 <code>.def</code> 反正是文本文件,我大不了手动构建一下 <code>def</code> 。于是手动运行命令把 <code>lto.exports</code> 里的东西 <code>type</code> 出来</p>
120120
<figure class="highlight powershell"><table><tr><td class="code"><pre><div class="line">type C:/Users/hcyue/code/llvm-<span class="number">3.5</span>.<span class="number">2</span>.src/tools/lto/lto.exports</div></pre></td></tr></table></figure>

tags/compile/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h1>
114114
<figure class="highlight plain"><table><tr><td class="code"><pre><div class="line">命令语法不正确。</div><div class="line">mingw32-make.exe[2]: *** [tools\lto\CMakeFiles\LTO_exports.dir\build.make:61: tools/lto/LTO.def] Error 1</div><div class="line">mingw32-make.exe[2]: *** Deleting file &apos;tools/lto/LTO.def&apos;</div><div class="line">mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:9977: tools/lto/CMakeFiles/LTO_exports.dir/all] Error 2</div><div class="line">mingw32-make.exe: *** [Makefile:151: all] Error 2</div></pre></td></tr></table></figure>
115115
<p>找到了这个 build.make 发现这一行的命令很奇怪</p>
116116
<figure class="highlight powershell"><table><tr><td class="code"><pre><div class="line">cd /d C:\Users\hcyue\code\llvm-<span class="number">3.5</span>.<span class="number">2</span>.build\tools\lto &amp;&amp; <span class="string">"C:\Program Files\CMake\bin\cmake.exe"</span> -E echo EXPORTS &gt; LTO.def</div><div class="line">cd /d C:\Users\hcyue\code\llvm-<span class="number">3.5</span>.<span class="number">2</span>.build\tools\lto &amp;&amp; type C:/Users/hcyue/code/llvm-<span class="number">3.5</span>.<span class="number">2</span>.src/tools/lto/lto.exports &gt;&gt; LTO.def</div></pre></td></tr></table></figure>
117-
<p>纵横 Windows 这么多年没见过 cd 还可以带个 <code>/d</code> 参数的。那把它删了吧。</p>
117+
<p><del>纵横 Windows 这么多年没见过 cd 还可以带个 <code>/d</code> 参数的</del> 似乎 powershell 的 cd 并不支持 /d 参数。那把它删了吧。</p>
118118
<p>之后继续报错,link 的时候找不到 symbol。发现是刚刚改的那两行生成的目标文件 <code>LTO.def</code> 有问题,不知道为什么没有写入成正常的文本文件,而是二进制文件(VS code 打开提示文件过大或为二进制文件)。直接 <code>type</code> 出来是一个奇怪的、字距拉得很开的、看起来像是文本文件的格式。很气。</p>
119119
<p>然而既然 <code>.def</code> 反正是文本文件,我大不了手动构建一下 <code>def</code> 。于是手动运行命令把 <code>lto.exports</code> 里的东西 <code>type</code> 出来</p>
120120
<figure class="highlight powershell"><table><tr><td class="code"><pre><div class="line">type C:/Users/hcyue/code/llvm-<span class="number">3.5</span>.<span class="number">2</span>.src/tools/lto/lto.exports</div></pre></td></tr></table></figure>

0 commit comments

Comments
 (0)