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

Intel Vtune Profiling Drivers are not building in Ubuntu

Soumik575
Beginner
506 Views

Hi, I am trying to install the vtune profiling drivers for ubuntu. Currently using version 24.04. Whenever I try to build, the below given result is obtained. Please help.

jhill@jhill-VivoBook:/opt/intel/oneapi/vtune/latest/sepdk/src$ sudo ./build-driver -ni
[sudo] password for jhill:
Sorry, try again.
[sudo] password for jhill:
C compiler version: 13.2.0
Make version: 4.3
Kernel version: 6.8.0-31-generic

Cleaning workspaces ...
Done

Building socperf driver ...
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
You are using: gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
/opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:214:13: warning: no previous prototype for ‘SOCPERF_Read_Data3’ [-Wmissing-prototypes]
214 | extern VOID SOCPERF_Read_Data3(PVOID data_buffer)
| ^~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:997:11: warning: no previous prototype for ‘SOCPERF_Switch_Group3’ [-Wmissing-prototypes]
997 | OS_STATUS SOCPERF_Switch_Group3(VOID)
| ^~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:1182:13: warning: no previous prototype for ‘lwpmudrv_Stop_Mem’ [-Wmissing-prototypes]
1182 | extern VOID lwpmudrv_Stop_Mem(VOID)
| ^~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:1400:1: warning: no previous prototype for ‘socperf_Service_IOCTL’ [-Wmissing-prototypes]
1400 | socperf_Service_IOCTL(IOCTL_USE_INODE struct file *filp,
| ^~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:1525:1: warning: no previous prototype for ‘socperf_Device_Control’ [-Wmissing-prototypes]
1525 | socperf_Device_Control(IOCTL_USE_INODE struct file *filp,
| ^~~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:1562:1: warning: no previous prototype for ‘socperf_Device_Control_Compat’ [-Wmissing-prototypes]
1562 | socperf_Device_Control_Compat(struct file *filp,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:1614:12: warning: no previous prototype for ‘SOCPERF_Abnormal_Terminate’ [-Wmissing-prototypes]
1614 | extern int SOCPERF_Abnormal_Terminate(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./arch/x86/include/asm/mem_encrypt.h:15,
from ./include/linux/mem_encrypt.h:17,
from ./arch/x86/include/asm/processor-flags.h:6,
from ./arch/x86/include/asm/processor.h:5,
from ./arch/x86/include/asm/timex.h:5,
from ./include/linux/timex.h:67,
from ./include/linux/time32.h:13,
from ./include/linux/time.h:60,
from ./include/linux/stat.h:19,
from ./include/linux/module.h:13,
from /opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:61:
/opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c: In function ‘socperf_Load’:
./include/linux/init.h:184:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
184 | #define THIS_MODULE (&__this_module)
| ~^~~~~~~~~~~~~~~
| |
| struct module *
/opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:1738:34: note: in expansion of macro ‘THIS_MODULE’
1738 | pmu_class = class_create(THIS_MODULE, SOCPERF_DRIVER_NAME);
| ^~~~~~~~~~~
In file included from ./include/linux/device.h:31,
from ./include/linux/cdev.h:8,
from /opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:69:
./include/linux/device/class.h:228:54: note: expected ‘const char *’ but argument is of type ‘struct module *’
228 | struct class * __must_check class_create(const char *name);
| ~~~~~~~~~~~~^~~~
/opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.c:1738:21: error: too many arguments to function ‘class_create’
1738 | pmu_class = class_create(THIS_MODULE, SOCPERF_DRIVER_NAME);
| ^~~~~~~~~~~~
./include/linux/device/class.h:228:29: note: declared here
228 | struct class * __must_check class_create(const char *name);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src/socperfdrv.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:1926: /opt/intel/oneapi/vtune/2024.1/sepdk/src/socperf/src] Error 2
make[1]: *** [Makefile:145: default] Error 2
make: *** [Makefile:215: default] Error 2

Failed to build the drivers

0 Kudos
4 Replies
Vipin_Singh1
Moderator
441 Views

Hi Soumik, we would like to inform you that we are routing your query to the dedicated team for further assistance.


0 Kudos
yuzhang3_intel
Moderator
324 Views

Just got the information from the engineering team that SEP build issues on kernel 6.8 are fixed in 2024.2.

0 Kudos
xuuh
Beginner
82 Views

Is there an estimated release date for version 2024.2 ?

0 Kudos
yuzhang3_intel
Moderator
66 Views

By the end of June.

0 Kudos
Reply