Bug 1104192 - [PATCH] [abrt] qt-creator: lldbbridge.py:73:<module>:ImportError: No module named lldb
Summary: [PATCH] [abrt] qt-creator: lldbbridge.py:73:<module>:ImportError: No module n...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:c89510b920f6dd01913944fdbca...
: 1109606 (view as bug list)
Depends On:
Blocks: SIMPLE_PATCHES
TreeView+ depends on / blocked
 
Reported: 2014-06-03 13:20 UTC by Lubo
Modified: 2015-01-20 21:08 UTC (History)
12 users (show)

Fixed In Version: llvm-3.4-12.fc20
Clone Of:
Environment:
Last Closed: 2015-01-20 21:08:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (17.73 KB, text/plain)
2014-06-03 13:20 UTC, Lubo
no flags Details
File: environ (2.24 KB, text/plain)
2014-06-03 13:20 UTC, Lubo
no flags Details
Patch (3.83 KB, patch)
2014-06-17 07:24 UTC, Sandro Mani
no flags Details | Diff

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.


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