makefile 的诊断输出(如 make[N])的含义
当运行“make install”之类的命令时,终端窗口中会显示大量信息。有些行以 make[1]、make[2]、make[3] 或 make[4] 开头。这些是什么意思?这是否意味着存在某种错误?
When running something like "make install", there is a lot of information displayed in the terminal window. Some lines start with make[1], make[2], make[3] or make[4]. What do these mean? Does this mean there is some kind of error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当递归调用 make 时,每个 make 在输出消息中用计数来区分自己。也就是说,以“make[3]”开头的消息来自调用的第三个 make。它并不表示任何类型的错误,而是旨在使您能够跟踪正在发生的情况。特别是,如果确实发生任何错误,您可以知道 make 正在哪个目录中运行,以帮助调试构建。
When make is invoked recursively, each make distinguishes itself in output messages with a count. That is, messages beginning "make[3]" are from the third make that was invoked. It is not indicative of an error of any kind, but is intended to enable you to keep track of what is happening. In particular, you can tell in which directory make is being run to help debug the build if any errors do occur.