我正试图动摇openwrt的构建过程。基本上我是使用$(warning)
添加痕迹,评论一些说明等等。
在某些时候,我运行make world
并面临错误。我的问题是我忘记了哪些文件确切地改变了。
这是在命令make -d world
之后输出错误:
Reading makefile `tp-link.mk' (search path) (no ~ expansion)...
Reading makefile `ubnt.mk' (search path) (no ~ expansion)...
Reading makefile `generic.mk' (search path) (no ~ expansion)...
Reading makefile `legacy.mk' (search path) (no ~ expansion)...
Makefile:102: *** commands commence before first target. Stop.
Reaping losing child 0x008a0f20 PID 3213
make[5]: *** [image-prereq] Error 2
Removing child 0x008a0f20 PID 3213 from chain.
Reaping losing child 0x0257c930 PID 3210
make[4]: *** [prereq] Error 2
Removing child 0x0257c930 PID 3210 from chain.
Reaping losing child 0x01196730 PID 3207
make[3]: *** [target/linux/prereq] Error 2
Removing child 0x01196730 PID 3207 from chain.
Reaping losing child 0x01432210 PID 3194
make[2]: *** [/home/user/Bureau/Workspace/arduino/openwrt-yun_2/openwrt/staging_dir/target-mips_34kc_musl-1.1.15/stamp/.target_prereq] Error 2
Removing child 0x01432210 PID 3194 from chain.
Reaping losing child 0x01cb58c0 PID 3189
make[1]: *** [prereq] Error 2
Removing child 0x01cb58c0 PID 3189 from chain.
Récupération du statut de sortie du processus fils 0x0167e4a0 PID 3074
make: *** [world] Erreur 2
Suppression du processus fils 0x0167e4a0 PID 3074 de la chaîne.
我输出的内容是,当试图阅读legacy.mk
时,make在第102行抱怨错误。我确信我没有对这个文件做任何改动。
我的问题:
我们如何使用make debug选项来了解问题来自哪个Makefile?
答案 0 :(得分:1)
问题已解决:我错误地用image.mk
行605中的标签替换了2个空格。制作错误消息实际上没有用。
我如何找到错误:最明显的解决方案git checkout
,然后是meld
修改过的文件。