Bug 1104192

Summary: [PATCH] [abrt] qt-creator: lldbbridge.py:73:<module>:ImportError: No module named lldb
Product: [Fedora] Fedora Reporter: Lubo <lubomir.carik>
Component: llvmAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: ajax, bos, davejohansen, dmalcolm, itamar, jreznik, jv+fedora, ltinkl, manisandro, petersen, rdieter, scottt.tw
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/8b0d40e000720d4b85f397f63d902f7edd0840ec
Whiteboard: abrt_hash:c89510b920f6dd01913944fdbcade80c8b585a58
Fixed In Version: llvm-3.4-12.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-20 21:08:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1116065    
Attachments:
Description Flags
File: backtrace
none
File: environ
none
Patch none

Description Lubo 2014-06-03 13:20:44 UTC
Version-Release number of selected component:
qt-creator-3.1.1-1.fc20

Additional info:
reporter:       libreport-2.2.2
cmdline:        /usr/bin/python -i /usr/share/qtcreator/debugger/lldbbridge.py /usr/bin/lldb
executable:     /usr/share/qtcreator/debugger/lldbbridge.py
kernel:         3.14.4-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
#1 <module> in /usr/share/qtcreator/debugger/lldbbridge.py:73

Comment 1 Lubo 2014-06-03 13:20:49 UTC
Created attachment 901784 [details]
File: backtrace

Comment 2 Lubo 2014-06-03 13:20:51 UTC
Created attachment 901785 [details]
File: environ

Comment 3 Sandro Mani 2014-06-03 16:52:17 UTC
Looks like lldb on Fedora is built without the python interface.

@llvm maintainer: any chance these could be built?

Comment 4 Rex Dieter 2014-06-03 17:00:22 UTC
I bet any contribution/patch to help fix the building of llvm python interface would be welcome.

Comment 5 Sandro Mani 2014-06-03 17:21:53 UTC
So lldb-%{version}/scripts/CMakeList seems to be responsible for building the python wrapper, but no cmake is ever invoked. Looks like the entire llvm needs to be built with cmake rather than via autotools? I'll try firing a build later this evening.

Comment 6 Sandro Mani 2014-06-03 22:59:31 UTC
Building with cmake seems to work (with some lib -> lib${LIB_SUFFIX} patching) and the python wrapper is also built. Issues are that some files get installed in different locations and some files end up being called differently compared to the autotools build. Also I need to figure out all the corresponding cmake variables which correspond to the used configure options.

Comment 7 Sandro Mani 2014-06-15 22:28:35 UTC
*** Bug 1109606 has been marked as a duplicate of this bug. ***

Comment 8 Sandro Mani 2014-06-17 07:24:40 UTC
Created attachment 909432 [details]
Patch

So actually the issues was just missing DESTDIR in a shell script which is responsible for installing the lldb python wrapper.

@ajax Could you apply the attached patch?

Comment 10 Sandro Mani 2014-12-24 15:16:57 UTC
Patch for F21 and rawhide is in #1177143

Simple Patch Request
====================
Patch[f20]=https://smani.fedorapeople.org/0001-Fix-python-wrapper-not-being-installed-909432.patch
ScratchBuild[f20]=http://koji.fedoraproject.org/koji/taskinfo?taskID=8473089
Submitter=smani

Comment 11 Jan Včelák 2014-12-25 22:50:10 UTC
This seems to be very similar to #1171435 (epel7).

Comment 12 Sandro Mani 2014-12-25 22:51:42 UTC
Yes indeed, and the patch posted there is definitely better!

Comment 13 Fedora Update System 2015-01-04 00:20:11 UTC
llvm-3.4-12.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/llvm-3.4-12.fc20

Comment 14 Fedora Update System 2015-01-05 07:42:21 UTC
Package llvm-3.4-12.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing llvm-3.4-12.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-0177/llvm-3.4-12.fc20
then log in and leave karma (feedback).

Comment 15 Fedora Update System 2015-01-20 21:08:07 UTC
llvm-3.4-12.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.