Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
4554 Discussions

Failed to Build Sampling Driver with 5.10.3 kernel on Ubuntu 20.04.2 LTS

vtan
Employee
1,902 Views

Hi,

Good day,

I am having problem compiling Sampling Driver with 5.10.3 kernel:

 

-------------------- Building pax driver --------------------
make[1]: Entering directory '/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax'
/bin/make -C /lib/modules/5.10.3-051003-generic/build M=/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax LDDINCDIR=/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/../../include LDDINCDIR1=/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/../inc modules PWD=/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax -j4
make[2]: Entering directory '/usr/src/linux-headers-5.10.3-051003-generic'
  CC [M]  /opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.o
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c: In function ‘pax_Disable_NMIWatchdog’:
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:186:22: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
  186 |             old_fs = get_fs();
      |                      ^~~~~~
      |                      sget_fc
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:186:22: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:187:13: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
  187 |             set_fs(KERNEL_DS);
      |             ^~~~~~
      |             sget_fc
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:187:20: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
  187 |             set_fs(KERNEL_DS);
      |                    ^~~~~~~~~
      |                    KERNFS_NS
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:187:20: note: each undeclared identifier is reported only once for each function it appears in
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c: In function ‘pax_Enable_NMIWatchdog’:
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:282:18: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
  282 |         old_fs = get_fs();
      |                  ^~~~~~
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:283:16: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
  283 |         set_fs(KERNEL_DS);
      |                ^~~~~~~~~
      |                KERNFS_NS
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:279: /opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.o] Error 1
make[2]: *** [Makefile:1805: /opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.10.3-051003-generic'
make[1]: *** [Makefile:88: default] Error 2
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax'
make: *** [Makefile:208: default] Error 2
failed

 

 

From some googling, it seems that the api has been deprecated since 5.10.

Thus, is there a newer version of VTune or any workaround for it.

FYI, I am using VTune 2021.1.1.

 

Thanks,

Vincent

Labels (1)
0 Kudos
1 Solution
Kirill_U_Intel
Employee
1,850 Views

Please, just replace VTUNE_INSTALL_DIR/sepdk/src/pax/pax.c file.

It has just fixes for kernel 5.10+ support

Official public release with 5.10 kernel support will be VTune 2021.2.0.

Thanks, Kirill

View solution in original post

5 Replies
Kirill_U_Intel
Employee
1,885 Views

Hi.

Currently there is no public release with 5.10 kernel support.

I'll connect you for workaround directly.

Kirill

Dan_Boyne
Beginner
1,859 Views

I'm receiving similar errors when compiling the drivers for Vtune under Fedora kernel 5.10.16-200.fc22.x86_64. (Errors pasted below.) Is the work-around available to the public?

-------------------- Building pax driver --------------------
make[1]: Entering directory '/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax'
/bin/make -C /lib/modules/5.10.16-200.fc33.x86_64/build M=/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax LDDINCDIR=/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/../../include LDDINCDIR1=/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/../inc modules PWD=/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax -j4
make[2]: Entering directory '/usr/src/kernels/5.10.16-200.fc33.x86_64'
CC [M] /opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.o
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c: In function ‘pax_Disable_NMIWatchdog’:
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:186:22: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
186 | old_fs = get_fs();
| ^~~~~~
| sget_fc
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:186:22: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:187:13: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
187 | set_fs(KERNEL_DS);
| ^~~~~~
| sget_fc
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:187:20: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
187 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNFS_NS
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:187:20: note: each undeclared identifier is reported only once for each function it appears in
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c: In function ‘pax_Enable_NMIWatchdog’:
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:282:18: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
282 | old_fs = get_fs();
| ^~~~~~
/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c:283:16: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
283 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNFS_NS
cc1: some warnings being treated as errors

Kirill_U_Intel
Employee
1,851 Views

Please, just replace VTUNE_INSTALL_DIR/sepdk/src/pax/pax.c file.

It has just fixes for kernel 5.10+ support

Official public release with 5.10 kernel support will be VTune 2021.2.0.

Thanks, Kirill

View solution in original post

Dan_Boyne
Beginner
1,814 Views

You rock, Kirill! The replacement pax.c file allowed me to proceed with the build. Many thanks!

RaeesaM_Intel
Moderator
1,793 Views

Hi,


Glad to know that your issue is resolved and thank you for accepting the solution. We are discontinuing monitoring this thread. Please raise a new thread in case of any further issues.


Regards,

Raeesa


Reply