../ct-ng-build/bin/ct-ng build [INFO ] Performing some trivial sanity checks [INFO ] Build started 20230609.072135 [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.41) [00:00] / make: *** [build] 错误 1怎么解决
时间: 2024-04-02 16:36:57 浏览: 122
这个错误提示来自 crosstool-NG,是一个交叉编译工具链生成器。根据错误信息,可能是在执行“(top-level)”步骤时出错。你可以查看错误日志文件“build.log”以获取更多详细信息,路径应该在你运行 crosstool-NG 的目录下。另外,你也可以查看“Known issues”文件夹中的“B - Known issues.txt”文件,里面可能有一些已知的问题和解决方法。一些常见的解决方法包括:检查是否缺少依赖项、检查工具链的安装路径是否正确、检查是否存在权限问题等。
相关问题
@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怎么解决
根据错误日志,似乎是在执行 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 的官方论坛上求助,那里有更专业的开发者可以帮助你解决问题。
Configuring KALDI to use MKL. Checking compiler c++ ... Checking OpenFst library in /home/mzh/kaldi/tools/openfst-1.7.2 ... Checking cub library in /home/mzh/kaldi/tools/cub-1.8.0 ... Performing OS specific configuration ... On Linux: Checking for linear algebra header files ... Configuring MKL library directory: ***configure failed: Could not find the MKL library directory. Please use the switch --mkl-root and/or --mkl-libdir if you have MKL installed, or try another math library, e.g. --mathlib=OPENBLAS (Kaldi may be slower). ***
这个错误提示是因为在编译 Kaldi 时没有找到 MKL(maths kernel library) 库文件。要解决这个问题,可以按照以下步骤进行:
1. 确认你已经安装了 MKL 库,并确定其路径。如果你没有安装 MKL,可以在 Intel 官网上下载并安装。
2. 在编译 Kaldi 时,增加 `--mkl-root` 和 `--mkl-libdir` 两个参数,指定 MKL 库文件的路径。例如:
```
./configure --mathlib=mkl --mkl-root=/path/to/mkl --mkl-libdir=/path/to/mkl/lib/intel64
```
其中,`/path/to/mkl` 是你的 MKL 安装路径,`/path/to/mkl/lib/intel64` 是 MKL 库文件的路径。
3. 重新编译 Kaldi。
如果你仍然无法解决问题,可以尝试使用其他数学库,如 OpenBLAS。在第二步中,将 `--mathlib` 参数设置为 `openblas` 即可。
阅读全文