我正在尝试为树莓派构建一个交叉编译器。我正在使用 crosstool-ng 来构建这个编译器。我正在关注此链接以供参考。我已经按照链接中的说明进行了所有配置。但是当我尝试构建时,我收到“CT_TARGET command not found”错误。我尝试在谷歌上搜索该错误无法找到任何匹配项。有人可以帮助我克服这个问题吗?这是完整的构建输出。
/opt/cross/bin$ sudo ct-ng build
/opt/cross/bin/.config.2: line 30: CT_TARGET: command not found
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: source[/opt/cross/bin/.config.2@30]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@25]
[ERROR] >>
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> '/opt/cross/share/doc/crosstool-ng/ct-ng.1.21.0/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 24087567:26.24)
make: *** [build] Error 127