Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566198 - sys-devel/llvm-9999 with latest clang, Failed Patch: clang-3.6-gentoo-install.patch
Summary: sys-devel/llvm-9999 with latest clang, Failed Patch: clang-3.6-gentoo-install...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2015-11-19 11:20 UTC by Machredsch
Modified: 2015-12-05 16:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,6.94 KB, text/plain)
2015-11-19 11:21 UTC, Machredsch
Details
patch.out (clang-3.6-gentoo-install.patch.out,8.74 KB, text/plain)
2015-11-19 11:22 UTC, Machredsch
Details
Dirty hand-updated patch (clang-3.8-gentoo-install.patch,593 bytes, patch)
2015-11-22 19:16 UTC, Michał Górny
Details | Diff
Equery f with problem line commented out (llvmfiles.txt,72.57 KB, text/plain)
2015-11-24 23:34 UTC, Mike Lothian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Machredsch 2015-11-19 11:20:53 UTC
Latest llvm-9999 with latest clang fails to prepare because of failed clang-3.6-gentoo-install.patch.
I don't know if the patch is necessary.

clang version: sys-devel/clang-9999-r100

Reproducible: Always

Actual Results:  
emerge fails
Comment 1 Machredsch 2015-11-19 11:21:56 UTC
Created attachment 417342 [details]
emerge --info
Comment 2 Machredsch 2015-11-19 11:22:36 UTC
Created attachment 417344 [details]
patch.out
Comment 3 Mike Lothian 2015-11-21 20:52:09 UTC
I disabled that patch, the sed command and lang-0001-Install-clang-runtime-into-usr-lib-without-suffix-3.8.patch just to get it compiling. It'll take a while on my kabini system so I'll report back if it's usable

I've been getting this error for around a week but I haven't had time to take a look at it
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-11-22 19:00:22 UTC
Disabling the patch will most likely cause broken install. I'll take a look at updating it when I can.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-11-22 19:16:43 UTC
Created attachment 417586 [details, diff]
Dirty hand-updated patch

So it looks like scan-build has been fixed to use relative ../share paths, and both scripts have been moved to bin/ subdirectories. I'm attaching a hand-updated patch, however I won't be able to test it in the next hour or so.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-11-22 20:13:06 UTC
I've updated all the patches and the ebuild a bit. I've confirmed that it works as far as to the end of src_prepare(). I have no clue if it still installs, and src_install() needs some cleanup later ;-).
Comment 7 Mike Lothian 2015-11-23 11:57:05 UTC
Currently src_install fails with

python_domodule *.py Resources

I'm going to try commenting that out and see how far it gets
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-11-23 12:04:14 UTC
Oh yes, more directory references need to be fixed. But feel free to attach or send me a file list after your commented out this line.
Comment 9 Mike Lothian 2015-11-23 12:05:08 UTC
Will do
Comment 10 Mike Lothian 2015-11-24 23:34:00 UTC
Created attachment 417792 [details]
Equery f with problem line commented out

Sorry I forgot to post this earlier

Was this what you were after?
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-11-25 07:56:09 UTC
Yes. We'll certainly need to do something about all .py files in /usr/share/scan-view and at least some in /usr/share/clang.
Comment 12 Igor Ulyanov 2015-12-01 17:14:17 UTC
I think this bug should be reopened since problems with installation are not currently fixed.
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-12-01 17:18:40 UTC
Sure. Though I'm afraid I won't be able to work on it anytime soon.
Comment 14 Igor Ulyanov 2015-12-01 18:06:39 UTC
I whould personally upgrade importance also since getting llvm 3.8 to work seems the only way to achieve OpenGL 4 in some mesa drivers. 

PS: I think that is why Mike Lothian (well known FireBurn overlay maintainer) is interested in this resolved :)
Comment 15 Mike Lothian 2015-12-01 18:19:28 UTC
It's not considered polite telling someone how they should prioritise their time

Commenting out this line:

python_domodule *.py Resources

in the ebuild will get it working for radeon & amdgpu but I'm not sure what that'll break for other users - which is probably why it's not been commited

I'm setting up my new system so hopefully in the next week or two I might be able to take a closer look at this
Comment 16 Igor Ulyanov 2015-12-01 18:38:32 UTC
Not sure it is the case of prioritizing someones time. If I sounded that way, I'm sorry.
Comment 17 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-12-04 20:45:40 UTC
I'm working on this.
Comment 18 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-12-05 15:53:51 UTC
commit 820607525306cb9f19b9bc1452540b8b1cacb08d
Author: Michał Górny <mgorny@gentoo.org>
Date:   Sat Dec 5 16:45:40 2015 +0100

    sys-devel/llvm: Update live ebuild, fix Python install
    
    Update the patches and install procedure for git changes. Switch to
    python-single-r1 as most of the Python components are now installed
    by CMake.


USE=lldb still fails but I think that's upstream's fault, not ours.
Comment 19 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-12-05 16:42:38 UTC
Oh, and if you find USE=lldb finally working please ping me because it will probably need more Python fixes and I'm not using -9999 actively.