Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417537 - Clang is unable to compile itself [PATCH included]
Summary: Clang is unable to compile itself [PATCH included]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords: Bug
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2012-05-26 01:13 UTC by Richard Yao (RETIRED)
Modified: 2012-05-26 10:08 UTC (History)
1 user (show)

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


Attachments
sys-devel/clang-3.1 build failure (build.log,43.90 KB, text/plain)
2012-05-26 01:13 UTC, Richard Yao (RETIRED)
Details
Proposed path to fix this. (clang-3.1-gentoo-linux-fix-cxx-include.patch,836 bytes, patch)
2012-05-26 01:23 UTC, Richard Yao (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.