It seems that when you played with llvm / clang, you (or the package manager) deleted the existing C standard library development kit ( eglibc in Debian) or you probably didn’t have it installed first, so you need to reinstall it now that you are back in gcc.
You can do it on Debian:
aptitude show libc-dev
Ubuntu:
apt-get install libc-dev
In Ubuntu, if you do not have libc-dev, since I cannot find it on packages.ubuntu.com, you can try installing libc6-dev directly.
Or on Redhat, as a system:
yum install glibc-devel
NB: although you were briefly answered in the comments, here is the answer, so there is one on the record if someone meets this and can find the answer, but not in the comments or the comment is not explicit enough for them.
Shinnok Jul 11 2018-11-11T00: 00Z
source share