checking build system type... Invalid configuration `make': machine `make-unknown' not recognized
手动执行./configure没有问题,makefile中执行./configure有上面这个提示,原因:语法问题,末层没有分号 ; 以及一行换多行的斜杠 \
另外makefile多行的这种,尽量不要注释#加斜杠\
问题2:
make: Entering directory
../../linux/Makefile:239: Extraneous text after `else' directive
../../linux/Makefile:243: *** only one `else' per conditional. Stop.
查看239行内容为:else ifeq
解决过程:
查看make --version 看到make 版本是3.80,不支持这种语法。
到gnu上下载make-3.81.tar.gz
tar -xf make-3.81.tar.gz
cd make-3.81
./configure (没有执行权限则chmod u+x configure)
make
make install (如果提示某文件缺少执行权限按提示加上权限,如chmod a+x config/install-sh)
再次查询make --version
本文讲述了如何处理Makefile配置中的Invalid configuration错误,包括检查语法错误和使用不同版本的make。作者通过实例解释了末尾分号缺失、多行注释问题,并介绍了更新make至3.81版本以解决'else'指令的版本兼容性问题。
1073

被折叠的 条评论
为什么被折叠?



