[lldb-dev] Linux: Failing lldb unit tests and TestLinuxCore.py

Pavel Labath via lldb-dev lldb-dev at lists.llvm.org
Thu Jun 28 07:44:56 PDT 2018


The core file tests should be fixed as of r335859. I tried reproing
the python unit tests problem, but I couldn't get it to fail that way.
I can help you get to the bottom of it if you're interested, but it's
going to take some interactive debugging (for start I'd need to see
the link command for the test binary in question).

cheers,
pl
On Tue, 26 Jun 2018 at 16:33, Pavel Labath <labath at google.com> wrote:
>
> The BUILD_SHARED_LIBS part is likely to be the issue. LLDB libraries
> have cyclic dependencies, which don't play well with shared libraries.
> I think somebody "fixed" it some time ago (i.e., just made the flag be
> ignored for lldb), but I'm not sure if he also checked the unit tests.
> I'll see if I can reproduce that on my end.
> On Tue, 26 Jun 2018 at 16:28, Gábor Márton <martongabesz at gmail.com> wrote:
> >
> > Hi Pavel,
> >
> > I do an in-tree build, so lldb is next to clang.
> > And I use ccache, could that be a problem? If yes then why just with the unit tests?
> > Here is how I configured cmake:
> > cmake ../../git/llvm -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DBUILD_SHARED_LIBS=1 -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_ASSERTIONS=1
> >
> > Thanks,
> > Gabor
> >
> > On Tue, Jun 26, 2018 at 5:05 PM Pavel Labath <labath at google.com> wrote:
> >>
> >> Hello Gabor,
> >>
> >> The error message (Option 'help-list' registered more than once) leads
> >> me to believe that this is caused by an uncommon (for lldb, at least)
> >> build configuration. Can you share your cmake configuration?
> >>
> >> I suspect TestLinuxCore is also failing due to unexpected build
> >> configuration, specifically missing targets in llvm (mips?). I'll try
> >> to fix that this week.
> >> On Tue, 26 Jun 2018 at 14:44, Gábor Márton via lldb-dev
> >> <lldb-dev at lists.llvm.org> wrote:
> >> >
> >> > Hi
> >> >
> >> > By using "ninja check-lldb-unit" some of the unit tests fail with the tip of the master. (I am using Ubuntu Linux.) The error is always related to the CommandLine options:
> >> >
> >> > FAIL: lldb-Unit :: ScriptInterpreter/Python/./ScriptInterpreterPythonTests/PythonDataObjectsTest.TestBorrowedReferences (120 of 363)
> >> > ******************** TEST 'lldb-Unit :: ScriptInterpreter/Python/./ScriptInterpreterPythonTests/PythonDataObjectsTest.TestBorrowedReferences' FAILED ********************
> >> > Note: Google Test filter = PythonDataObjectsTest.TestBorrowedReferences
> >> > [==========] Running 1 test from 1 test case.
> >> > [----------] Global test environment set-up.
> >> > [----------] 1 test from PythonDataObjectsTest
> >> > [ RUN      ] PythonDataObjectsTest.TestBorrowedReferences
> >> > : CommandLine Error: Option 'help-list' registered more than once!
> >> > LLVM ERROR: inconsistency in registered CommandLine options
> >> >
> >> > The other lit tests pass, except TestLinuxCore.py.
> >> >
> >> > I already set up LD_LIBRARY_PATH to point to $build/bin.
> >> > Am I missing something else?
> >> >
> >> > Any help would be appreciated.
> >> >
> >> > Thanks,
> >> > Gábor
> >> > _______________________________________________
> >> > lldb-dev mailing list
> >> > lldb-dev at lists.llvm.org
> >> > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


More information about the lldb-dev mailing list