⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 make-15.html

📁 unix make 文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
missing separator (did you mean TAB instead of 8 spaces?). Stop.</span></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
不可识别的命令行,</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">make</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">在读取</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">过程中不能解析其中包含的内容。</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">GNU 
make</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">在读取</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">时根据各种分隔符(</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">:, 
=, [TAB]</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">字符等)来识别</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">的每一行内容。这些错误意味着</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">make</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">不能发现一个合法的分隔符。</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">&nbsp;</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
出现这些错误信息的可能的原因是(或许是编辑器,绝大部分是</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">ms-windows</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">的编辑器)在</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">中的命令之前使用了</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">4</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">个(或者</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">8</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">个)空格代替了</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">[Tab]</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">字符。这种情况,将产生上述的第二种形式产生错误信息。且记,所有的命令行都应该是以</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">[Tab]</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">字符开始的。</span></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
commands commence before first target. Stop.</span></b></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
missing rule before commands. Stop.</span></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">
Makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">可能是以命令行开始:以</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">[Tab]</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">字符开始,但不是一个合法的命令行(例如,一个变量的赋值)。命令行必须和规则一一对应。</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">&nbsp;</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
产生第二种的错误的原因可能是一行的第一个非空字符为分号,</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">make</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">会认为此处遗漏了规则的“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">target: 
prerequisite</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”部分。</span></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
No rule to make target `XXX'.</span></b></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
No rule to make target ` XXX ', needed by `yyy'.</span></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
无法为重建目标“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">XXX</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”找到合适的规则,包括明确规则和隐含规则。</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">&nbsp;</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
修正这个错误的方法是:在</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">中添加一个重建目标的规则。其它可能导致这些错误的原因是</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">中文件名拼写错误,或者破坏了源文件树(一个文件不能被重建,可能是由于依赖文件的问题)。</span></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
No targets specified and no makefile found. Stop.</span></b></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
No targets. Stop.</span></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
第一个错误表示在命令行中没有指定需要重建的目标,并且</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">make</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">不能读入任何</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">文件。第二个错误表示能够找到</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">文件,但没有终极目标或者没有在命令行中指出需要重建的目标。这种情况下,</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">make</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">什么也不做。参考</span><span style="font-size: 12.0pt; line-height: 150%; color: black">
<span lang="EN-US">
<a style="color: blue; text-decoration: underline; text-underline: single" href="#_执行make">
<span lang="EN-US" style="font-family: 楷体_GB2312">第九章</span>
<span lang="EN-US" style="font-family: 楷体_GB2312">执行</span>make</a></span></span></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
Makefile `XXX' was not found.</span></b></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
Included makefile `XXX' was not found.</span></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
没有使用“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">-f</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”指定</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">文件,</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">make</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">不能在当前目录下找到默认</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">(</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">或者</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">GNUmakefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">)。使用“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">-f</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”指定文件,但不能读取这个指定的</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">文件。</span></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
warning: overriding commands for target `XXX'</span></b></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
warning: ignoring old commands for target `XXX'</span></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
对同一目标“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">XXX</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”存在一个以上的重建命令。</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">GNU 
make</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">规定:当同一个文件作为多个规则的目标时,只能有一个规则定义重建它的命令(双冒号规则除外)。如果为一个目标多次指定了相同或者不同的命令,就会产生第一个告警;第二个告警信息说新指定的命令覆盖了上一次指定的命令。</span></p>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.1pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<b>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: blue">
Circular XXX &lt;- YYY dependency dropped.</span></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
规则的依赖关系产生了循环:目标“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">XXX</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”的依赖文件为“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">YYY</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”,而依赖“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">YYY</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”的依赖列表中又包含“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">XXX</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”。</span></p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -