编译bash不起作用,LFS

编译bash不起作用,LFS

到目前为止,我一直遵循 LFS 手册的说明,但在制作 bash 时遇到错误,我make在 bash-5.1 文件夹中运行,但在命令输出末尾显示错误:

/mnt/lfs/tools/lib/gcc/x86_64-lfs-linux-gnu/10.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname':
/mnt/lfs/sources/bash-5.1/lib/sh/tmpfile.c:160: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
collect2: error: ld returned 1 exit status
make: *** [Makefile:583: bash] Error 1

我在此之前运行的所有命令都有效,我也运行echo $?并输出 2。我使用的是最新版本的 manjaro。

答案1

结果我错误地编译了 ncurses,删除了 ncurses 目录,然后从它们开始就成功了。

相关内容