Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486666 - dev-util/include-what-you-use - .../work/include-what-you-use/iwyu_ast_util.h:21:32: fatal error: clang/AST/DeclBase.h: No such file or directory
Summary: dev-util/include-what-you-use - .../work/include-what-you-use/iwyu_ast_util.h...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-01 14:30 UTC by Charles Marslett
Modified: 2013-10-03 06:18 UTC (History)
0 users

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


Attachments
emerge --info '=dev-util/include-what-you-use-3.3-r1::gentoo' (include-what-you-use-3.3-r1.info,6.29 KB, application/x-info)
2013-10-01 14:30 UTC, Charles Marslett
Details
Build log (build.log,8.27 KB, text/plain)
2013-10-01 14:35 UTC, Charles Marslett
Details
environment (environment,103.66 KB, text/plain)
2013-10-01 14:36 UTC, Charles Marslett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Marslett 2013-10-01 14:30:03 UTC
Created attachment 359896 [details]
emerge --info '=dev-util/include-what-you-use-3.3-r1::gentoo'

Fails to build unless I build clang (and llvm) first.
Comment 1 Charles Marslett 2013-10-01 14:35:41 UTC
Created attachment 359904 [details]
Build log

Shows the error that led me to belive the problem was related to clang.
Comment 2 Charles Marslett 2013-10-01 14:36:22 UTC
Created attachment 359906 [details]
environment
Comment 3 Charles Marslett 2013-10-01 15:13:35 UTC
Oops, bad title -- the package is include-what-you-use, not include-what-you-see.

To get the build to work, I added 'clang' to the sys-devel/llvm 'use' flags and explicitly emerged 'sys-devel/clang'.  That may not be the proper solution, however.  I am not all that knowledgeable when it comes to portage/ebuild/emerge.  I also added 'python' to the sys-devel/llvm 'use' flags but I do not believe that was significant.

And here is the modified emerge command (run in an LXTerminal window) that builds OK:

cmarslett@E6500 ~ $ sudo bash
E6500 cmarslett # emerge -DuNv --with-bdeps=y clang include-what-you-use

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] sys-devel/llvm-3.3-r1:0/3.3  USE="clang* libffi python static-analyzer -debug -doc -gold -multitarget -ocaml {-test} -udis86" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_6 python2_7 -pypy2_0" VIDEO_CARDS="radeon" 0 kB
[ebuild  N    ~] sys-devel/clang-3.3-r100:0/3.3  USE="python static-analyzer -debug -multitarget" ABI_X86="(64) -32 (-x32)" 0 kB
[ebuild  N    ~] dev-util/include-what-you-use-3.3-r1  0 kB

Total: 3 packages (2 new, 1 reinstall), Size of downloads: 0 kB

>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-devel/llvm-3.3-r1
 * Checking for at least 1200 megabytes disk space at "/var/tmp/portage/sys-devel/llvm-3.3-r1/temp" ...                                                  [ ok ]
>>> Emerging (1 of 3) sys-devel/llvm-3.3-r1
>>> Installing (1 of 3) sys-devel/llvm-3.3-r1
>>> Emerging (2 of 3) sys-devel/clang-3.3-r100
>>> Emerging (3 of 3) dev-util/include-what-you-use-3.3-r1
>>> Installing (2 of 3) sys-devel/clang-3.3-r100
>>> Recording sys-devel/clang in "world" favorites file...
>>> Installing (3 of 3) dev-util/include-what-you-use-3.3-r1
>>> Recording dev-util/include-what-you-use in "world" favorites file...
>>> Jobs: 3 of 3 complete                           Load avg: 2.03, 2.05, 1.92
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * Regenerating GNU info directory index...
 * Processed 239 info files.

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

E6500 cmarslett #
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2013-10-02 16:53:09 UTC
I've likely forgot to add proper llvm/clang USE depends.

Please, show you

    emerge --info sys-devel/llvm sys-devel/clang

"Package Settings" part.

Thanks!
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2013-10-03 06:18:07 UTC
Pushed a fix as:

> 03 Oct 2013; Sergei Trofimovich <slyfox@gentoo.org>
> include-what-you-use-3.3-r1.ebuild:
> added missing 'clang' depend (bug #486666 by Charles Marslett)

Thank you!