我正在尝试使用 crosstool-ng 构建工具链。但是,我在执行构建操作时收到此错误。
Retrieving 'libelf-0.8.13'
[ERROR] libelf: download failed
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_Abort[scripts/functions@487]
[ERROR] >> called from: CT_DoFetch[scripts/functions@2103]
[ERROR] >> called from: CT_PackageRun[scripts/functions@2063]
[ERROR] >> called from: CT_Fetch[scripts/functions@2174]
[ERROR] >> called from: do_libelf_get[scripts/build/companion_libs/200-libelf.sh@12]
[ERROR] >> called from: do_companion_libs_get[scripts/build/companion_libs.sh@15]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@648]
[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] >> https://crosstool-ng.github.io/docs/known-issues/
[ERROR] >>
[ERROR] >> If you feel this is a bug in crosstool-NG, report it at:
[ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR] >>
[ERROR] >> Make sure your report includes all the information pertinent to this issue.
[ERROR] >> Read the bug reporting guidelines here:
[ERROR] >> http://crosstool-ng.github.io/support/
[ERROR]
[ERROR] (elapsed: 2:19.55)
[02:22] / make: *** [build] Error 1
根据我的阅读,这是因为下载 libelf-0.8.13 的链接不再存在。因此,在 libelf.in 文件中,我已将链接更改为存在 libelf-0.8.13 以供下载的链接,但我仍然遇到相同的错误。
我可以通过取消选中 menuconfig 中的调试选项来覆盖它,我已经使用它成功构建了一个工具链,但是,我认为缺少 libelf 会导致稍后在使用工具链时出现问题。