Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 584548

Summary: =sys-devel/llvm-3.5.0: emake failed: ‘{anonymous}::ChainedIncludesSource* llvm::IntrusiveRefCntPtr<{anonymous}::ChainedIncludesSource>::Obj’ is private
Product: Gentoo Linux Reporter: Alexander <alex>
Component: [OLD] Core systemAssignee: LLVM support project <llvm>
Status: RESOLVED CANTFIX    
Severity: normal CC: ray
Priority: Normal Keywords: STABLE
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.gz
emerge --info
environment

Description Alexander 2016-05-30 17:39:07 UTC
* Messages for package sys-devel/llvm-3.5.0:

* ERROR: sys-devel/llvm-3.5.0::gentoo failed (compile phase):
*   emake failed

/var/tmp/notmpfs/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src/tools/clang/lib/Frontend/ChainedIncludesSource.cpp:211:10:   required from here
/var/tmp/notmpfs/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src/include/llvm/ADT/IntrusiveRefCntPtr.h:137:8: error: ‘{anonymous}::ChainedIncludesSource* llvm::IntrusiveRefCntPtr<{anonymous}::ChainedIncludesSource>::Obj’ is private
     T* Obj;
        ^
/var/tmp/notmpfs/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src/include/llvm/ADT/IntrusiveRefCntPtr.h:158:13: error: within this context
       S.Obj = 0;
             ^


https://gist.github.com/alexws54tk/1770b8c70328f56f087397bc18870dbd
Comment 1 Coacher 2016-06-03 19:17:17 UTC
Please attach build.log and other files here. gzip them if needed.
Please also attach the output of `emerge --info'.
Comment 2 Alexander 2016-06-04 07:11:41 UTC
Created attachment 436362 [details]
build.log.gz

Attaching build.log here.
Comment 3 Alexander 2016-06-04 07:13:29 UTC
Created attachment 436364 [details]
emerge --info
Comment 4 Alexander 2016-06-04 07:18:00 UTC
Created attachment 436366 [details]
environment

emerge -pqv '=sys-devel/llvm-3.5.0'

[ebuild   R   ] sys-devel/llvm-3.5.0  USE="clang gold* libffi multitarget* ncurses python* static-analyzer xml -debug -doc -libedit -ocaml {-test}" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python2_7 (-pypy)" VIDEO_CARDS="-radeon*"
Comment 5 Vladislav Rassokhin 2016-06-21 18:12:48 UTC
Experienced same problem.

`llvm-3.5.2-gcc-5.1.patch` fixes problem.

So workaround is
```bash
mkdir -p /etc/portage/patches/sys-devel/llvm-3.5.0/
cp /usr/portage/sys-devel/llvm/files/llvm-3.5.2-gcc-5.1.patch /etc/portage/patches/sys-devel/llvm-3.5.0/
```
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-21 18:19:47 UTC
Any specific reason you're using 3.5.0 rather than the current stable 3.7.1-r2? I can backport the fix for you if you insist but if you are really stuck with 3.5, I suggest you try ~arch 3.5.2 since it had some fixes since 3.5.0.
Comment 7 Alexander 2016-06-21 18:29:27 UTC
Thank you for fast reactions.

Problem was reported at 30.05 on stable 3.5.0. When 3.7.1-r2 were stabilized is 16.06 five days ago.
Comment 8 Alexander 2017-05-13 16:52:39 UTC
Now absent in tree. Closing.