- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
CC
CC
CC
CC
CC
CC
CC
LD
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
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
CC
CC
CC
CC
/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
CC
CC
CC
CC
CC
CC
CC
CC
CC
CC
CC
CC
AS
CC
CC
CC
CC
CC
CC
CC
CC
CC
LD
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
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
Building modules, stage 2.
MODPOST 1 modules
CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/pax.mod.o
LD
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
CC
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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
CC
CC
CC
CC
CC
CC
CC
LD
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
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.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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have this problem too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have the same issue on Linux Kernel 4.14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same issue with kernel 4.15.1 on openSUSE Tumbleweed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
+1 (also Ubuntu 16.04, kernel 4.13.0-32-generic)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Still no fix? Any comments from Intel?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page