<div dir="ltr">Hi Pavel,<div><br></div><div>Thank you for the fix and for taking care of this!</div><div>So, the particular test binary is: ScriptInterpreterPythonTests .</div><div>And here is the link command:</div><div><div>) ninja ScriptInterpreterPythonTests -v</div><div>[1/1] : && /usr/lib/ccache/clang++  -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O3  -Wl,-allow-shlib-undefined     -Wl,-O3 -Wl,--gc-sections tools/lldb/unittests/ScriptInterpreter/Python/CMakeFiles/ScriptInterpreterPythonTests.dir/PythonDataObjectsTests.cpp.o tools/lldb/unittests/ScriptInterpreter/Python/CMakeFiles/ScriptInterpreterPythonTests.dir/PythonExceptionStateTests.cpp.o tools/lldb/unittests/ScriptInterpreter/Python/CMakeFiles/ScriptInterpreterPythonTests.dir/PythonTestSuite.cpp.o  -o tools/lldb/unittests/ScriptInterpreter/Python/ScriptInterpreterPythonTests  -Wl,-rpath,/home/egbomrt/WORK/llvm3/build/release_assert/lib -lpthread lib/libgtest_main.so.7svn lib/libgtest.so.7svn -lpthread lib/liblldbHost.a lib/liblldbPluginScriptInterpreterPython.a /usr/lib/x86_64-linux-gnu/<a href="http://libpython2.7.so">libpython2.7.so</a> lib/liblldbHost.a lib/liblldbCore.a lib/liblldbSymbol.a lib/liblldbTarget.a lib/liblldbBreakpoint.a lib/liblldbDataFormatters.a lib/liblldbInterpreter.a lib/liblldbExpression.a lib/liblldbPluginProcessUtility.a lib/liblldbPluginCPlusPlusLanguage.a lib/liblldbPluginObjCLanguage.a lib/liblldbPluginExpressionParserClang.a lib/liblldbPluginExpressionParserGo.a lib/liblldbPluginSymbolFileDWARF.a lib/liblldbPluginSymbolFilePDB.a lib/liblldbCommands.a lib/liblldbPluginObjectFileJIT.a lib/liblldbPluginAppleObjCRuntime.a lib/liblldbHost.a lib/liblldbCore.a lib/liblldbSymbol.a lib/liblldbTarget.a lib/liblldbBreakpoint.a lib/liblldbDataFormatters.a lib/liblldbInterpreter.a lib/liblldbExpression.a lib/liblldbPluginProcessUtility.a lib/liblldbPluginCPlusPlusLanguage.a lib/liblldbPluginObjCLanguage.a lib/liblldbPluginExpressionParserClang.a lib/liblldbPluginExpressionParserGo.a lib/liblldbPluginSymbolFileDWARF.a lib/liblldbPluginSymbolFilePDB.a lib/liblldbCommands.a lib/liblldbPluginObjectFileJIT.a lib/liblldbPluginAppleObjCRuntime.a lib/liblldbHost.a lib/liblldbCore.a lib/liblldbSymbol.a lib/liblldbTarget.a lib/liblldbBreakpoint.a lib/liblldbDataFormatters.a lib/liblldbInterpreter.a lib/liblldbExpression.a lib/liblldbPluginProcessUtility.a lib/liblldbPluginCPlusPlusLanguage.a lib/liblldbPluginObjCLanguage.a lib/liblldbPluginExpressionParserClang.a lib/liblldbPluginExpressionParserGo.a lib/liblldbPluginSymbolFileDWARF.a lib/liblldbPluginSymbolFilePDB.a lib/liblldbCommands.a lib/liblldbPluginObjectFileJIT.a lib/liblldbPluginAppleObjCRuntime.a lib/liblldbHost.a lib/liblldbCore.a lib/liblldbSymbol.a lib/liblldbTarget.a lib/liblldbBreakpoint.a lib/liblldbDataFormatters.a lib/liblldbInterpreter.a lib/liblldbExpression.a lib/liblldbPluginProcessUtility.a lib/liblldbPluginCPlusPlusLanguage.a lib/liblldbPluginObjCLanguage.a lib/liblldbPluginExpressionParserClang.a lib/liblldbPluginExpressionParserGo.a lib/liblldbPluginSymbolFileDWARF.a lib/liblldbPluginSymbolFilePDB.a lib/liblldbCommands.a lib/liblldbPluginObjectFileJIT.a lib/liblldbPluginAppleObjCRuntime.a lib/libLLVMDemangle.so.7svn lib/libclangFrontend.so.7svn lib/libLLVMExecutionEngine.so.7svn lib/libLLVMObject.so.7svn lib/libLLVMCore.so.7svn lib/libLLVMRuntimeDyld.so.7svn lib/libclangCodeGen.so.7svn lib/libclangDriver.so.7svn lib/libclangEdit.so.7svn lib/libclangParse.so.7svn lib/libclangRewrite.so.7svn lib/libclangRewriteFrontend.so.7svn lib/libclangSema.so.7svn lib/libclangSerialization.so.7svn lib/libLLVMipo.so.7svn lib/libLLVMMCJIT.so.7svn lib/libclangBasic.so.7svn lib/libLLVMDebugInfoDWARF.so.7svn lib/libclangLex.so.7svn lib/libLLVMDebugInfoPDB.so.7svn lib/liblldbBase.a lib/liblldbUtility.a lib/libLLVMSupport.so.7svn -lpthread /usr/lib/x86_64-linux-gnu/<a href="http://libpython2.7.so">libpython2.7.so</a> /usr/lib/x86_64-linux-gnu/libxml2.so -ldl -ledit -lcurses /usr/lib/x86_64-linux-gnu/libform.so /usr/lib/x86_64-linux-gnu/libpanel.so -ltinfo lib/libLLVMBinaryFormat.so.7svn lib/libclangAST.so.7svn -Wl,-rpath-link,/home/egbomrt/WORK/llvm3/build/release_assert/lib && cd /home/egbomrt/WORK/llvm3/build/release_assert/tools/lldb/unittests/ScriptInterpreter/Python && /usr/local/bin/cmake -E make_directory /home/egbomrt/WORK/llvm3/build/release_assert/tools/lldb/unittests/ScriptInterpreter/Python/./Inputs</div></div><div><br></div><div>Let me know if there is any additional info you need,</div><div><br></div><div>Gabor</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 28, 2018 at 4:45 PM Pavel Labath <<a href="mailto:labath@google.com">labath@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The core file tests should be fixed as of r335859. I tried reproing<br>
the python unit tests problem, but I couldn't get it to fail that way.<br>
I can help you get to the bottom of it if you're interested, but it's<br>
going to take some interactive debugging (for start I'd need to see<br>
the link command for the test binary in question).<br>
<br>
cheers,<br>
pl<br>
On Tue, 26 Jun 2018 at 16:33, Pavel Labath <<a href="mailto:labath@google.com" target="_blank">labath@google.com</a>> wrote:<br>
><br>
> The BUILD_SHARED_LIBS part is likely to be the issue. LLDB libraries<br>
> have cyclic dependencies, which don't play well with shared libraries.<br>
> I think somebody "fixed" it some time ago (i.e., just made the flag be<br>
> ignored for lldb), but I'm not sure if he also checked the unit tests.<br>
> I'll see if I can reproduce that on my end.<br>
> On Tue, 26 Jun 2018 at 16:28, Gábor Márton <<a href="mailto:martongabesz@gmail.com" target="_blank">martongabesz@gmail.com</a>> wrote:<br>
> ><br>
> > Hi Pavel,<br>
> ><br>
> > I do an in-tree build, so lldb is next to clang.<br>
> > And I use ccache, could that be a problem? If yes then why just with the unit tests?<br>
> > Here is how I configured cmake:<br>
> > 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<br>
> ><br>
> > Thanks,<br>
> > Gabor<br>
> ><br>
> > On Tue, Jun 26, 2018 at 5:05 PM Pavel Labath <<a href="mailto:labath@google.com" target="_blank">labath@google.com</a>> wrote:<br>
> >><br>
> >> Hello Gabor,<br>
> >><br>
> >> The error message (Option 'help-list' registered more than once) leads<br>
> >> me to believe that this is caused by an uncommon (for lldb, at least)<br>
> >> build configuration. Can you share your cmake configuration?<br>
> >><br>
> >> I suspect TestLinuxCore is also failing due to unexpected build<br>
> >> configuration, specifically missing targets in llvm (mips?). I'll try<br>
> >> to fix that this week.<br>
> >> On Tue, 26 Jun 2018 at 14:44, Gábor Márton via lldb-dev<br>
> >> <<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<br>
> >> ><br>
> >> > Hi<br>
> >> ><br>
> >> > 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:<br>
> >> ><br>
> >> > FAIL: lldb-Unit :: ScriptInterpreter/Python/./ScriptInterpreterPythonTests/PythonDataObjectsTest.TestBorrowedReferences (120 of 363)<br>
> >> > ******************** TEST 'lldb-Unit :: ScriptInterpreter/Python/./ScriptInterpreterPythonTests/PythonDataObjectsTest.TestBorrowedReferences' FAILED ********************<br>
> >> > Note: Google Test filter = PythonDataObjectsTest.TestBorrowedReferences<br>
> >> > [==========] Running 1 test from 1 test case.<br>
> >> > [----------] Global test environment set-up.<br>
> >> > [----------] 1 test from PythonDataObjectsTest<br>
> >> > [ RUN      ] PythonDataObjectsTest.TestBorrowedReferences<br>
> >> > : CommandLine Error: Option 'help-list' registered more than once!<br>
> >> > LLVM ERROR: inconsistency in registered CommandLine options<br>
> >> ><br>
> >> > The other lit tests pass, except TestLinuxCore.py.<br>
> >> ><br>
> >> > I already set up LD_LIBRARY_PATH to point to $build/bin.<br>
> >> > Am I missing something else?<br>
> >> ><br>
> >> > Any help would be appreciated.<br>
> >> ><br>
> >> > Thanks,<br>
> >> > Gábor<br>
> >> > _______________________________________________<br>
> >> > lldb-dev mailing list<br>
> >> > <a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
> >> > <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
</blockquote></div>