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

Bug 417537

Summary: Clang is unable to compile itself [PATCH included]
Product: Gentoo Linux Reporter: Richard Yao (RETIRED) <ryao>
Component: [OLD] DevelopmentAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED FIXED    
Severity: normal CC: mgorny
Priority: Normal Keywords: Bug
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://llvm.org/bugs/show_bug.cgi?id=12956
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963    
Attachments: sys-devel/clang-3.1 build failure
Proposed path to fix this.

Description Richard Yao (RETIRED) gentoo-dev 2012-05-26 01:13:26 UTC
Created attachment 313061 [details]
sys-devel/clang-3.1 build failure

Clang is unable to compile itself because it cannot find the C++ includes on Linux. This also affect Gentoo FreeBSD.
Comment 1 Richard Yao (RETIRED) gentoo-dev 2012-05-26 01:23:05 UTC
Created attachment 313067 [details, diff]
Proposed path to fix this.

I originally identified this when working on the patch in bug #417541 for the regression cased by the removal of USE=system-cxx-headers on Gentoo FreeBSD.

Since the solution was to copy code being used by Clang on Linux and the fix was made to that code, this patch duplicates the fix for the original Linux code.
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-05-26 01:35:38 UTC
Patch committed to CVS as part of sys-devel/clang-3.1-r1.