Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388621 - Clang ebuild builds with broken include path (incorrect use of gcc-config)
Summary: Clang ebuild builds with broken include path (incorrect use of gcc-config)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 20:54 UTC by Leonid Volnitsky
Modified: 2011-11-14 15:02 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Volnitsky 2011-10-26 20:54:17 UTC
clang ebuilds (all), use gcc-config -X to find g++ include pathes.  My gcc-config (v1.5-r1) does not have -X, so pathes are broken (something like cstddef can not be found).

Fix:

93c93
< 		local CXX_PATH=$(gcc-config -X| cut -d: -f1 | sed 's,/include/g++-v4$,,')
---
> 		local CXX_PATH=$(gcc-config -L |sed 's/:.*$//')
Comment 1 Bernard Cafarelli gentoo-dev 2011-11-14 15:02:11 UTC
Thanks for the report!

All ebuilds now use gcc-config -L, so when gcc-config 1.5 gets keywords, clang will still gets the correct include pathes