Termination of Mcpat Compilation

i am trying to run McPAT on ubuntu20.04 following the instructions from:

After downloading the file and running:

~/Downloads/McPAT/mcpat$ make

I got below error and the compilation is terminated

make[1]: Entering directory '/home/ahmed/Downloads/McPAT/mcpat'
g++ -m32 -Wno-unknown-pragmas  -O3 -msse2 -mfpmath=sse -DNTHREADS=4 -Icacti  -c cacti/Ucache.cc -o obj_opt/Ucache.o
In file included from /usr/include/time.h:25,
                 from cacti/Ucache.cc:33:
/usr/include/features.h:461:12: fatal error: sys/cdefs.h: No such file or directory
  461 | #  include <sys/cdefs.h>
      |            ^~~~~~~~~~~~~
compilation terminated.
make[1]: *** [mcpat.mk:77: obj_opt/Ucache.o] Error 1
make[1]: Leaving directory '/home/ahmed/Downloads/McPAT/mcpat'
make: *** [makefile:11: opt] Error 2
12
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article