gpt4 book ai didi

build - 一旦发生错误,是否可以加速 crosstool-ng 构建?

转载 作者:IT老高 更新时间:2023-10-28 11:23:27 24 4
gpt4 key购买 nike

我正在使用 crosstool-ng 为 beagleboard-xm 构建一个 tolchain。构建以如下方式进行:

[INFO ] ================================================================= [INFO ] Retrieving needed toolchain components' tarballs [INFO ] Retrieving needed toolchain components' tarballs: done in 0.51s (at 00:08) [INFO ] ================================================================= [INFO ] Extracting and patching toolchain components [INFO ] Extracting and patching toolchain components: done in 7.91s (at 00:16) [INFO ] ================================================================= [INFO ] Installing GMP [INFO ] Installing GMP: done in 140.48s (at 02:36) [INFO ] ================================================================= [INFO ] Installing MPFR [INFO ] Installing MPFR: done in 36.01s (at 03:13) [INFO ] ================================================================= [INFO ] Installing PPL . .

`

现在,经过 50 分钟的编译,它因错误而中断:

[ERROR] configure: error: expat is missing or unusable"

我安装了所需的软件包(在 Ubuntu 10.04 中),但该错误不是问题。早些时候,我能够进入成功安装编译器的步骤,并且在此之前没有错误。我想知道是否有办法让该工具跳过以前成功的步骤,从而节省时间? crosstool-ng 的工作方式是否可行?

最佳答案

是的,这是可能的。像这样运行 ct-ng

CT_DEBUG_CT_SAVE_STEPS=1 ct-ng build

在某个步骤崩溃后,只需在生成的列表中找到该步骤

ct-ng list-steps

此时您可以通过运行恢复构建

RESTART=libc_start_files ct-ng build

关于build - 一旦发生错误,是否可以加速 crosstool-ng 构建?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9900005/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com