Hi all,
I need help understanding a regression that only affects the flang-aarch64-dylib build bot and that I wasn’t able to reproduce locally.
The commit in question (which I have reverted for now) is here and is part of the effort to replace ManagedStatic
. The failed build is here.
As you can see, clang-tblgen
fails with
: CommandLine Error: Option 'debug-counter' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x34)[0x595088]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen(_ZN4llvm3sys17RunSignalHandlersEv+0x38)[0x593100]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen[0x5957d8]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffffa407e5c0]
/lib/aarch64-linux-gnu/libc.so.6(gsignal+0xe0)[0xffff9fe37d78]
/lib/aarch64-linux-gnu/libc.so.6(abort+0x114)[0xffff9fe24aac]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen(_ZN4llvm18report_fatal_errorERKNS_5TwineEb+0x1e4)[0x538808]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen(_ZN4llvm18report_fatal_errorERKNS_5TwineEb+0x0)[0x538624]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen[0x52b958]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen(_ZN4llvm2cl6Option11addArgumentEv+0x50)[0x51cd48]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen(_ZN4llvm23initDebugCounterOptionsEv+0xb4)[0x533770]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen[0x524754]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen(_ZN4llvm2cl23ParseCommandLineOptionsEiPKPKcNS_9StringRefEPNS_11raw_ostreamES2_b+0x44)[0x521e74]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen[0x5077d0]
/lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe8)[0xffff9fe24e10]
/home/tcwg-buildbot/worker/flang-aarch64-dylib/build/bin/clang-tblgen[0x42d788]
… which shouldn’t be possible because the CommandLine option in question is owned by a static variable, so I’m pretty much at a loss as to what’s going on.
One thing that might help is if the buildbot owner (who?) could provide more details on the bot’s configuration and perhaps even the produced binaries to analyze. Or perhaps somebody else has a brainwave or can reproduce this.