How Do You Troubleshoot “fatal error: 1/hash.h: No such file or directory”?

Problem scenario
You are trying to install Darling. You get this error: "./include/linux/uio.h:16:31: fatal error: 1/hash.h: No such file or directory
#include RH_KABI_HIDE_INCLUDE()"

What should you do?

Solution
Run this:

sudo uname -r

Is the kernel version 5 or higher? If not, that is the root cause.

The source of this was https://github.com/darlinghq/darling/issues/975

Leave a comment

Your email address will not be published. Required fields are marked *