Building Perf with Babeltrace (for Perf to CTF Conversion) fails with undefined reference to...
I followed instructions provided by the existing Stackoverflow question/answer Building Perf with Babeltrace (for Perf to CTF Conversion)
Building linux/tools/perf with Babeltrace conversion support fails with the following error:
LINK perf
libperf.a(libperf-in.o): In function event_class_add_field:
/tools/perf/util/data-convert-bt.c:988: undefined reference to bt_ctf_validate_identifier
collect2: error: ld returned 1 exit status
Makefile.perf:567: recipe for target 'perf' failed
I tried building linux/tools/perf with Babeltrace installed from packages on Debian Linux distribution and also building Babeltrace from source code.
In both cases, Babeltrace was successfully installed and available before an attempt at building linux/tools/perf with Babeltrace CTF support.
linux perf
add a comment |
I followed instructions provided by the existing Stackoverflow question/answer Building Perf with Babeltrace (for Perf to CTF Conversion)
Building linux/tools/perf with Babeltrace conversion support fails with the following error:
LINK perf
libperf.a(libperf-in.o): In function event_class_add_field:
/tools/perf/util/data-convert-bt.c:988: undefined reference to bt_ctf_validate_identifier
collect2: error: ld returned 1 exit status
Makefile.perf:567: recipe for target 'perf' failed
I tried building linux/tools/perf with Babeltrace installed from packages on Debian Linux distribution and also building Babeltrace from source code.
In both cases, Babeltrace was successfully installed and available before an attempt at building linux/tools/perf with Babeltrace CTF support.
linux perf
1
Babeltrace built from source code, git tag -l displays: v2.0.0-pre4
– ss_programming
Jan 2 at 0:11
I get the same error when building linux/tools/perf on Linux source code versions 4.20 and 4.15.0.
– ss_programming
Jan 2 at 0:19
Building linux/tools/perf with:NO_LIBBABELTRACE=1 make
Results in a working perf binary.
– ss_programming
Jan 2 at 0:23
Can you try to build with older version of Babeltrace, with checking that this version hasbt_ctf_validate_identifier
function? For example you may try versions from 2017 when the question stackoverflow.com/questions/43576997 was asked or v1.5.6 or v1.5.3. Where is the git of babeltrace? The functionbt_ctf_validate_identifier
was added in 2015 654c1444 toformats/ctf/ir/utils.c
file which is part of v1.5.6 but not 2.0.0.
– osgx
Jan 4 at 8:35
add a comment |
I followed instructions provided by the existing Stackoverflow question/answer Building Perf with Babeltrace (for Perf to CTF Conversion)
Building linux/tools/perf with Babeltrace conversion support fails with the following error:
LINK perf
libperf.a(libperf-in.o): In function event_class_add_field:
/tools/perf/util/data-convert-bt.c:988: undefined reference to bt_ctf_validate_identifier
collect2: error: ld returned 1 exit status
Makefile.perf:567: recipe for target 'perf' failed
I tried building linux/tools/perf with Babeltrace installed from packages on Debian Linux distribution and also building Babeltrace from source code.
In both cases, Babeltrace was successfully installed and available before an attempt at building linux/tools/perf with Babeltrace CTF support.
linux perf
I followed instructions provided by the existing Stackoverflow question/answer Building Perf with Babeltrace (for Perf to CTF Conversion)
Building linux/tools/perf with Babeltrace conversion support fails with the following error:
LINK perf
libperf.a(libperf-in.o): In function event_class_add_field:
/tools/perf/util/data-convert-bt.c:988: undefined reference to bt_ctf_validate_identifier
collect2: error: ld returned 1 exit status
Makefile.perf:567: recipe for target 'perf' failed
I tried building linux/tools/perf with Babeltrace installed from packages on Debian Linux distribution and also building Babeltrace from source code.
In both cases, Babeltrace was successfully installed and available before an attempt at building linux/tools/perf with Babeltrace CTF support.
linux perf
linux perf
edited Jan 1 at 10:00
Harsh Patel
1,79111331
1,79111331
asked Jan 1 at 1:35
ss_programmingss_programming
62
62
1
Babeltrace built from source code, git tag -l displays: v2.0.0-pre4
– ss_programming
Jan 2 at 0:11
I get the same error when building linux/tools/perf on Linux source code versions 4.20 and 4.15.0.
– ss_programming
Jan 2 at 0:19
Building linux/tools/perf with:NO_LIBBABELTRACE=1 make
Results in a working perf binary.
– ss_programming
Jan 2 at 0:23
Can you try to build with older version of Babeltrace, with checking that this version hasbt_ctf_validate_identifier
function? For example you may try versions from 2017 when the question stackoverflow.com/questions/43576997 was asked or v1.5.6 or v1.5.3. Where is the git of babeltrace? The functionbt_ctf_validate_identifier
was added in 2015 654c1444 toformats/ctf/ir/utils.c
file which is part of v1.5.6 but not 2.0.0.
– osgx
Jan 4 at 8:35
add a comment |
1
Babeltrace built from source code, git tag -l displays: v2.0.0-pre4
– ss_programming
Jan 2 at 0:11
I get the same error when building linux/tools/perf on Linux source code versions 4.20 and 4.15.0.
– ss_programming
Jan 2 at 0:19
Building linux/tools/perf with:NO_LIBBABELTRACE=1 make
Results in a working perf binary.
– ss_programming
Jan 2 at 0:23
Can you try to build with older version of Babeltrace, with checking that this version hasbt_ctf_validate_identifier
function? For example you may try versions from 2017 when the question stackoverflow.com/questions/43576997 was asked or v1.5.6 or v1.5.3. Where is the git of babeltrace? The functionbt_ctf_validate_identifier
was added in 2015 654c1444 toformats/ctf/ir/utils.c
file which is part of v1.5.6 but not 2.0.0.
– osgx
Jan 4 at 8:35
1
1
Babeltrace built from source code, git tag -l displays: v2.0.0-pre4
– ss_programming
Jan 2 at 0:11
Babeltrace built from source code, git tag -l displays: v2.0.0-pre4
– ss_programming
Jan 2 at 0:11
I get the same error when building linux/tools/perf on Linux source code versions 4.20 and 4.15.0.
– ss_programming
Jan 2 at 0:19
I get the same error when building linux/tools/perf on Linux source code versions 4.20 and 4.15.0.
– ss_programming
Jan 2 at 0:19
Building linux/tools/perf with:
NO_LIBBABELTRACE=1 make
Results in a working perf binary.– ss_programming
Jan 2 at 0:23
Building linux/tools/perf with:
NO_LIBBABELTRACE=1 make
Results in a working perf binary.– ss_programming
Jan 2 at 0:23
Can you try to build with older version of Babeltrace, with checking that this version has
bt_ctf_validate_identifier
function? For example you may try versions from 2017 when the question stackoverflow.com/questions/43576997 was asked or v1.5.6 or v1.5.3. Where is the git of babeltrace? The function bt_ctf_validate_identifier
was added in 2015 654c1444 to formats/ctf/ir/utils.c
file which is part of v1.5.6 but not 2.0.0.– osgx
Jan 4 at 8:35
Can you try to build with older version of Babeltrace, with checking that this version has
bt_ctf_validate_identifier
function? For example you may try versions from 2017 when the question stackoverflow.com/questions/43576997 was asked or v1.5.6 or v1.5.3. Where is the git of babeltrace? The function bt_ctf_validate_identifier
was added in 2015 654c1444 to formats/ctf/ir/utils.c
file which is part of v1.5.6 but not 2.0.0.– osgx
Jan 4 at 8:35
add a comment |
1 Answer
1
active
oldest
votes
bt_ctf_validate_identifier
function seems to be defined and implemented only in 1.5 branch of the babeltrace, not in 2.0 (v2.0.0-pre4)
https://github.com/efficios/babeltrace/blob/stable-1.5/formats/ctf/ir/utils.c
https://github.com/efficios/babeltrace/blob/v1.5.6/formats/ctf/ir/utils.c
75 int bt_ctf_validate_identifier(const char *input_string)
Try to recompile and reinstall babeltrace from git tag v1.5.6
and then clean and recompile perf with this version.
perf tool from linux kernel versions 4.15 - 4.20 seems to be written for stable-1.5 branches of the babeltrace.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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
});
}
});
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%2fstackoverflow.com%2fquestions%2f53992527%2fbuilding-perf-with-babeltrace-for-perf-to-ctf-conversion-fails-with-undefined%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
bt_ctf_validate_identifier
function seems to be defined and implemented only in 1.5 branch of the babeltrace, not in 2.0 (v2.0.0-pre4)
https://github.com/efficios/babeltrace/blob/stable-1.5/formats/ctf/ir/utils.c
https://github.com/efficios/babeltrace/blob/v1.5.6/formats/ctf/ir/utils.c
75 int bt_ctf_validate_identifier(const char *input_string)
Try to recompile and reinstall babeltrace from git tag v1.5.6
and then clean and recompile perf with this version.
perf tool from linux kernel versions 4.15 - 4.20 seems to be written for stable-1.5 branches of the babeltrace.
add a comment |
bt_ctf_validate_identifier
function seems to be defined and implemented only in 1.5 branch of the babeltrace, not in 2.0 (v2.0.0-pre4)
https://github.com/efficios/babeltrace/blob/stable-1.5/formats/ctf/ir/utils.c
https://github.com/efficios/babeltrace/blob/v1.5.6/formats/ctf/ir/utils.c
75 int bt_ctf_validate_identifier(const char *input_string)
Try to recompile and reinstall babeltrace from git tag v1.5.6
and then clean and recompile perf with this version.
perf tool from linux kernel versions 4.15 - 4.20 seems to be written for stable-1.5 branches of the babeltrace.
add a comment |
bt_ctf_validate_identifier
function seems to be defined and implemented only in 1.5 branch of the babeltrace, not in 2.0 (v2.0.0-pre4)
https://github.com/efficios/babeltrace/blob/stable-1.5/formats/ctf/ir/utils.c
https://github.com/efficios/babeltrace/blob/v1.5.6/formats/ctf/ir/utils.c
75 int bt_ctf_validate_identifier(const char *input_string)
Try to recompile and reinstall babeltrace from git tag v1.5.6
and then clean and recompile perf with this version.
perf tool from linux kernel versions 4.15 - 4.20 seems to be written for stable-1.5 branches of the babeltrace.
bt_ctf_validate_identifier
function seems to be defined and implemented only in 1.5 branch of the babeltrace, not in 2.0 (v2.0.0-pre4)
https://github.com/efficios/babeltrace/blob/stable-1.5/formats/ctf/ir/utils.c
https://github.com/efficios/babeltrace/blob/v1.5.6/formats/ctf/ir/utils.c
75 int bt_ctf_validate_identifier(const char *input_string)
Try to recompile and reinstall babeltrace from git tag v1.5.6
and then clean and recompile perf with this version.
perf tool from linux kernel versions 4.15 - 4.20 seems to be written for stable-1.5 branches of the babeltrace.
answered Jan 4 at 8:41
osgxosgx
57.7k32242407
57.7k32242407
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- 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%2fstackoverflow.com%2fquestions%2f53992527%2fbuilding-perf-with-babeltrace-for-perf-to-ctf-conversion-fails-with-undefined%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
1
Babeltrace built from source code, git tag -l displays: v2.0.0-pre4
– ss_programming
Jan 2 at 0:11
I get the same error when building linux/tools/perf on Linux source code versions 4.20 and 4.15.0.
– ss_programming
Jan 2 at 0:19
Building linux/tools/perf with:
NO_LIBBABELTRACE=1 make
Results in a working perf binary.– ss_programming
Jan 2 at 0:23
Can you try to build with older version of Babeltrace, with checking that this version has
bt_ctf_validate_identifier
function? For example you may try versions from 2017 when the question stackoverflow.com/questions/43576997 was asked or v1.5.6 or v1.5.3. Where is the git of babeltrace? The functionbt_ctf_validate_identifier
was added in 2015 654c1444 toformats/ctf/ir/utils.c
file which is part of v1.5.6 but not 2.0.0.– osgx
Jan 4 at 8:35