'CONFIG_X86_X32 enabled but no binutils support Error

I'm trying to implement a custom system call in Ubuntu 20.04.

One of the steps is this command

root@well:/usr/src/linux-5.16.15# sudo make modules_install install

But it gives this error:

arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
ln: target '/source' is not a directory
make[1]: *** [Makefile:1477: __modinst_pre] Error 1
make: *** [Makefile:350: __build_one_by_one] Error 2

What should I do to resolve it?

I've been at this for days and any help would be seriously appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source