iwyu (5.0-1) needs dependency on libclang-common-5.0-dev

Bug #1769334 reported by Alexander Traud
This bug affects 2 people
Affects Status Importance Assigned to Milestone
iwyu (Ubuntu)

Bug Description

Similar like the other two issue reports here on Launchpad, just a new version. iwyu (5.0-1) which comes with Ubuntu 18.04 LTS (bionic) was build on top of clang 5.0.1. However in Ubuntu 18.04 LTS, the default clang is 6.0.0 already.

Steps to Reproduce
$ sudo apt install clang
$ sudo apt install iwyu
$ CC=iwyu make -k

Expected Result (hopefully)
xyz.c has correct #includes/fwd-decls

Actual Result
/usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found

$ iwyu -E -xc - -v </dev/null
shows the expected clang version: /usr/lib/clang/5.0.1/include
thanks to <https://github.com/include-what-you-use/include-what-you-use/issues/369>

A) sudo ln -sv /usr/lib/clang/6.0 /usr/lib/clang/5.0.1
B) sudo apt install libclang-common-5.0-dev
C) build iwyu yourself

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in iwyu (Ubuntu):
status: New → Confirmed
slodki (slodki)
tags: added: bionic packaging
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.