`
hongtoushizi
  • 浏览: 376586 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

Appendix B Errors Generated by Make

阅读更多

Appendix B Errors Generated by Make

Here is a list of the more common errors you might see generated by make, and some information about what they mean and how to fix them.

Sometimes make errors are not fatal, especially in the presence of a - prefix on a recipe line, or the -k command line option. Errors that are fatal are prefixed with the string ***.

Error messages are all either prefixed with the name of the program (usually ‘make’), or, if the error is found in a makefile, the name of the file and linenumber containing the problem.

In the table below, these common prefixes are left off.

[foo] Error NN
[foosignal description
These errors are not really make errors at all. They mean that a program that make invoked as part of a recipe returned a non-0 error code (‘Error NN’), which make interprets as failure, or it exited in some other abnormal fashion (with a signal of some type). See Errors in Recipes.

If no *** is attached to the message, then the subprocess failed but the rule in the makefile was prefixed with the - special character, so make ignored the error. 

missing separator. Stop.
missing separator (did you mean TAB instead of 8 spaces?). Stop.
This means that make could not understand much of anything about the makefile line it just read. GNU make looks for various separators (:=, recipe prefix characters, etc.) to indicate what kind of line it's parsing. This message means it couldn't find a valid one.

One of the most common reasons for this message is that you (or perhaps your oh-so-helpful editor, as is the case with many MS-Windows editors) have attempted to indent your recipe lines with spaces instead of a tab character. In this case, make will use the second form of the error above. Remember that every line in the recipe must begin with a tab character (unless you set.RECIPEPREFIX; see Special Variables). Eight spaces do not count. See Rule Syntax

recipe commences before first target. Stop.
missing rule before recipe. Stop.
This means the first thing in the makefile seems to be part of a recipe: it begins with a recipe prefix character and doesn't appear to be a legal make directive (such as a variable assignment). Recipes must always be associated with a target.

The second form is generated if the line has a semicolon as the first non-whitespace character; make interprets this to mean you left out the "target: prerequisite" section of a rule. See Rule Syntax

No rule to make target `xxx'.
No rule to make target `xxx', needed by `yyy'.
This means that make decided it needed to build a target, but then couldn't find any instructions in the makefile on how to do that, either explicit or implicit (including in the default rules database).

If you want that file to be built, you will need to add a rule to your makefile describing how that target can be built. Other possible sources of this problem are typos in the makefile (if that filename is wrong) or a corrupted source tree (if that file is not supposed to be built, but rather only a prerequisite). 

No targets specified and no makefile found. Stop.
No targets. Stop.
The former means that you didn't provide any targets to be built on the command line, and make couldn't find any makefiles to read in. The latter means that some makefile was found, but it didn't contain any default goal and none was given on the command line. GNU make has nothing to do in these situations. See Arguments to Specify the Makefile
Makefile `xxx' was not found.
Included makefile `xxx' was not found.
A makefile specified on the command line (first form) or included (second form) was not found. 
warning: overriding recipe for target `xxx'
warning: ignoring old recipe for target `xxx'
GNU make allows only one recipe to be specified per target (except for double-colon rules). If you give a recipe for a target which already has been defined to have one, this warning is issued and the second recipe will overwrite the first. See Multiple Rules for One Target
Circular xxx <- yyy dependency dropped.
This means that make detected a loop in the dependency graph: after tracing the prerequisite yyy of target xxx, and its prerequisites, etc., one of them depended on xxx again. 
Recursive variable `xxx' references itself (eventually). Stop.
This means you've defined a normal (recursive) make variable xxx that, when it's expanded, will refer to itself (xxx). This is not allowed; either use simply-expanded variables (:=) or use the append operator (+=). See How to Use Variables
Unterminated variable reference. Stop.
This means you forgot to provide the proper closing parenthesis or brace in your variable or function reference. 
insufficient arguments to function `xxx'. Stop.
This means you haven't provided the requisite number of arguments for this function. See the documentation of the function for a description of its arguments. See Functions for Transforming Text
missing target pattern. Stop.
multiple target patterns. Stop.
target pattern contains no `%'. Stop.
mixed implicit and static pattern rules. Stop.
These are generated for malformed static pattern rules. The first means there's no pattern in the target section of the rule; the second means there are multiple patterns in the target section; the third means the target doesn't contain a pattern character (%); and the fourth means that all three parts of the static pattern rule contain pattern characters (%)–only the first two parts should. See Syntax of Static Pattern Rules
warning: -jN forced in submake: disabling jobserver mode.
This warning and the next are generated if make detects error conditions related to parallel processing on systems where sub-makes can communicate (see Communicating Options to a Sub-make). This warning is generated if a recursive invocation of a make process is forced to have ‘-jN’ in its argument list (where N is greater than one). This could happen, for example, if you set the MAKEenvironment variable to ‘make -j2’. In this case, the sub-make doesn't communicate with other make processes and will simply pretend it has two jobs of its own. 
warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
In order for make processes to communicate, the parent will pass information to the child. Since this could result in problems if the child process isn't actually a make, the parent will only do this if it thinks the child is a make. The parent uses the normal algorithms to determine this (see How the MAKE Variable Works). If the makefile is constructed such that the parent doesn't know the child is a make process, then the child will receive only part of the information necessary. In this case, the child will generate this warning message and proceed with its build in a sequential manner.
分享到:
评论

相关推荐

    GNU make.zip

    GNU make标准文档离线版 Short Table of Contents ...Appendix B Errors Generated by Make Appendix C Complex Makefile Example Index of Concepts Index of Functions, Variables, & Directives

    Verilog Tutorial Appendix B

    Verilog Tutorial Appendix B

    US DoE Test Procedure - 10 CFR 430, Subpart B, Appendix Y.zip

    US DoE Test Procedure - 10 CFR 430, Subpart B, Appendix Y.zip

    Understanding Automotive Electronics 8th - Appendix B

    首先,标题“Understanding Automotive Electronics 8th - Appendix B”和描述“Understanding Automotive Electronics 8th Appendix B - Discrete Time Systems Theory”指出,汽车电子控制系统和仪表系统,以及...

    Appendix B: Data Model

    这个是作业的data model

    Appendix_B pdf文档整理.zip

    【标题】"Appendix B PDF文档整理"是一个压缩包文件,其主要包含了一份与附录B相关的PDF文档。从描述中我们可以推断,这个压缩包的目的可能是为了整理和归档某些特定主题的资料,比如技术手册、研究报告或者教程。...

    appendix021—30

    系统开发实例精粹&gt;的源码 appendix021—30 -图像组合程序、自定义图像设计程序、视频播放器、3D显示系统、灰度的线性变换、灰度的非线性变换、灰度拉伸、图像的锐化、图像的平滑、图像的中值滤波。

    appendix_hp_serviceguard_cn_cs

    HP Serviceguard 是惠普公司提供的一款关键任务应用的高可用性解决方案,主要针对运行在UNIX和Linux服务器上的应用。这款产品旨在确保企业级操作环境的出色高可用性,满足关键业务对零停机时间和高效灾难恢复的需求...

    NIST SP800-38B Appendix D, Updated CMAC Examples.pdf

    The document contains a corrected version of Appendix D of Special Publication 800-38B, which specifies examples for the CMAC authentication mode. In particular, the values of the MAC, T, for Examples...

    App Inventor appendix_B

    根据给定文件的部分内容,我们可以总结出App Inventor的一些关键知识点。App Inventor是一款由Google开发的编程平台,用户可以通过图形化界面构建Android应用程序。该文档主要介绍了App Inventor的基本组件,包括...

    DIPUM2E_AppendixA

    DIPUM2E_AppendixADIPUM2E_AppendixADIPUM2E_AppendixADIPUM2E_AppendixADIPUM2E_AppendixADIPUM2E_AppendixADIPUM2E_AppendixADIPUM2E_Appendix

    CUMCM-2018-Problem-B-Chinese-Appendix1

    2018数学建模B题CUMCM-2018-Problem-B-Chinese-Appendix1

    TC39x B-Step User Manual Appendix.pdf

    TC397X B型号手册附录说明:这是关于Infineon公司AURIX™ TC39x-B系列微控制器(MCU)的用户手册附录。TC39x-B型号是AURIX™家族的一部分,这个系列的MCU广泛应用于高性能的汽车和工业应用中。 AURIX™ TC39x-B系列...

    appendix03-功能完善的计算器

    "appendix03-功能完善的计算器"是《Delphi系统开发实例精粹》一书中的一个源码示例,它旨在帮助读者深入理解Delphi的GUI(图形用户界面)编程以及事件驱动的编程模型。 Delphi是一种基于Object Pascal的集成开发...

    appendix020-简单的画图软件程序

    标题中的"appendix020-简单的画图软件程序"是指一个附录20中的编程示例,这个示例是一个用Delphi开发的简单画图应用程序。Delphi是一款基于Object Pascal语言的集成开发环境(IDE),它以其高效、快速的编译器和直观...

    Appendix_B_GDD游戏设计文件

    ### Appendix_B_GDD游戏设计文件知识点 #### 一、游戏概念概述 - **简介**:游戏内容涵盖了Web、基础、导航、游戏四个方面的应用,旨在制作一个完整的应用案例。 - **故事背景**:这是一个谜题类游戏,玩家需通过...

    NIST DSR Model Appendix

    本文将基于“NIST DSR Model Appendix”的内容,深入探讨DSR协议在OPNET中的实现细节及其关键功能。 #### 二、包类型说明 DSR协议中定义了多种类型的包用于路由发现和数据传输。这些包包括: - **DataPacket**:...

    solution for computer architecture 5th edition (appendix)

    最近在学习 computer architecture a quantitative approach 5th edition,发现很多下载的答案没有appendix,用Google找了很久找到了appendix的答案,希望给大家带来帮助

Global site tag (gtag.js) - Google Analytics