Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345683 - sys-devel/clang-2.8-r2: Add support for gcc-4.4.4 to clang 2.8
Summary: sys-devel/clang-2.8-r2: Add support for gcc-4.4.4 to clang 2.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-15 23:07 UTC by Bertjan Broeksema
Modified: 2010-12-19 22:45 UTC (History)
2 users (show)

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


Attachments
Patch to make ebuild apply an additional patch (clang-ebuild-gcc.4.4.4.patch,495 bytes, text/plain)
2010-11-15 23:08 UTC, Bertjan Broeksema
Details
Patch to make clang find gcc-4.4.4 headers (clang-2.8-gcc-4.4.4.patch,551 bytes, text/plain)
2010-11-15 23:09 UTC, Bertjan Broeksema
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertjan Broeksema 2010-11-15 23:07:11 UTC
The 2.8 (and trunk as well) release of clang doesn't have support for gcc 4.4.4 in Gentoo yet. This means that clang with the default useflag (i.e. -system-cxx-headers) does not work when only gcc-4.4.4 is installed.

Attached a patch to the clang-2.8-r2 ebuild which applies a simple patch to clang in order to make clang find the gcc-4.4.4 profile.

I installed clang using this ebuild + additional patch and now it finds the gcc-4.4.4 profile properly. As this is the only gcc profile I've installed, I need this patch in order to make clang usable on my system.

I'll send the patch to the clang ml as well to solve this issue upstream.
Comment 1 Bertjan Broeksema 2010-11-15 23:08:35 UTC
Created attachment 254445 [details]
Patch to make ebuild apply an additional patch
Comment 2 Bertjan Broeksema 2010-11-15 23:09:15 UTC
Created attachment 254447 [details]
Patch to make clang find gcc-4.4.4 headers
Comment 3 Bertjan Broeksema 2010-11-19 09:23:41 UTC
This patch *will* be part of clang 2.9

see: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-November/012148.html
Comment 4 Bernard Cafarelli gentoo-dev 2010-12-19 22:45:58 UTC
Thanks for the report and submitting patch to upstream! (and sorry for the delay).

I've added your patch in clang-2.8-r3. Still hope to find something easier than these hardcoded tables or falling back to USE=system-cxx-headers... Maybe 2.9 will have some good surprises on this!