Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427298 - sys-apps/which fails to build with clang-3.1-r4
Summary: sys-apps/which fails to build with clang-3.1-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2012-07-20 12:10 UTC by Fabio Scaccabarozzi
Modified: 2012-12-18 14:26 UTC (History)
2 users (show)

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


Attachments
emerge fail log (sys-apps:which-2.20:20120719-225330.log,4.83 KB, text/plain)
2012-07-20 12:10 UTC, Fabio Scaccabarozzi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Scaccabarozzi 2012-07-20 12:10:26 UTC
Created attachment 318706 [details]
emerge fail log

sys-apps/which fails to build with clang-3.1-r4, both versions (2.19,2.20), with the same error. Attached is the build log.
Comment 1 Fabio Scaccabarozzi 2012-07-21 12:34:26 UTC
update: both versions build and pass tests with GCC 4.6.3
Comment 2 Fabio Scaccabarozzi 2012-10-08 13:56:14 UTC
This bug can be temporarily worked around by passing --disable-dependency-tracking option to configure. With GCC the configure check evaluates as "pch", whereas with clang evaluates as "none". This makes the compile step fail.
The workaround forces configure to skip the check/set it to "none" a priori, possibly updating the environment accordingly and making the build succeed with both gcc and clang. Both versions available build fine with the workaround.

I think the correct approach would be to fix the scripts to work properly, meanwhile a conditional for clang in the ebuild would do fine. AFAIK though, dependency tracking is used for incremental (re)compilation of large projects, disabling it entirely for such a small thing as sys-apps/which won't do any harm IMO.
Comment 3 Bernard Cafarelli gentoo-dev 2012-12-18 14:26:23 UTC
Incoming clang 3.2 will work fine (tested with rc3):
checking dependency style of clang... pch

and it compiles/works fine :)