Perf build in Ubuntu 18.10 fails
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
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.
add a comment |
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
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.
add a comment |
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
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
python 18.10
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.
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.
add a comment |
add a comment |
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.
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
Required, but never shown
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.
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.
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
Required, but never shown
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
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
Required, but never shown
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
Required, but never shown
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
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