Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5140 Discussions

Building the sampling driver from vtune_amplifier_2018.3.0.558279 fails on CentOS 6

obfuscated
Beginner
873 Views

I'm trying to build the sampling driver from this release, but the build fails. The system is fully up to date. Building the sampling driver for 2017.4 works fine.

This is the log:

# ./build-driver -ni 
C compiler to use: [ /usr/bin/gcc ] 
Make command to use: [ /usr/bin/make ] 
Kernel source directory: [ /lib/modules/2.6.32-754.3.5.el6.x86_64/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-2.6.32-754.3.5.el6.x86_64smp.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.3.0.558279/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-2.6.32-754.3.5.el6.x86_64smp.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.3.0.558279/sepdk/src/pax'
make[1]: Entering directory `/opt/intel/vtune_amplifier_2018.3.0.558279/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-2.6.32-754.3.5.el6.x86_64smp.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.3.0.558279/sepdk/src/socperf/src'
make[1]: Entering directory `/opt/intel/vtune_amplifier_2018.3.0.558279/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.3.0.558279/sepdk/src/vtsspp/vtss_autoconf.h
rm -f vtsspp.ko vtsspp.ko.unsigned vtsspp-x32_64-2.6.32-754.3.5.el6.x86_64smp.ko
make[1]: Leaving directory `/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/vtsspp'
make[1]: Entering directory `/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src'
/usr/bin/make -C /lib/modules/2.6.32-754.3.5.el6.x86_64/build M=/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src LDDINCDIR=/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/../include LDDINCDIR1=/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/inc modules PWD=/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src -j4
make[2]: Entering directory `/usr/src/kernels/2.6.32-754.3.5.el6.x86_64'
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/socperfdrv.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/control.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/utility.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/pci.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/soc_uncore.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/haswellunc_sa.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/npk_uncore.o
  LD   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/socperf2_0.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/socperf2_0.mod.o
  LD   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/socperf2_0.ko.unsigned
  NO SIGN  /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src/socperf2_0.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.32-754.3.5.el6.x86_64'
cp socperf2_0.ko socperf2_0-x32_64-2.6.32-754.3.5.el6.x86_64smp.ko
make[1]: Leaving directory `/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/socperf/src'
/usr/bin/make -C /lib/modules/2.6.32-754.3.5.el6.x86_64/build M=/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src LDDINCDIR=/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/../include LDDINCDIR1=/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/inc modules PWD=/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src -j4
make[1]: Entering directory `/usr/src/kernels/2.6.32-754.3.5.el6.x86_64'
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/lwpmudrv.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/control.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/cpumon.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/eventmux.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/linuxos.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/output.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pmi.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/sys_info.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/utility.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/valleyview_sochap.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/unc_power.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pci.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/chap.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/gmch.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/gfx.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/unc_sa.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/core2.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/perfver4.o
  AS   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/sys64.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/silvermont.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/apic.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/unc_gt.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/unc_mmio.o
  CC   /opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/unc_msr.o
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:55:32: error: asm/cpu_entry_area.h: No such file or directory
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:58:26: error: asm/intel_ds.h: No such file or directory
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c: In function ‘pebs_Update_CEA’:
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:104: error: storage size of ‘info’ isn’t known
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:104: warning: unused variable ‘info’
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c: In function ‘pebs_Alloc_DTS_Buffer’:
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:628: error: ‘PEBS_BUFFER_SIZE’ undeclared (first use in this function)
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:628: error: (Each undeclared identifier is reported only once
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:628: error: for each function it appears in.)
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:633: error: implicit declaration of function ‘__alloc_pages_node’
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:633: warning: assignment makes pointer from integer without a cast
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:639: error: implicit declaration of function ‘get_cpu_entry_area’
/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.c:639: error: invalid type argument of ‘->’ (have ‘int’)
make[2]: *** [/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src/pebs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/opt/intel/vtune_amplifier_2018.3.0.558279/sepdk/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-754.3.5.el6.x86_64'
make: *** [default] Error 2

 

0 Kudos
5 Replies
Alexey_B_Intel2
Employee
873 Views

Hi,

Known issue, fixed in Vtune 2019 Beta Update and will be fixed in next Vtune 2018 updates.

Please don't use drivers from 2017 releases they are incompatible with latest RHEL/CentOS kernels and might crash you machine.

 

0 Kudos
obfuscated
Beginner
873 Views

Thanks for the reply.

Do you have some rough estimates when this 2018 update will be released?

0 Kudos
Ekaterina_L_Intel
873 Views

Hello,

Please download updated sepdk with respective fixes from https://software.intel.com/en-us/articles/intel-vtune-amplifier-sampling-driver-downloads

Let us know if you see any problems with it.

The fixes are included into coming releases of VTune Amplifier 2018 Update 4 and VTune Amplifier 2019.

Regards, Katya

0 Kudos
Matthew_H_6
Beginner
873 Views

I downloaded the update referenced, sepdk_v4_573462.tar.gz, but I still see the same error.

sepdk/src/pebs.c:55:32: error: asm/cpu_entry_area.h: No such file or directory

 

0 Kudos
Ekaterina_L_Intel
873 Views

Hello Matthew,

Investigation revealed that 2.6.32-754.3.5 kernel requires additional changes in sampling v4 drivers.

Please find updated sepdk_v4_574913.tar.gz with latest fixes attached to this post and let us know if you see any further issues with it.

Regards, Katya

0 Kudos
Reply