Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Najeeb_A_
Beginner
239 Views

vtsspp driver fails to build on Linux kernel 4.13

Jump to solution

I am trying to build VTune sampling drivers on Ubuntu 16.04 with Linux kernel version 4.13.0-32-generic. The compilation fails for vtsspp driver. The command line and log is given below:

Before building, the instructions in /opt/intel/vtune_amplifier_2018/sepdk/src/README.txt were followed and then build was issues as below:

username@server:/opt/intel/vtune_amplifier_2018/sepdk/src$ sudo ./build-driver
[sudo] password for ......:

Options in brackets "[ ... ]" indicate default values
that will be used when only the ENTER key is pressed.

C compiler to use: [ /usr/bin//gcc ]

Make command to use: [ /usr/bin//make ]

Kernel source directory: [ /lib/modules/4.13.0-32-generic/build ]
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno
rm -f sep4_1.ko sep4_1.ko.unsigned
rm -f sep4_1*x32_64-4.13.0-32-genericsmp.ko
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers
rm -rf .tmp_versions
make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax'
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno
rm -f pax.ko pax.ko.unsigned pax-x32_64-4.13.0-32-genericsmp.ko
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers
rm -rf .tmp_versions
make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax'
make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src'
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno
rm -f socperf2_0.ko socperf2_0.ko.unsigned
rm -f socperf2_0*x32_64-4.13.0-32-genericsmp.ko
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers
rm -rf .tmp_versions
make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src'
make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp'
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers
rm -rf .tmp_versions
rm -f /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/vtss_autoconf.h
rm -f vtsspp.ko vtsspp.ko.unsigned vtsspp-x32_64-4.13.0-32-genericsmp.ko
make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp'
make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src'
/usr/bin//make -C /lib/modules/4.13.0-32-generic/build M=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src LDDINCDIR=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/../include LDDINCDIR1=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/inc modules PWD=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src -j4
make[2]: Entering directory '/usr/src/linux-headers-4.13.0-32-generic'
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperfdrv.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/control.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/utility.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/pci.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/soc_uncore.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/haswellunc_sa.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/axi_uncore.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/npk_uncore.o
  LD   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperf2_0.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperf2_0.mod.o
  LD   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperf2_0.ko
make[2]: Leaving directory '/usr/src/linux-headers-4.13.0-32-generic'
cp socperf2_0.ko socperf2_0-x32_64-4.13.0-32-genericsmp.ko
make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src'
/usr/bin//make -C /lib/modules/4.13.0-32-generic/build M=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src LDDINCDIR=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/../include LDDINCDIR1=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/inc modules PWD=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-32-generic'
***************************************************************
NOTE: NMI Interrupt Mode is set on 4.13.0-32-generic kernel
***************************************************************
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/lwpmudrv.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/control.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/cpumon.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/eventmux.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/linuxos.o
/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/linuxos.c:81:30: warning: ‘cpuhp_sepdrv_state’ defined but not used [-Wunused-variable]
 static enum cpuhp_state      cpuhp_sepdrv_state;
                              ^
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/output.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pmi.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sys_info.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/utility.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/valleyview_sochap.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_power.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pci.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/chap.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/gmch.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/gfx.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_sa.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/core2.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/perfver4.o
  AS   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sys64.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/silvermont.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/apic.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pebs.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_gt.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_mmio.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_msr.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_common.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_pci.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sepdrv_p_state.o
  LD   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sep4_1.o
  Building modules, stage 2.
***************************************************************
NOTE: NMI Interrupt Mode is set on 4.13.0-32-generic kernel
***************************************************************
  MODPOST 1 modules
  CC      /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sep4_1.mod.o
  LD   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sep4_1.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-32-generic'
cp sep4_1.ko sep4_1-x32_64-4.13.0-32-genericsmp.ko
make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax'
/usr/bin//make -C /lib/modules/4.13.0-32-generic/build M=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax LDDINCDIR=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/../../include LDDINCDIR1=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/../inc modules PWD=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax
make[2]: Entering directory '/usr/src/linux-headers-4.13.0-32-generic'
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/pax.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/pax.mod.o
  LD   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/pax.ko
make[2]: Leaving directory '/usr/src/linux-headers-4.13.0-32-generic'
cp pax.ko pax-x32_64-4.13.0-32-genericsmp.ko
make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax'
make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp'
make[2]: Entering directory '/usr/src/linux-headers-4.13.0-32-generic'
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/module.o
  CC   /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/collector.o
In file included from ./arch/x86/include/asm/cpufeature.h:4:0,
                 from ./arch/x86/include/asm/thread_info.h:63,
                 from ./include/linux/thread_info.h:37,
                 from ./arch/x86/include/asm/preempt.h:6,
                 from ./include/linux/preempt.h:80,
                 from ./include/linux/smp.h:142,
                 from /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/vtss_config.h:38,
                 from /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/collector.c:27:
/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/collector.c: In function ‘vtss_sched_switch_to’:
./arch/x86/include/asm/processor.h:820:39: error: implicit declaration of function ‘task_stack_page’ [-Werror=implicit-function-declaration] unsigned long __ptr = (unsigned long)task_stack_page(task);\
                                       ^
./arch/x86/include/asm/processor.h:897:26: note: in expansion of macro ‘task_pt_regs’
 #define KSTK_EIP(task)  (task_pt_regs(task)->ip)
                          ^
/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/collector.c:2257:29: note: in expansion of macro ‘KSTK_EIP’
                 ip = (void*)KSTK_EIP(task);
                             ^
cc1: all warnings being treated as errors
scripts/Makefile.build:308: recipe for target '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/collector.o' failed
make[3]: *** [/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/collector.o] Error 1
Makefile:1550: recipe for target '_module_/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp' failed
make[2]: *** [_module_/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.13.0-32-generic'
Makefile:244: recipe for target 'all' failed
make[1]: [all] Error 2 (ignored)
cp -f vtsspp.ko vtsspp-x32_64-4.13.0-32-genericsmp.ko
cp: cannot stat 'vtsspp.ko': No such file or directory
Makefile:244: recipe for target 'all' failed
make[1]: [all] Error 1 (ignored)
make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp'

0 Kudos
1 Solution
239 Views

Hello all,

The driver build error on kernel >4.13 is an impact of recent security patches:

https://software.intel.com/en-us/articles/intel-vtune-amplifier-impact-of-recent-os-security-updates

The fix will be included into the next VTune Amplifier 2018 Update 2 release coming soon.

Please submit a ticket via https://supporttickets.intel.com/ to get an updated pre-release version of sepdk driver kit with the fix.

Regards, Katya

View solution in original post

8 Replies
Huang__Jiqing
Beginner
239 Views

Sorry to reply not to answer but to append my exact same problem: ubuntu 16.04, kernel version 4.13.0-32, building fail on sampling driver.

Below is the compiler generated error message:

Options in brackets "[ ... ]" indicate default values
that will be used when only the ENTER key is pressed.

C compiler to use: [ /usr/bin//gcc ]

Make command to use: [ /usr/bin//make ]

Kernel source directory: [ /lib/modules/4.13.0-32-generic/build ]
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno
rm -f sep4_1.ko sep4_1.ko.unsigned
rm -f sep4_1*x32_64-4.13.0-32-genericsmp.ko
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers
rm -rf .tmp_versions
make[1]: Entering directory '/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/pax'
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno
rm -f pax.ko pax.ko.unsigned pax-x32_64-4.13.0-32-genericsmp.ko
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers
rm -rf .tmp_versions
make[1]: Leaving directory '/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/pax'
make[1]: Entering directory '/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src'
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno
rm -f socperf2_0.ko socperf2_0.ko.unsigned
rm -f socperf2_0*x32_64-4.13.0-32-genericsmp.ko
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers
rm -rf .tmp_versions
make[1]: Leaving directory '/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src'
make[1]: Entering directory '/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp'
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers
rm -rf .tmp_versions
rm -f /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/vtss_autoconf.h
rm -f vtsspp.ko vtsspp.ko.unsigned vtsspp-x32_64-4.13.0-32-genericsmp.ko
make[1]: Leaving directory '/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp'
make[1]: Entering directory '/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src'
/usr/bin//make -C /lib/modules/4.13.0-32-generic/build M=/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src LDDINCDIR=/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/../include LDDINCDIR1=/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/inc modules PWD=/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src -j4
make[2]: Entering directory '/usr/src/linux-headers-4.13.0-32-generic'
  CC   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperfdrv.o
  CC   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/control.o
  CC   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/utility.o
  CC   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/pci.o
  CC   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/soc_uncore.o
  CC   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/haswellunc_sa.o
  CC   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/axi_uncore.o
  CC   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/npk_uncore.o
  LD   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperf2_0.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperf2_0.mod.o
  LD   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperf2_0.ko
make[2]: Leaving directory '/usr/src/linux-headers-4.13.0-32-generic'
cp socperf2_0.ko socperf2_0-x32_64-4.13.0-32-genericsmp.ko
make[1]: Leaving directory '/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src'
/usr/bin//make -C /lib/modules/4.13.0-32-generic/build M=/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src LDDINCDIR=/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/../include LDDINCDIR1=/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/inc modules PWD=/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-32-generic'
***************************************************************
NOTE: NMI Interrupt Mode is set on 4.13.0-32-generic kernel
***************************************************************
  CC   /opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/lwpmudrv.o
/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/lwpmudrv.c: In function ‘lwpmudrv_Get_Drv_Setup_Info’:
/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/lwpmudrv.c:4380:9: error: ‘x86_hyper’ undeclared (first use in this function)
     if (x86_hyper && x86_hyper->name) {
         ^
/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/lwpmudrv.c:4380:9: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:308: recipe for target '/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/lwpmudrv.o' failed
make[2]: *** [/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src/lwpmudrv.o] Error 1
Makefile:1550: recipe for target '_module_/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src' failed
make[1]: *** [_module_/opt/intel/system_studio_2018/vtune_amplifier_2018.1.0.535340/sepdk/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-32-generic'
Makefile:224: recipe for target 'default' failed
make: *** [default] Error 2

 

Benden__Joseph
Beginner
239 Views

I have this problem too.

Beilby__James
Beginner
239 Views

Have the same issue on Linux Kernel 4.14

Fabian_W_
Beginner
239 Views

Same issue with kernel 4.15.1 on openSUSE Tumbleweed

Nikolay_P_
Beginner
239 Views

+1 (also Ubuntu 16.04, kernel 4.13.0-32-generic)

Najeeb_A_
Beginner
239 Views

Still no fix? Any comments from Intel?

240 Views

Hello all,

The driver build error on kernel >4.13 is an impact of recent security patches:

https://software.intel.com/en-us/articles/intel-vtune-amplifier-impact-of-recent-os-security-updates

The fix will be included into the next VTune Amplifier 2018 Update 2 release coming soon.

Please submit a ticket via https://supporttickets.intel.com/ to get an updated pre-release version of sepdk driver kit with the fix.

Regards, Katya

View solution in original post

239 Views

 

UPDATE: Intel® VTune™ Amplifier 2018 Update 2 released and available for download from Intel Registration Center. It includes fixes for the issues described above. If you continue to experience issues after installing this version, please submit a ticket at https://supporttickets.intel.com.

Reply