Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re: Error while make #2

Open
Mukti0123 opened this issue Nov 3, 2020 · 1 comment
Open

Re: Error while make #2

Mukti0123 opened this issue Nov 3, 2020 · 1 comment

Comments

@Mukti0123
Copy link

Hello, I am getting some errors while doing make. Can you please tell how to fix that? Thanks.

make -C /lib/modules/5.4.0-52-generic/build/ M=/home/mukti/NVM-Emulator-1.0 modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-52-generic'
CC [M] /home/mukti/NVM-Emulator-1.0/uncore_pmu.o
In file included from ./include/linux/kernel.h:15,
from ./include/linux/list.h:9,
from ./include/linux/pci.h:32,
from /home/mukti/NVM-Emulator-1.0/uncore_pmu.h:27,
from /home/mukti/NVM-Emulator-1.0/uncore_pmu.c:36:
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c: In function ‘uncore_print_pci_boxes’:
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c:369:37: error: ‘refcount_t’ {aka ‘struct refcount_struct’} has no member named ‘counter’
369 | box->pdev->dev.kobj.kref.refcount.counter);
| ^
./include/linux/printk.h:303:33: note: in definition of macro ‘pr_printk_hash’
303 | printk(level pr_fmt(format), ##VA_ARGS)
| ^~~~~~~~~~~
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c:360:4: note: in expansion of macro ‘pr_info’
360 | pr_info("......Box%d, in Node%d, %x:%x:%x, %d:%d:%d, Kref = %d",
| ^~~~~~~
make[2]: *** [scripts/Makefile.build:275: /home/mukti/NVM-Emulator-1.0/uncore_pmu.o] Error 1
make[1]: *** [Makefile:1757: /home/mukti/NVM-Emulator-1.0] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-52-generic'
make: *** [Makefile:37: all] Error 2

@lastweek
Copy link
Owner

lastweek commented Nov 3, 2020

Hi,

this is because you are using a newer kernel, which has changed quite a lot header files. I forgot which kernel I used back then, it is probably somewhere between 2.6 - 3.11.

this is emulator is outdated, if you plan to get PM perf numbers, I suggest use real intel DC PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants