Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
5255 Discussions

Failed to build kernel module on Ubuntu 15.10

Daniel_H_7
Beginner
1,560 Views

Everything was working fine on 15.04 ubuntu but when I ugpraded to 15.10 vtune is broken. It won't do a simple analysis (says that 0 samples were collected)

 uname -a

Linux danielrh-desktop 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
root@danielrh-desktop:/opt/intel/vtune_amplifier_xe/sepdk/src# lsb_release -a
No LSB modules are available.
Distributor ID:        Ubuntu
Description:        Ubuntu 15.10
Release:        15.10
Codename:        wily

 

and when I try to build the kernel module, it fails.

I tried to use the build command to build the kernel module and it failed with this error:

  AS   /opt/intel/vtune_amplifier_xe_2016.1.0.424694/sepdk/src/sys64.o
/opt/intel/vtune_amplifier_xe_2016.1.0.424694/sepdk/src/sys64.S:28:24: fatal error: asm/dwarf2.h: No such file or directory
compilation terminated.
scripts/Makefile.build:294: recipe for target '/opt/intel/vtune_amplifier_xe_2016.1.0.424694/sepdk/src/sys64.o' failed
make[2]: *** [/opt/intel/vtune_amplifier_xe_2016.1.0.424694/sepdk/src/sys64.o] Error 1
Makefile:1398: recipe for target '_module_/opt/intel/vtune_amplifier_xe_2016.1.0.424694/sepdk/src' failed
make[1]: *** [_module_/opt/intel/vtune_amplifier_xe_2016.1.0.424694/sepdk/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-16-generic'
Makefile:177: recipe for target 'default' failed
make: *** [default] Error 2
 
so I followed the directions to make sure packages were installed: they were
 
 
root@danielrh-desktop:/opt/intel/vtune_amplifier_xe/sepdk/src#         apt-get install build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
The following package was automatically installed and is no longer required:
  libdw1
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
root@danielrh-desktop:/opt/intel/vtune_amplifier_xe/sepdk/src# apt-get install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-4.2.0-16-generic is already the newest version.
The following package was automatically installed and is no longer required:
  libdw1
Use 'apt-get autoremove' to remove it.
 
Can someone help me get this operational on my standard ubuntu machine? Thanks!
0 Kudos
1 Solution
Dmitry_P_Intel1
Employee
1,560 Views

Hello,

VTune does not officially support Ubuntu 15.10 in VTune Amplifier XE 2016 Update 1 but in Update 1 there should not be the compilation error on the kernel 4.2.

So it is defenitely worth to upgrade.

Thanks & Regards, Dmitry

View solution in original post

0 Kudos
3 Replies
Peter_W_Intel
Employee
1,560 Views

You might upgrade to VTune Amplifier XE 2016 Update 1.

0 Kudos
Dmitry_P_Intel1
Employee
1,561 Views

Hello,

VTune does not officially support Ubuntu 15.10 in VTune Amplifier XE 2016 Update 1 but in Update 1 there should not be the compilation error on the kernel 4.2.

So it is defenitely worth to upgrade.

Thanks & Regards, Dmitry

0 Kudos
Gabrieli_S_
Beginner
1,560 Views

Hi! I installed Vtune Amplifier 2017 for Systems to analyze the power consumption... But, I have found the following error when I run the README.txt from the powerdk folder:

 

.........../opt/intel/vtune_amplifier_2017_for_systems.1.0.487374/powerdk/src/src/apwr_driver.c:4826:38: warning: always_inline function might not be inlinable [-Wattributes]
 void  __attribute__((always_inline)) sys_enter_helper_i(long id, pid_t tid, pid_t
                                      ^
/opt/intel/vtune_amplifier_2017_for_systems.1.0.487374/powerdk/src/src/apwr_driver.c:4802:37: warning: always_inline function might not be inlinable [-Wattributes]
 bool __attribute__((always_inline)) is_sleep_syscall_i(long id)
                                     ^
/opt/intel/vtune_amplifier_2017_for_systems.1.0.487374/powerdk/src/src/apwr_driver.c:4759:37: warning: always_inline function might not be inlinable [-Wattributes]
 void __attribute__((always_inline)) sched_wakeup_helper_i(struct task_struct *tas
                                     ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/opt/intel/vtune_amplifier_2017_for_systems.1.0.487374/powerdk/src/src/apwr_driver.o' failed
make[2]: *** [/opt/intel/vtune_amplifier_2017_for_systems.1.0.487374/powerdk/src/src/apwr_driver.o] Error 1
Makefile:1418: recipe for target '_module_/opt/intel/vtune_amplifier_2017_for_systems.1.0.487374/powerdk/src' failed
make[1]: *** [_module_/opt/intel/vtune_amplifier_2017_for_systems.1.0.487374/powerdk/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-53-generic'
Makefile:165: recipe for target 'default' failed
make: *** [default] Error 2
root@ccd49:/opt/intel/vtune_amplifier_2017_for_systems/powerdk/src#

 

Can someone help me?

I use Ubuntu 16.04.1 LTS

 

 

 

 

0 Kudos
Reply