Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniel_H_7
Beginner
230 Views

Failed to build kernel module on Ubuntu 15.10

Jump to solution

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
230 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

3 Replies
Peter_W_Intel
Employee
230 Views

You might upgrade to VTune Amplifier XE 2016 Update 1.

Dmitry_P_Intel1
Employee
231 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

Gabrieli_S_
Beginner
230 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

 

 

 

 

Reply