How to install debug symbols when compiling a new Kernel (for systemtap)

The name of the pictureThe name of the pictureThe name of the pictureClash 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







share|improve this question


























    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







    share|improve this question
























      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







      share|improve this question














      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









      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 1 at 9:00

























      asked Apr 1 at 8:51









      jwbensley

      2,242102939




      2,242102939

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          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



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?