@ubuntu:~/ct-ng/ct-ng$ ../ct-ng-build/bin/ct-ng build [INFO ] Performing some trivial sanity checks [INFO ] Build started 20230609.065344 [INFO ] Building environment variables [EXTRA] Preparing working directories [ERROR] [ERROR] >> [ERROR] >> Build failed in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257] [ERROR] >> called from: CT_DoForceRmdir[scripts/functions@471] [ERROR] >> called from: main[scripts/crosstool-NG.sh@250] [ERROR] >> [ERROR] >> For more info on this error, look at the file: 'build.log' [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> '/home/jj/ct-ng/ct-ng-build/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt' [ERROR] [ERROR] (elapsed: 0:00.24) [00:01] / make: *** [build] 错误 1怎么解决
时间: 2024-04-02 19:37:02 浏览: 144
根据错误日志,似乎是在执行 top-level 步骤时出现了错误导致构建失败。请尝试以下步骤来解决问题:
1. 检查你的 crosstool-ng 版本是否最新,可以尝试更新到最新版本。
2. 检查你的编译环境是否正确设置,例如是否安装了必要的依赖项。
3. 检查构建日志(build.log)以获取更详细的错误信息,以便更好地理解问题。
4. 检查 /home/jj/ct-ng/ct-ng-build/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt 文件中是否有已知问题和解决方法。
5. 如果以上步骤都无法解决问题,请尝试在 Crosstool-NG 的官方论坛上求助,那里有更专业的开发者可以帮助你解决问题。
相关问题
cmy@ubuntu:~/x6818/build$ sudo ./build_root.sh /usr/bin/make -j1 O=/home/cmy/x6818/build/buildroot-2023.02.1/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig make[1]: 进入目录“/home/cmy/x6818/build/buildroot-2023.02.1” make[1]: 离开目录“/home/cmy/x6818/build/buildroot-2023.02.1” >>> toolchain-external-custom Configuring Incorrect selection of kernel headers: expected 3.4.x, got 4.10.x make: *** [package/pkg-generic.mk:283:/home/cmy/x6818/build/buildroot-2023.02.1/output/build/toolchain-external-custom/.stamp_configured] 错误 1
根据你提供的信息,你运行了一个名为“build_root.sh”的脚本,该脚本似乎在构建一个名为“toolchain-external-custom”的软件包时遇到了问题。错误消息提示你选择了错误的内核头文件版本,期望的是3.4.x,而实际的是4.10.x。你需要检查你的构建环境和配置,确保正确的内核头文件版本被选择和使用。
cmy@ubuntu:~/x6818/build/buildroot-2023.02.1$ make menuconfig mkdir -p /home/cmy/x6818/build/buildroot-2023.02.1/output/build/buildroot-config/lxdialog PKG_CONFIG_PATH="" make CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \ obj=/home/cmy/x6818/build/buildroot-2023.02.1/output/build/buildroot-config -C support/kconfig -f Makefile.br mconf /usr/bin/gcc -DCURSES_LOC="<curses.h>" -DLOCALE -I/home/cmy/x6818/build/buildroot-2023.02.1/output/build/buildroot-config -DCONFIG_=\"\" -MM *.c > /home/cmy/x6818/build/buildroot-2023.02.1/output/build/buildroot-config/.depend 2>/dev/null || : /usr/bin/gcc -DCURSES_LOC="<curses.h>" -DLOCALE -I/home/cmy/x6818/build/buildroot-2023.02.1/output/build/buildroot-config -DCONFIG_=\"\" -c conf.c -o /home/cmy/x6818/build/buildroot-2023.02.1/output/build/buildroot-config/conf.o *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel or libncurses-dev *** depending on your distribution) and try again. *** make[2]: *** [Makefile:253:/home/cmy/x6818/build/buildroot-2023.02.1/output/build/buildroot-config/dochecklxdialog] 错误 1 make[1]: *** [Makefile:959:/home/cmy/x6818/build/buildroot-2023.02.1/output/build/buildroot-config/mconf] 错误 2 make: *** [Makefile:82:_all] 错误 2
这段命令的执行结果显示出现了错误,提示缺少 ncurses 库或者相关的头文件,导致无法完成 make menuconfig 的操作。建议按照错误提示安装 ncurses 库或者相关的开发包,具体操作方式根据你的 Linux 发行版有所不同。例如,对于 Ubuntu,可以使用以下命令安装相应的库和头文件:
```
sudo apt-get install libncurses-dev
```
安装完成后重新执行 make menuconfig 命令即可。
阅读全文