Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5202 Discussions

Error when compiling Intel® VTune™ Profiler Sampling Driver

Haswellx86
Novice
392 Views

I am on Arch Linux with kernel 6.14.1-arch1-1. When I try to compile the sepdk driver, I get this error -

Building sep driver ...
In file included from /usr/lib/modules/6.14.1-arch1-1/build/include/linux/module.h:22,
                 from lwpmudrv.c:37:
lwpmudrv.c:106:18: error: expected ‘,’ or ‘;’ before ‘INTEL_PMT’
  106 | MODULE_IMPORT_NS(INTEL_PMT);
      |                  ^~~~~~~~~
/usr/lib/modules/6.14.1-arch1-1/build/include/linux/moduleparam.h:26:61: note: in definition of macro ‘__MODULE_INFO’
   26 |                 = __MODULE_INFO_PREFIX __stringify(tag) "=" info
      |                                                             ^~~~
/usr/lib/modules/6.14.1-arch1-1/build/include/linux/module.h:299:33: note: in expansion of macro ‘MODULE_INFO’
  299 | #define MODULE_IMPORT_NS(ns)    MODULE_INFO(import_ns, ns)
      |                                 ^~~~~~~~~~~
lwpmudrv.c:106:1: note: in expansion of macro ‘MODULE_IMPORT_NS’
  106 | MODULE_IMPORT_NS(INTEL_PMT);
      | ^~~~~~~~~~~~~~~~
lwpmudrv.c:107:18: error: expected ‘,’ or ‘;’ before ‘INTEL_PMT_TELEMETRY’
  107 | MODULE_IMPORT_NS(INTEL_PMT_TELEMETRY);
      |                  ^~~~~~~~~~~~~~~~~~~
/usr/lib/modules/6.14.1-arch1-1/build/include/linux/moduleparam.h:26:61: note: in definition of macro ‘__MODULE_INFO’
   26 |                 = __MODULE_INFO_PREFIX __stringify(tag) "=" info
      |                                                             ^~~~
/usr/lib/modules/6.14.1-arch1-1/build/include/linux/module.h:299:33: note: in expansion of macro ‘MODULE_INFO’
  299 | #define MODULE_IMPORT_NS(ns)    MODULE_INFO(import_ns, ns)
      |                                 ^~~~~~~~~~~
lwpmudrv.c:107:1: note: in expansion of macro ‘MODULE_IMPORT_NS’
  107 | MODULE_IMPORT_NS(INTEL_PMT_TELEMETRY);
      | ^~~~~~~~~~~~~~~~
make[4]: *** [/usr/lib/modules/6.14.1-arch1-1/build/scripts/Makefile.build:207: lwpmudrv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/lib/modules/6.14.1-arch1-1/build/Makefile:1994: .] Error 2
make[2]: *** [/usr/lib/modules/6.14.1-arch1-1/build/Makefile:251: __sub-make] Error 2
make[1]: *** [Makefile:251: __sub-make] Error 2
make: *** [Makefile:243: default] Error 2

Failed to build the drivers
0 Kudos
6 Replies
yuzhang3_intel
Moderator
307 Views

Which version of sepdk src did you use?

0 Kudos
Haswellx86
Novice
304 Views

I installed the intel-oneapi-basekit package from my distribution's repository which is currently of the version 2025.0.1.46-1.

0 Kudos
yuzhang3_intel
Moderator
287 Views

Please try with 2025.1.

0 Kudos
Haswellx86
Novice
266 Views

That did not help. Still getting the same issue on 2025.1 version.

yuzhang3_intel
Moderator
230 Views

Ok, let's check and give you feedback.

0 Kudos
Arun11
Employee
101 Views

This is a known issue and it will be resolved in the upcoming VTune version 2025.2 Temporary workaround is to modify the build-driver script in sepdk/src directory as

-BUILD_PMT="YES"

+BUILD_PMT="NO"



0 Kudos
Reply