make[1]: Leaving directory `/home/sunhz/sl8541e/out/target/product/sp8541e_srvm/obj/u-boot15'
make: Leaving directory `/home/sunhz/sl8541e/u-boot15'
[ 82% 3107/3782] Build hyb out/target/product/sp8541e_srvm/ob...h-hu.hyb <- external/hyphenation-patterns/hu//hyph-hu.pat.txt
21515 unique nodes, 102669 total
ninja: build stopped: subcommand failed.
20:31:15 ninja failed with: exit status 1

一般是由于服务器进程 打开文件数受限制

1.vim /etc/security/limits.conf 添加如下的行

# 解除服务器所有用户文件数 进程限制
*             soft       nofile      10240
*             hard       nofile      10240
*             soft       nproc      10240
*             hard       nproc      10240

2.保存后,再输入ulimit -n 10240回车即可生效。

3.提示 ulimit 命令 执行:

sudo sh -c "ulimit -n 65535 && exec su $LOGNAME"

再执行第二个步骤即可,

4.使用ulimit -a可以检查查看!

参考:编译出错 ninja: build stopped: subcommand failed Android 源码编译_锅ke的博客-CSDN博客

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐