4

我已成功完成安装位于此链接的 LLVM 测试基础设施 (LNT) 的所有步骤。最后一步是执行以下命令:

lnt runtest nt \
    --sandbox SANDBOX \
    --cc ~/llvm.obj/Release/bin/clang \
    --test-suite ~/llvm-test-suite

我用我的值替换了命令,如下所示:

lnt runtest nt \
    --sandbox ~/mysandbox \
    --cc /opt/llvm/Debug+Asserts/bin/clang++ \
    --test-suite ~/llvm-test-suite

当我运行此命令时,我看到以下输出:

2013-05-16 14:43:27: checking source versions
2013-05-16 14:43:32: scanning for LNT-based test modules
2013-05-16 14:43:32: found 0 LNT-based test modules
2013-05-16 14:43:32: using nickname: 'routemapper__clang_DEV__x86_64'
2013-05-16 14:43:32: starting test in '/home/routemapper/mysandbox/test-2013-05-14_12-44-27'
2013-05-16 14:43:32: configuring...
2013-05-16 14:43:40: executing "nightly tests" with -j4...
2013-05-16 15:06:09: executing test modules
2013-05-16 15:06:09: loading nightly test data...
nt.py:810: fatal error: nightly test failed, no report generated

我认为以下片段test log可能与它有关:

yacc -d /home/routemapper/llvm-test-suite/MultiSource/Applications/Burg/gram.y
make[4]: yacc: Command not found
make[4]: *** [y.tab.h] Error 127
yacc -d /home/routemapper/llvm-test-suite/MultiSource/Applications/Burg/gram.y
make[4]: yacc: Command not found

知道为什么我可能会在示例 LNT 案例中收到此错误,即使我完全按照快速入门指南进行操作?

4

1 回答 1

6

make[4]: yacc: Command not found

这应该给你提示。显然,您需要安装yacc测试所需的工具。如何安装它取决于您使用的平台。

于 2013-05-17T09:19:46.557 回答