LLDB.h is missing from liblldb-6.0-dev package

Bug #1761009 reported by kasperk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
llvm-toolchain-6.0 (Debian)
Fix Released
Unknown
llvm-toolchain-6.0 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The API directory is missing from the package which carries an imported header LLDB.h.

All the previous versions of this dev packages have this directory.

Source code has this directory present in release_60 branch as well https://github.com/llvm-mirror/lldb/tree/release_60/include/lldb/API

If this is going to be the default liblldb-dev on bionic, please consider fixing it.

Tags: bionic
Revision history for this message
kasperk (kasper3) wrote :
tags: added: bionic
Revision history for this message
kasperk (kasper3) wrote :

Disregard my previous comment, that code path in CMake is for MacOS only, not Linux.

Revision history for this message
kasperk (kasper3) wrote :
Nish Aravamudan (nacc)
Changed in llvm-toolchain-6.0 (Ubuntu):
status: New → Confirmed
assignee: nobody → Nish Aravamudan (nacc)
Revision history for this message
Nish Aravamudan (nacc) wrote :

I just uploaded llvm-toolchain-6.0_6.0-1ubuntu2~ppa1 to my PPA at https://launchpad.net/~nacc/+archive/ubuntu/lp1761009 and it is building now. Please test and report back once it's available.

Changed in llvm-toolchain-6.0 (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
kasperk (kasper3) wrote :

Thanks Nish. Confirmed that LLDB.h is present in this package and issue is resolved.

Tested on fresh Bionic:

```
sed -i.old '1s;^;deb-src http://ppa.launchpad.net/nacc/lp1761009/ubuntu bionic main\n;' /etc/apt/sources.list
sed -i.old '1s;^;deb http://ppa.launchpad.net/nacc/lp1761009/ubuntu bionic main\n;' /etc/apt/sources.list

cat <<EOT >> nacc-llvm-6.0-key.pgp.pub
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.6
Comment: Hostname: keyserver.ubuntu.com

mQINBFZ65eABEADBpDdmE/S5e6Sq3yqvTxZAzH28rgrENr7yI190VfL519cWGMQAG3vMS8fx
0AvghM5sRgCppFcHP76+hRcLWtYOfMfuSmGs8eNBjYCCKnjDZ8TyO/NL9/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ap7k0UhqqIFahcy6myOhhPnASoVi/HB
PbUGm/VyOrqBY+y+ZLEWkYDje7FOWVPR3UUWfwWZpPcgODzysp3PTZ+g/DYByn6BuSSIb6e2
BBjF3hb6Id4e3/AcAD00hu+aqIDera2tPy8ga9QnqgQ71pKIupE8+Zq8ylKo74+CVME48iER
2mOLLh9Xb4t+VRi971PgR74u34NxJwE+zfVPoaNzYAvO4Jz0tIVwj1GBoNxHTwsUOEJra7Mq
ufgEA+Ck7yM1wZ1dYqKFKWdEdIDz0RjikOwu0YZRbXlhJP45DAsa1mB1i1e0aBOtLzz2yBIQ
=eTc3
-----END PGP PUBLIC KEY BLOCK-----
EOT

apt-key add nacc-llvm-6.0-key.pgp.pub
apt update
apt install -y liblldb-6.0-dev llvm clang < /dev/null

find / -name LLDB.h
# /usr/lib/llvm-6.0/include/lldb/API/LLDB.h
ls /usr/lib/llvm-6.0/include/lldb/API
# rest of the headers are there
ls -1 /usr/lib/llvm-6.0/include/lldb/API | wc -l
# 68 (previously it was 0)

# then tried building dotnet, which wasn't building before
# (without -DENABLE_LLDBPLUGIN=0 option; libsosplugin.so in product requires LLDB.h)

apt install -y curl libcurl4-openssl-dev git cmake libunwind-dev liblttng-ust-dev libicu-dev < /dev/null

git clone https://github.com/dotnet/coreclr --single-branch -b release/2.1 --depth 1
cd coreclr
./build.sh
# succeeded
```

Revision history for this message
Nish Aravamudan (nacc) wrote :

Uploaded to bionic-proposed.

Submitted to Debian and already picked up into their VCS.

Nish Aravamudan (nacc)
Changed in llvm-toolchain-6.0 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package llvm-toolchain-6.0 - 1:6.0-1ubuntu2

---------------
llvm-toolchain-6.0 (1:6.0-1ubuntu2) bionic; urgency=medium

  * debian/patches/install-lldb-sb-headers.patch: Install lldb's
    SB headers (pr36630). Thanks to Pavel Labath <email address hidden>.
    LP: #1761009

 -- Nishanth Aravamudan <email address hidden> Thu, 05 Apr 2018 15:05:20 -0700

Changed in llvm-toolchain-6.0 (Ubuntu):
status: Fix Committed → Fix Released
Changed in llvm-toolchain-6.0 (Debian):
status: Unknown → New
Nish Aravamudan (nacc)
Changed in llvm-toolchain-6.0 (Ubuntu):
assignee: Nish Aravamudan (nacc) → nobody
Changed in llvm-toolchain-6.0 (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.