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

Bug 523232

Summary: dev-libs/libclc-0.0.1_pre20140101 with sys-devel/llvm-3.5.0 - ./utils/prepare-builtins.cpp:1:10: fatal error: 'llvm/ADT/OwningPtr.h' file not found
Product: Gentoo Linux Reporter: Gangræna Gorgeous <trupanka>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: atoth, gentoo, gmturner007, jaak, jbytheway
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=534028
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
libclc-0.0.1-pre-llvm-3.5.0-compat.patch

Description Gangræna Gorgeous 2014-09-19 12:53:39 UTC
libclc-0.0.1_pre20140101 doesn't compile with sys-devel/llvm-3.5.0 because of missing file in /usr/include/llvm

"fatal error: 'llvm/ADT/OwningPtr.h' file not found" in build.log


Reproducible: Always
Comment 1 Gangræna Gorgeous 2014-09-19 12:54:40 UTC
Created attachment 385120 [details]
build.log
Comment 2 Greg Turner 2014-09-22 20:53:35 UTC
Created attachment 385310 [details, diff]
libclc-0.0.1-pre-llvm-3.5.0-compat.patch

This is a handcrafted merge+squash of everything here: http://llvm.org/klaus/libclc/tree/0ec7437d9c9be1df92872217ec22a15aa56abcf5/utils/prepare-builtins.cpp which W4M.
Comment 3 Greg Turner 2014-09-22 20:55:49 UTC
(In reply to Greg Turner from comment #2)
> Created attachment 385310 [details, diff] [details, diff]
> libclc-0.0.1-pre-llvm-3.5.0-compat.patch
> 
> This is a handcrafted merge+squash of everything here:
> http://llvm.org/klaus/libclc/tree/0ec7437d9c9be1df92872217ec22a15aa56abcf5/
> utils/prepare-builtins.cpp which W4M.

A better approach might be to revbump the ebuild to a newer libclc although I don't know what sort of repercussions this might have (indeed, I have no clue what libclc even does :))
Comment 4 Attila Tóth 2014-09-24 20:28:36 UTC
Confirmed.
Thanks Greg, your patch works.
I'm also not familiar with any version bump repercussions, either.
Comment 5 Patrick Lauer gentoo-dev 2014-10-09 06:31:56 UTC
+  09 Oct 2014; Patrick Lauer <patrick@gentoo.org>
+  +files/libclc-llvm-3.5-compat.patch, +libclc-0.0.1_pre20140101-r1.ebuild:
+  Fix building with llvm-3.5 #523232
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-30 18:06:52 UTC
*** Bug 534028 has been marked as a duplicate of this bug. ***