[lldb-dev] [Bug 36687] New: Defective out-of-tree builds with LLVM_LINK_LLVM_DYLIB=ON

2018-03-11 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=36687

Bug ID: 36687
   Summary: Defective out-of-tree builds with
LLVM_LINK_LLVM_DYLIB=ON
   Product: lldb
   Version: 6.0
  Hardware: PC
OS: Linux
Status: NEW
  Severity: normal
  Priority: P
 Component: All Bugs
  Assignee: lldb-dev@lists.llvm.org
  Reporter: evange...@foutrelis.com
CC: llvm-b...@lists.llvm.org

(mostly copy pasting from bug 28127)

Either this issue has regressed in LLDB 6.0.0 or the LLVM package I pushed to
Arch Linux is buggy.

I'm doing an out-of-tree build of LLDB 6.0.0 with LLVM_LINK_LLVM_DYLIB=ON. The
resulting lldb-{server,test} binaries link to both libLLVMSupport.a and
libLLVM-6.0.so and result in the following runtime errors:

=
$ lldb-server 
: CommandLine Error: Option 'disable-symbolication' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

$ lldb-test 
: CommandLine Error: Option 'help-list' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
=

I'm unable to reproduce the issue on Fedora Rawhide, but I believe that has to
do with the fact that Fedora's libLLVM-6.0.so links statically to libstdc++
(not sure why this has any effect on this problem though). If I build my LLVM
package with static libstdc++ like Fedora does
(-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-Bsymbolic -static-libstdc++") then
lldb-{server,test} run fine.

Debian's lldb-6.0 package seems to work correctly, but a custom out-of-tree
build of LLDB 6.0.0 on Debian testing (against llvm-6.0) showed the same
problem. (Perhaps it matters whether it's an in-tree build?)

For now I've resorted to removing all references to /usr/lib/libLLVMSupport.a
from the generated build.ninja file. This seems to allow the above tools to
run.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] [Bug 36690] New: testsuite: MakeInlineTest ignores no_debug_info_test

2018-03-11 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=36690

Bug ID: 36690
   Summary: testsuite: MakeInlineTest ignores no_debug_info_test
   Product: lldb
   Version: unspecified
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: All Bugs
  Assignee: lldb-dev@lists.llvm.org
  Reporter: jan.kratoch...@redhat.com
CC: llvm-b...@lists.llvm.org

Created attachment 20050
  --> https://bugs.llvm.org/attachment.cgi?id=20050&action=edit
Attempted fix with no effect

These testcases should be marked as no_debug_info_test:

packages/Python/lldbsuite/test/functionalities/data-formatter/typedef_array/TestTypedefArray.py
packages/Python/lldbsuite/test/functionalities/frame_var_scope/TestFrameVariableScope.py
packages/Python/lldbsuite/test/lang/cpp/extern_c/TestExternCSymbols.py
packages/Python/lldbsuite/test/lang/cpp/lambdas/TestLambdas.py
packages/Python/lldbsuite/test/sample_test/TestSampleInlineTest.py

At least during my tests it complains by:
  dwz: a.out.debug.dwz: .debug_info section not present

But lldbinline.MakeInlineTest ignores decorators.no_debug_info_test there.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev