How to install debug symbols when compiling a new Kernel (for systemtap)
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I need to use a new Kernel to test some features (with systemtap). Ubuntu doesn't have a recent 4.15 Kernel in the repos. I have downloaded the source code from kernel.org I have compiled a new kernel on Ubuntu 16 by hand.
After installing and rebooting I get the following output:
$ uname -r
4.15.12
However when I run stap-prep
I get the following output:
bensley@ubuntu16:~$ sudo stap-prep
[sudo] password for bensley:
cut: /proc/version_signature: No such file or directory
dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
Package linux-image-4.15.12 version 4.15.12-3 does not match version of currently running kernel:
Consider apt-get upgrade && reboot
Please install linux-headers-4.15.12
You need package linux-image-4.15.12-dbgsym but it does not seem to be available
Ubuntu -dbgsym packages are typically in a separate repository
Follow https://wiki.ubuntu.com/DebuggingProgramCrash to add this repository
There seems to be a slight difference between version number on the files that were built and the Kernel version. The Kernel shows as 4.15.12 but the linux-headers and linux-image files say they are minor/sub-revision different 4.15.123 (note the extra "3"):
bensley@ubuntu16:~$ apt show linux-headers-4.15.12
Package: linux-headers-4.15.123
Version: 4.15.123-4
Status: install ok installed
Priority: optional
Section: kernel
Source: linux-4.15.123
Maintainer: Anonymous <root@ubuntu16>
Installed-Size: 79.0 MB
Homepage: http://www.kernel.org/
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Linux kernel headers for 4.15.123 on amd64
This package provides kernel header files for 4.15.123 on amd64
.
This is useful for people who need to build external modules
As per the stap-prep
message above Package linux-image-4.15.12 version 4.15.12-3 does not match version of currently running kernel
. How can I resolve this? I have downloaded 4.15.12 source and installed that but the version number in the .deb packages that were built are 4.15.12-3.
These files were produced and successfully installed when I compiled the Kernel and ran sudo dpkg -i *.deb
:
linux-headers-4.15.12_4.15.12-3_amd64.deb
linux-libc-dev_4.15.12-3_amd64.deb
linux-image-4.15.12_4.15.12-3_amd64.deb
linux-image-4.15.12-dbg_4.15.12-3_amd64.deb
linux-kernel compiling systemtap
add a comment |Â
up vote
0
down vote
favorite
I need to use a new Kernel to test some features (with systemtap). Ubuntu doesn't have a recent 4.15 Kernel in the repos. I have downloaded the source code from kernel.org I have compiled a new kernel on Ubuntu 16 by hand.
After installing and rebooting I get the following output:
$ uname -r
4.15.12
However when I run stap-prep
I get the following output:
bensley@ubuntu16:~$ sudo stap-prep
[sudo] password for bensley:
cut: /proc/version_signature: No such file or directory
dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
Package linux-image-4.15.12 version 4.15.12-3 does not match version of currently running kernel:
Consider apt-get upgrade && reboot
Please install linux-headers-4.15.12
You need package linux-image-4.15.12-dbgsym but it does not seem to be available
Ubuntu -dbgsym packages are typically in a separate repository
Follow https://wiki.ubuntu.com/DebuggingProgramCrash to add this repository
There seems to be a slight difference between version number on the files that were built and the Kernel version. The Kernel shows as 4.15.12 but the linux-headers and linux-image files say they are minor/sub-revision different 4.15.123 (note the extra "3"):
bensley@ubuntu16:~$ apt show linux-headers-4.15.12
Package: linux-headers-4.15.123
Version: 4.15.123-4
Status: install ok installed
Priority: optional
Section: kernel
Source: linux-4.15.123
Maintainer: Anonymous <root@ubuntu16>
Installed-Size: 79.0 MB
Homepage: http://www.kernel.org/
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Linux kernel headers for 4.15.123 on amd64
This package provides kernel header files for 4.15.123 on amd64
.
This is useful for people who need to build external modules
As per the stap-prep
message above Package linux-image-4.15.12 version 4.15.12-3 does not match version of currently running kernel
. How can I resolve this? I have downloaded 4.15.12 source and installed that but the version number in the .deb packages that were built are 4.15.12-3.
These files were produced and successfully installed when I compiled the Kernel and ran sudo dpkg -i *.deb
:
linux-headers-4.15.12_4.15.12-3_amd64.deb
linux-libc-dev_4.15.12-3_amd64.deb
linux-image-4.15.12_4.15.12-3_amd64.deb
linux-image-4.15.12-dbg_4.15.12-3_amd64.deb
linux-kernel compiling systemtap
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to use a new Kernel to test some features (with systemtap). Ubuntu doesn't have a recent 4.15 Kernel in the repos. I have downloaded the source code from kernel.org I have compiled a new kernel on Ubuntu 16 by hand.
After installing and rebooting I get the following output:
$ uname -r
4.15.12
However when I run stap-prep
I get the following output:
bensley@ubuntu16:~$ sudo stap-prep
[sudo] password for bensley:
cut: /proc/version_signature: No such file or directory
dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
Package linux-image-4.15.12 version 4.15.12-3 does not match version of currently running kernel:
Consider apt-get upgrade && reboot
Please install linux-headers-4.15.12
You need package linux-image-4.15.12-dbgsym but it does not seem to be available
Ubuntu -dbgsym packages are typically in a separate repository
Follow https://wiki.ubuntu.com/DebuggingProgramCrash to add this repository
There seems to be a slight difference between version number on the files that were built and the Kernel version. The Kernel shows as 4.15.12 but the linux-headers and linux-image files say they are minor/sub-revision different 4.15.123 (note the extra "3"):
bensley@ubuntu16:~$ apt show linux-headers-4.15.12
Package: linux-headers-4.15.123
Version: 4.15.123-4
Status: install ok installed
Priority: optional
Section: kernel
Source: linux-4.15.123
Maintainer: Anonymous <root@ubuntu16>
Installed-Size: 79.0 MB
Homepage: http://www.kernel.org/
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Linux kernel headers for 4.15.123 on amd64
This package provides kernel header files for 4.15.123 on amd64
.
This is useful for people who need to build external modules
As per the stap-prep
message above Package linux-image-4.15.12 version 4.15.12-3 does not match version of currently running kernel
. How can I resolve this? I have downloaded 4.15.12 source and installed that but the version number in the .deb packages that were built are 4.15.12-3.
These files were produced and successfully installed when I compiled the Kernel and ran sudo dpkg -i *.deb
:
linux-headers-4.15.12_4.15.12-3_amd64.deb
linux-libc-dev_4.15.12-3_amd64.deb
linux-image-4.15.12_4.15.12-3_amd64.deb
linux-image-4.15.12-dbg_4.15.12-3_amd64.deb
linux-kernel compiling systemtap
I need to use a new Kernel to test some features (with systemtap). Ubuntu doesn't have a recent 4.15 Kernel in the repos. I have downloaded the source code from kernel.org I have compiled a new kernel on Ubuntu 16 by hand.
After installing and rebooting I get the following output:
$ uname -r
4.15.12
However when I run stap-prep
I get the following output:
bensley@ubuntu16:~$ sudo stap-prep
[sudo] password for bensley:
cut: /proc/version_signature: No such file or directory
dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
Package linux-image-4.15.12 version 4.15.12-3 does not match version of currently running kernel:
Consider apt-get upgrade && reboot
Please install linux-headers-4.15.12
You need package linux-image-4.15.12-dbgsym but it does not seem to be available
Ubuntu -dbgsym packages are typically in a separate repository
Follow https://wiki.ubuntu.com/DebuggingProgramCrash to add this repository
There seems to be a slight difference between version number on the files that were built and the Kernel version. The Kernel shows as 4.15.12 but the linux-headers and linux-image files say they are minor/sub-revision different 4.15.123 (note the extra "3"):
bensley@ubuntu16:~$ apt show linux-headers-4.15.12
Package: linux-headers-4.15.123
Version: 4.15.123-4
Status: install ok installed
Priority: optional
Section: kernel
Source: linux-4.15.123
Maintainer: Anonymous <root@ubuntu16>
Installed-Size: 79.0 MB
Homepage: http://www.kernel.org/
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Linux kernel headers for 4.15.123 on amd64
This package provides kernel header files for 4.15.123 on amd64
.
This is useful for people who need to build external modules
As per the stap-prep
message above Package linux-image-4.15.12 version 4.15.12-3 does not match version of currently running kernel
. How can I resolve this? I have downloaded 4.15.12 source and installed that but the version number in the .deb packages that were built are 4.15.12-3.
These files were produced and successfully installed when I compiled the Kernel and ran sudo dpkg -i *.deb
:
linux-headers-4.15.12_4.15.12-3_amd64.deb
linux-libc-dev_4.15.12-3_amd64.deb
linux-image-4.15.12_4.15.12-3_amd64.deb
linux-image-4.15.12-dbg_4.15.12-3_amd64.deb
linux-kernel compiling systemtap
edited Apr 1 at 9:00
asked Apr 1 at 8:51
jwbensley
2,242102939
2,242102939
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434800%2fhow-to-install-debug-symbols-when-compiling-a-new-kernel-for-systemtap%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password