Public bug reported: In 16.04 with gcc 5 as default, gccgo-6 fills /usr/lib/gcc/x86_64-linux- gnu/6 which triggers clang to select gcc6 stdlib folders. But the gcc6 installation is incomplete so all compilations will fail with not finding headers or standard libraries.
E.g. #include <cstdio> int main() {} fails with cannot find cstdio See the verbose output where it selects gcc 6 as base. clang++ -v file.cc removing gccgo-6 makes it functional again by choosing the complete gcc 5 installation. ** Affects: llvm-toolchain-3.8 (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/1611676 Title: clang++ does not work with gccgo-6 installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-3.8/+bug/1611676/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs