How to precisely reproduce the buildbot fail in local?


I have a patch that caused several buildbot fails in a lit test. The test passed with my local setup. Surprisingly, it passed even I used the same commands with the bot.

Here is one of the failed bot:

Here are steps I tried (used the identical command copy + paste from the bot):

$ cmake -G Ninja …/llvm/llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=True ‘-DLLVM_LIT_ARGS=’"’"’-v’"’"’’ -DCMAKE_INSTALL_PREFIX=…/stage1.install -DLLVM_ENABLE_ASSERTIONS=ON ‘-DCMAKE_C_FLAGS=’"’"’-march=broadwell’"’"’’ ‘-DCMAKE_CXX_FLAGS=’"’"’-march=broadwell’"’"’’ ‘-DLLVM_TARGETS_TO_BUILD=’"’"‘X86’"’"’’ ‘-DLLVM_ENABLE_PROJECTS=llvm;clang’

$ ninja check-all

Any idea how can I reproduce it locally?



Hi Yuanfang,

Great point!!
I still haven't gotten the assertion, but with thoroughly debug, I believe it is the root cause. Thanks for your help!