Perf build in Ubuntu 18.10 fails












0















I upgraded my Ubuntu installation to 18.10. The kernel I am using is "4.18.0-13-lowlatency".



I have installed perf using linux-tools-common package. Perf works but I can't use the python/perl scripting abilities.



Python scripting not supported. Install libpython and rebuild perf to enable it.
For example:
# apt-get install python-dev (ubuntu)
# yum install python-devel (Fedora)
etc.



I followed the steps here, cloned the corresponding release of Ubuntu-Cosmic. But when I try to build perf, I get following error:



util/parse-events.c: In function ‘parse_events__scanner’:
util/parse-events.c:1795:8: error: implicit declaration of function ‘parse_events_lex_init_extra’; did you mean ‘parse_events_set_extra’? [-Werror=implicit-function-declaration]
ret = parse_events_lex_init_extra(start_token, &scanner);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
parse_events_set_extra
util/parse-events.c:1795:8: error: nested extern declaration of ‘parse_events_lex_init_extra’ [-Werror=nested-externs]



Any hints on how to solve this problem?










share|improve this question







New contributor




amber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I upgraded my Ubuntu installation to 18.10. The kernel I am using is "4.18.0-13-lowlatency".



    I have installed perf using linux-tools-common package. Perf works but I can't use the python/perl scripting abilities.



    Python scripting not supported. Install libpython and rebuild perf to enable it.
    For example:
    # apt-get install python-dev (ubuntu)
    # yum install python-devel (Fedora)
    etc.



    I followed the steps here, cloned the corresponding release of Ubuntu-Cosmic. But when I try to build perf, I get following error:



    util/parse-events.c: In function ‘parse_events__scanner’:
    util/parse-events.c:1795:8: error: implicit declaration of function ‘parse_events_lex_init_extra’; did you mean ‘parse_events_set_extra’? [-Werror=implicit-function-declaration]
    ret = parse_events_lex_init_extra(start_token, &scanner);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    parse_events_set_extra
    util/parse-events.c:1795:8: error: nested extern declaration of ‘parse_events_lex_init_extra’ [-Werror=nested-externs]



    Any hints on how to solve this problem?










    share|improve this question







    New contributor




    amber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I upgraded my Ubuntu installation to 18.10. The kernel I am using is "4.18.0-13-lowlatency".



      I have installed perf using linux-tools-common package. Perf works but I can't use the python/perl scripting abilities.



      Python scripting not supported. Install libpython and rebuild perf to enable it.
      For example:
      # apt-get install python-dev (ubuntu)
      # yum install python-devel (Fedora)
      etc.



      I followed the steps here, cloned the corresponding release of Ubuntu-Cosmic. But when I try to build perf, I get following error:



      util/parse-events.c: In function ‘parse_events__scanner’:
      util/parse-events.c:1795:8: error: implicit declaration of function ‘parse_events_lex_init_extra’; did you mean ‘parse_events_set_extra’? [-Werror=implicit-function-declaration]
      ret = parse_events_lex_init_extra(start_token, &scanner);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      parse_events_set_extra
      util/parse-events.c:1795:8: error: nested extern declaration of ‘parse_events_lex_init_extra’ [-Werror=nested-externs]



      Any hints on how to solve this problem?










      share|improve this question







      New contributor




      amber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I upgraded my Ubuntu installation to 18.10. The kernel I am using is "4.18.0-13-lowlatency".



      I have installed perf using linux-tools-common package. Perf works but I can't use the python/perl scripting abilities.



      Python scripting not supported. Install libpython and rebuild perf to enable it.
      For example:
      # apt-get install python-dev (ubuntu)
      # yum install python-devel (Fedora)
      etc.



      I followed the steps here, cloned the corresponding release of Ubuntu-Cosmic. But when I try to build perf, I get following error:



      util/parse-events.c: In function ‘parse_events__scanner’:
      util/parse-events.c:1795:8: error: implicit declaration of function ‘parse_events_lex_init_extra’; did you mean ‘parse_events_set_extra’? [-Werror=implicit-function-declaration]
      ret = parse_events_lex_init_extra(start_token, &scanner);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      parse_events_set_extra
      util/parse-events.c:1795:8: error: nested extern declaration of ‘parse_events_lex_init_extra’ [-Werror=nested-externs]



      Any hints on how to solve this problem?







      python 18.10






      share|improve this question







      New contributor




      amber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      amber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      amber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Jan 15 at 12:37









      amberamber

      11




      11




      New contributor




      amber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      amber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      amber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          amber is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109935%2fperf-build-in-ubuntu-18-10-fails%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          amber is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          amber is a new contributor. Be nice, and check out our Code of Conduct.













          amber is a new contributor. Be nice, and check out our Code of Conduct.












          amber is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109935%2fperf-build-in-ubuntu-18-10-fails%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Category:香港粉麵

          List *all* the tuples!

          Channel [V]