<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Failed to Build Sampling Driver with 5.10.3 kernel on Ubuntu 20.04.2 LTS in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1257854#M20053</link>
    <description>&lt;P&gt;You rock, Kirill! The replacement pax.c file allowed me to proceed with the build. Many thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 20 Feb 2021 22:18:49 GMT</pubDate>
    <dc:creator>Dan_Boyne</dc:creator>
    <dc:date>2021-02-20T22:18:49Z</dc:date>
    <item>
      <title>Failed to Build Sampling Driver with 5.10.3 kernel on Ubuntu 20.04.2 LTS</title>
      <link>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1256747#M20018</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Good day,&lt;/P&gt;
&lt;P&gt;I am having problem compiling Sampling Driver with 5.10.3 kernel:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;-------------------- 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 &amp;lt;anonymous&amp;gt;’} 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 &amp;lt;anonymous&amp;gt;’} 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
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From some googling, it seems that the api has been deprecated since 5.10.&lt;/P&gt;
&lt;P&gt;Thus, is there a newer version of VTune or any workaround for it.&lt;/P&gt;
&lt;P&gt;FYI, I am using VTune 2021.1.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Vincent&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 09:47:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1256747#M20018</guid>
      <dc:creator>vtan</dc:creator>
      <dc:date>2021-02-17T09:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Build Sampling Driver with 5.10.3 kernel on Ubuntu 20.04.2 LTS</title>
      <link>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1256761#M20019</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;Currently there is no public release with 5.10 kernel support.&lt;/P&gt;
&lt;P&gt;I'll connect you for workaround directly.&lt;/P&gt;
&lt;P&gt;Kirill&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 10:48:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1256761#M20019</guid>
      <dc:creator>Kirill_U_Intel</dc:creator>
      <dc:date>2021-02-17T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Build Sampling Driver with 5.10.3 kernel on Ubuntu 20.04.2 LTS</title>
      <link>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1257744#M20051</link>
      <description>&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;-------------------- Building pax driver --------------------&lt;BR /&gt;make[1]: Entering directory '/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax'&lt;BR /&gt;/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&lt;BR /&gt;make[2]: Entering directory '/usr/src/kernels/5.10.16-200.fc33.x86_64'&lt;BR /&gt;CC [M] /opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.o&lt;BR /&gt;/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c: In function ‘pax_Disable_NMIWatchdog’:&lt;BR /&gt;/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]&lt;BR /&gt;186 | old_fs = get_fs();&lt;BR /&gt;| ^~~~~~&lt;BR /&gt;| sget_fc&lt;BR /&gt;/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’&lt;BR /&gt;/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]&lt;BR /&gt;187 | set_fs(KERNEL_DS);&lt;BR /&gt;| ^~~~~~&lt;BR /&gt;| sget_fc&lt;BR /&gt;/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’?&lt;BR /&gt;187 | set_fs(KERNEL_DS);&lt;BR /&gt;| ^~~~~~~~~&lt;BR /&gt;| KERNFS_NS&lt;BR /&gt;/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&lt;BR /&gt;/opt/intel/oneapi/vtune/2021.1.1/sepdk/src/pax/pax.c: In function ‘pax_Enable_NMIWatchdog’:&lt;BR /&gt;/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’&lt;BR /&gt;282 | old_fs = get_fs();&lt;BR /&gt;| ^~~~~~&lt;BR /&gt;/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’?&lt;BR /&gt;283 | set_fs(KERNEL_DS);&lt;BR /&gt;| ^~~~~~~~~&lt;BR /&gt;| KERNFS_NS&lt;BR /&gt;cc1: some warnings being treated as errors&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 23:50:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1257744#M20051</guid>
      <dc:creator>Dan_Boyne</dc:creator>
      <dc:date>2021-02-19T23:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Build Sampling Driver with 5.10.3 kernel on Ubuntu 20.04.2 LTS</title>
      <link>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1257779#M20052</link>
      <description>&lt;P&gt;Please, just replace VTUNE_INSTALL_DIR/sepdk/src/pax/pax.c file.&lt;/P&gt;
&lt;P&gt;It has just fixes for kernel 5.10+ support&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Official public release with 5.10 kernel support will be VTune 2021.2.0.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks, Kirill&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 07:26:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1257779#M20052</guid>
      <dc:creator>Kirill_U_Intel</dc:creator>
      <dc:date>2021-02-20T07:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to Build Sampling Driver with 5.10.3 kernel on Ubuntu 20.04.2 LTS</title>
      <link>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1257854#M20053</link>
      <description>&lt;P&gt;You rock, Kirill! The replacement pax.c file allowed me to proceed with the build. Many thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 22:18:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1257854#M20053</guid>
      <dc:creator>Dan_Boyne</dc:creator>
      <dc:date>2021-02-20T22:18:49Z</dc:date>
    </item>
    <item>
      <title>Re:Failed to Build Sampling Driver with 5.10.3 kernel on Ubuntu 20.04.2 LTS</title>
      <link>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1257998#M20054</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raeesa&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Feb 2021 05:03:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Failed-to-Build-Sampling-Driver-with-5-10-3-kernel-on-Ubuntu-20/m-p/1257998#M20054</guid>
      <dc:creator>RaeesaM_Intel</dc:creator>
      <dc:date>2021-02-22T05:03:11Z</dc:date>
    </item>
  </channel>
</rss>

