Make a note of what to do if you get the following error when compiling C language on Ubuntu 18.04.
sys/cdefs.h:There is no such file or directory
Normally, installing libc6-dev-i386
seems to cure it.
sudo apt install libc6-dev-i386
In my case, libc6-dev-i386
was already installed.
It was solved by reinstalling libc6-dev
.
sudo apt install --reinstall libc6-dev
/usr/include/sys/cdefs.h
is a symbolic link to /usr/include/x86_64-linux-gnu/sys/cdefs.h
.
The cause was that the / usr / include / x86_64-linux-gnu / sys /
did not exist.
You probably did it when you restored from a backup that excluded sys
. It's too careless.
[Fatal error: sys / cdefs.h: No such file or directory |](https://qastack.jp/ubuntu/470796/fatal-error-sys-cdefs-h-no-such-file -or-directory)
Recommended Posts