I want to install PIN
tool on my system.
When I try to make the tool it gives me below error:
$ cd source/tools/ManualExamples
$ make all
...
In file included from /usr/include/c++/11.1.0/x86_64-pc-linux-gnu/bits/c++config.h:571,
from /usr/include/c++/11.1.0/iostream:38,
from inscount0.cpp:12:
/usr/include/c++/11.1.0/x86_64-pc-linux-gnu/bits/os_defines.h:44:19: error: missing binary operator before token "("
44 | #if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
| ^
/usr/include/c++/11.1.0/x86_64-pc-linux-gnu/bits/os_defines.h:52:19: error: missing binary operator before token "("
52 | #if __GLIBC_PREREQ(2, 27)
| ^
In file included from /usr/local/include/os-apis/ipc.h:28,
from /usr/local/include/os-apis.h:55,
from /usr/local/include/stdio.h:73,
from /usr/local/include/wchar.h:47,
from /usr/include/c++/11.1.0/cwchar:44,
from /usr/include/c++/11.1.0/bits/postypes.h:40,
from /usr/include/c++/11.1.0/iosfwd:40,
from /usr/include/c++/11.1.0/ios:38,
from /usr/include/c++/11.1.0/ostream:38,
from /usr/include/c++/11.1.0/iostream:39,
from inscount0.cpp:12:
/usr/local/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
65 | #include <linux/compiler.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated
I just wonder about last error and why it couldn’t find linux/compiler.h
.
I’m sure I’ve installed linux-headers
because when I try to install it using yay
:
$ yay linux-headers
I can see below line which states clearly I have it installed already:
core/linux54-headers 5.4.159-1 (26.8 MiB 113.6 MiB) (Installed)
Why there is no such header on my system? and how can I install it?