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

Gábor Márton via lldb-dev lldb-dev at lists.llvm.org
Tue Jun 26 08:28:46 PDT 2018


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180626/0e8df5ba/attachment.html>


More information about the lldb-dev mailing list