Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
5255 Discussions

Intel Vtune Profiling Drivers are not building in Ubuntu

Soumik575
Beginner
2,188 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
7 Replies
Vipin_S_Intel
Moderator
2,123 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
2,006 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
1,764 Views

Is there an estimated release date for version 2024.2 ?

0 Kudos
yuzhang3_intel
Moderator
1,748 Views

By the end of June.

0 Kudos
jinghe-intc
Employee
1,567 Views

I met the same problem on Ubuntu 24.04 and just tried VTune 2024.2, there was a different error:

Building sep driver ...
/bin/make -C /lib/modules/6.8.0-35-generic/build M=code/sepdk/src LDDINCDIR=code/sepdk/src/../include LDDINCDIR1=code/sepdk/src/inc modules PWD=code/sepdk/src -j4 > /dev/null
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
code/sepdk/src/sys64.o: warning: objtool: SYS_Get_GDT_Base+0x3: 'naked' return found in RETHUNK build
code/sepdk/src/sys64.o: warning: objtool: SYS_IO_Delay+0x0: 'naked' return found in RETHUNK build
make[3]: *** [scripts/Makefile.build:361: code/sepdk/src/sys64.o] Error 254
make[3]: *** Deleting file 'code/sepdk/src/sys64.o'
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-6.8.0-35-generic/Makefile:1926: code/sepdk/src] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make: *** [Makefile:224: default] Error 2

0 Kudos
yuzhang3_intel
Moderator
1,513 Views

This is fixed in the coming release 2024.2.1.

0 Kudos
Reply