Package: clang Version: 1:4.0-40 Severity: normal -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64)
Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages clang depends on: ii clang-4.0 1:4.0.1-8 clang recommends no packages. clang suggests no packages. -- debconf-show failed Here is the minimal example: echo '#include <iostream> int main() {}' | clang++ -std=c++1z -x c++ -stdlib=libc++ - > In file included from <stdin>:1: > In file included from /usr/include/c++/v1/iostream:38: > In file included from /usr/include/c++/v1/ios:216: > /usr/include/c++/v1/__locale:34:11: fatal error: 'xlocale.h' file not found > # include <xlocale.h> > ^~~~~~~~~~~ > 1 error generated. Removing stdlib option also fails, but with more messages: echo '#include <iostream> int main() {}' | clang++ -std=c++1z -x c++ - > In file included from <stdin>:1: > In file included from > /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/iostream:39: > In file included from > /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/ostream:38: > In file included from > /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/ios:42: > In file included from > /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/ios_base.h:41: > In file included from > /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/locale_classes.h:40: > In file included from > /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/string:52: > /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/basic_string.h:113:15: > error: unknown > type name 'basic_string_view' > typedef basic_string_view<_CharT, _Traits> __sv_type; > ^ And then long list of errors