Public bug reported:

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

Note
$ 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>

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

** Affects: iwyu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1769334

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iwyu/+bug/1769334/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to