Bug 1548758 - Missing LLDB.h header file in lldb-devel
Summary: Missing LLDB.h header file in lldb-devel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lldb
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tilmann Scheller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-24 20:43 UTC by Omair Majid
Modified: 2018-04-03 13:24 UTC (History)
7 users (show)

Fixed In Version: lldb-6.0.0-2.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-03 13:24:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch for Fedora 28 LLDB package (3.09 KB, patch)
2018-03-08 15:39 UTC, Tilmann Scheller
no flags Details | Diff
Patch for rawhide LLDB package (3.09 KB, application/mbox)
2018-03-08 15:40 UTC, Tilmann Scheller
no flags Details

Description Omair Majid 2018-02-24 20:43:09 UTC
There is a missing LLDB.h file in lldb-devel package. This is the entry point for all LLDB-API using code so various programs fail to compile because of this.

On Fedora 27:

$ rpm -q lldb-devel
lldb-devel-5.0.1-1.fc27.x86_64
$ rpm -ql lldb-devel | grep LLDB.h
/usr/include/lldb/API/LLDB.h

On Fedora 28 (or rawhide, this is a bit bastardized system):

$ rpm -q lldb-devel    
lldb-devel-6.0.0-0.3.rc2.fc28.x86_64  
$ rpm -ql lldb-devel | grep LLDB.h

The header is present in fedora sources:

$ fedpkg  clone -a lldb
$ cd lldb
$ fedpkg prep
$ git rev-parse HEAD
3496185f17b8bf0ed623856dd026ead53fc34e5c
$ find -iname 'LLDB.h'
./lldb-6.0.0rc2.src/include/lldb/API/LLDB.h

But is not installed?

An example of a failure is seen on copr here: https://copr-be.cloud.fedoraproject.org/results/@dotnet-sig/dotnet/fedora-28-x86_64/00720374-dotnet/build.log.gz:

  CMake Error at src/ToolBox/SOS/lldbplugin/CMakeLists.txt:87 (message):
    Cannot find LLDB.h.  Try installing lldb-3.6-dev (or the appropriate
    package for your platform)

Comment 1 Tilmann Scheller 2018-03-07 14:40:53 UTC
Looks like this is broken since r309021 including the trunk snapshot of today. This means it also affects LLVM 6.0.

I've filed https://bugs.llvm.org/show_bug.cgi?id=36630 to get this fixed upstream.

The change that introduced the regression is easy to revert so I hope to have the Fedora LLDB package fixed soon.

Comment 2 Tilmann Scheller 2018-03-08 15:39:47 UTC
Created attachment 1405887 [details]
Patch for Fedora 28 LLDB package

Comment 3 Tilmann Scheller 2018-03-08 15:40:23 UTC
Created attachment 1405888 [details]
Patch for rawhide LLDB package

Comment 4 Tilmann Scheller 2018-03-08 15:43:22 UTC
Attached patches for Fedora 28 and rawhide. Verified them with Mock builds, with the patches applied the headers are included in the lldb-devel package again.

I don't have write access to the Fedora LLDB package yet but Tom should be able to apply them soon.

Comment 5 Fedora Update System 2018-03-14 18:15:37 UTC
lldb-6.0.0-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-e435db4287

Comment 6 Fedora Update System 2018-03-15 13:30:32 UTC
lldb-6.0.0-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-e435db4287

Comment 7 Fedora Update System 2018-04-03 13:24:06 UTC
lldb-6.0.0-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.