解决Makefile: recipe for target ‘xxx‘ failed

author

daisy.skye的博客_CSDN博客-嵌入式,Qt,Linux领域博主

问题

在android编译Kernel调用makefile引起的recipe for target

很多文章写的是由于编译文件路径引起或者是makefile代码中的空格引起的

分析

但是如果makefile文件不是手动配置的而且源代码提供的,那么很有可能问题不是出在makefile上,而是在报错failed前一个warning上

高版本GCC起,会把warning作为error对待,

即前一个人认为是警告,但是后一个人认为是错误

解决

解决方法全局搜索文件/gcc-wrapper.py

文件路径/kernel/msm-3.18/scripts/gcc-wrapper.py

try:

proc = subprocess.Popen(args, stderr=subprocess.PIPE)

for line in proc.stderr:

            print >> sys.stderr, line,

#interpret_warning(line) #释掉这行

参考连接

猜你喜欢

转载自blog.csdn.net/qq_40715266/article/details/130686710