我已成功完成了安装位于this link的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案例中收到此错误,即使我按照快速入门指南查看了这封信?
答案 0 :(得分:6)
make[4]: yacc: Command not found
这应该给你提示。显然,您需要安装测试所需的yacc
工具。如何安装将取决于您使用的平台。