-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
struct pt_isn has no member named ... : Error in building user tools #9
Comments
sid7954
changed the title
struct pt_isn missing members : Error in building user tools
struct pt_isn has no member named ... : Error in building user tools
May 9, 2017
Looks like a recent commit in libipt broke it.
For now you can go back to libipt commit b08d7bf362eb07 (git checkout
b08d7bf362eb07) and rebuild/reinstall
…-Andi
On Tue, May 09, 2017 at 09:16:20AM -0700, sid7954 wrote:
After following the instructions exactly and installing the correct branch of
libipt from https://github.com/01org/processor-trace, building user tools
throws an error regarding the struct pt_isn not having certain member.
cc -g -Wall -DHAVE_XED=1 -I ../processor-trace/libipt/include -c -o sptdecode.o
sptdecode.c
sptdecode.c: In function ‘transfer_events’:
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘aborted’
#define T(x) si->x = insn->x;
^
sptdecode.c:86:2: note: in expansion of macro ‘T’
T(aborted);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘committed’
#define T(x) si->x = insn->x;
^
sptdecode.c:87:2: note: in expansion of macro ‘T’
T(committed);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘disabled’
#define T(x) si->x = insn->x;
^
sptdecode.c:88:2: note: in expansion of macro ‘T’
T(disabled);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘enabled’
#define T(x) si->x = insn->x;
^
sptdecode.c:89:2: note: in expansion of macro ‘T’
T(enabled);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘resumed’
#define T(x) si->x = insn->x;
^
sptdecode.c:90:2: note: in expansion of macro ‘T’
T(resumed);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘interrupted’
#define T(x) si->x = insn->x;
^
sptdecode.c:91:2: note: in expansion of macro ‘T’
T(interrupted);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘resynced’
#define T(x) si->x = insn->x;
^
sptdecode.c:92:2: note: in expansion of macro ‘T’
T(resynced);
^
sptdecode.c: In function ‘print_insn’:
sptdecode.c:287:10: error: ‘struct pt_insn’ has no member named ‘enabled’
if (insn->enabled)
^
sptdecode.c:289:10: error: ‘struct pt_insn’ has no member named ‘disabled’
if (insn->disabled)
^
sptdecode.c:291:10: error: ‘struct pt_insn’ has no member named ‘resumed’
if (insn->resumed)
^
sptdecode.c:293:10: error: ‘struct pt_insn’ has no member named ‘interrupted’
if (insn->interrupted)
^
sptdecode.c: In function ‘decode’:
sptdecode.c:510:11: error: ‘struct pt_insn’ has no member named ‘enabled’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:510:27: error: ‘struct pt_insn’ has no member named ‘disabled’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:510:44: error: ‘struct pt_insn’ has no member named ‘resumed’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:510:60: error: ‘struct pt_insn’ has no member named ‘interrupted’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:511:11: error: ‘struct pt_insn’ has no member named ‘resynced’
insn.resynced || insn.stopped || insn.aborted) {
^
sptdecode.c:511:28: error: ‘struct pt_insn’ has no member named ‘stopped’
insn.resynced || insn.stopped || insn.aborted) {
^
sptdecode.c:511:44: error: ‘struct pt_insn’ has no member named ‘aborted’
insn.resynced || insn.stopped || insn.aborted) {
^
: recipe for target 'sptdecode.o' failed
make: *** [sptdecode.o] Error 1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.*
|
Reverting to the older version works. Thanks! |
Keeping it open because the problem is still there |
r1 and r2 versions pop out the same make errors. No commit b08d7bf362eb07 could be checked out. Is there any workaround for it? Thank you. |
Sorry, just got it checked. The master branch works. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After following the instructions exactly and installing libipt from https://github.com/01org/processor-trace, building user tools throws an error regarding the struct pt_isn not having certain members.
cc -g -Wall -DHAVE_XED=1 -I ../processor-trace/libipt/include -c -o sptdecode.o sptdecode.c
sptdecode.c: In function ‘transfer_events’:
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘aborted’
#define T(x) si->x = insn->x;
^
sptdecode.c:86:2: note: in expansion of macro ‘T’
T(aborted);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘committed’
#define T(x) si->x = insn->x;
^
sptdecode.c:87:2: note: in expansion of macro ‘T’
T(committed);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘disabled’
#define T(x) si->x = insn->x;
^
sptdecode.c:88:2: note: in expansion of macro ‘T’
T(disabled);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘enabled’
#define T(x) si->x = insn->x;
^
sptdecode.c:89:2: note: in expansion of macro ‘T’
T(enabled);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘resumed’
#define T(x) si->x = insn->x;
^
sptdecode.c:90:2: note: in expansion of macro ‘T’
T(resumed);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘interrupted’
#define T(x) si->x = insn->x;
^
sptdecode.c:91:2: note: in expansion of macro ‘T’
T(interrupted);
^
sptdecode.c:84:26: error: ‘struct pt_insn’ has no member named ‘resynced’
#define T(x) si->x = insn->x;
^
sptdecode.c:92:2: note: in expansion of macro ‘T’
T(resynced);
^
sptdecode.c: In function ‘print_insn’:
sptdecode.c:287:10: error: ‘struct pt_insn’ has no member named ‘enabled’
if (insn->enabled)
^
sptdecode.c:289:10: error: ‘struct pt_insn’ has no member named ‘disabled’
if (insn->disabled)
^
sptdecode.c:291:10: error: ‘struct pt_insn’ has no member named ‘resumed’
if (insn->resumed)
^
sptdecode.c:293:10: error: ‘struct pt_insn’ has no member named ‘interrupted’
if (insn->interrupted)
^
sptdecode.c: In function ‘decode’:
sptdecode.c:510:11: error: ‘struct pt_insn’ has no member named ‘enabled’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:510:27: error: ‘struct pt_insn’ has no member named ‘disabled’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:510:44: error: ‘struct pt_insn’ has no member named ‘resumed’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:510:60: error: ‘struct pt_insn’ has no member named ‘interrupted’
insn.enabled || insn.disabled || insn.resumed || insn.interrupted ||
^
sptdecode.c:511:11: error: ‘struct pt_insn’ has no member named ‘resynced’
insn.resynced || insn.stopped || insn.aborted) {
^
sptdecode.c:511:28: error: ‘struct pt_insn’ has no member named ‘stopped’
insn.resynced || insn.stopped || insn.aborted) {
^
sptdecode.c:511:44: error: ‘struct pt_insn’ has no member named ‘aborted’
insn.resynced || insn.stopped || insn.aborted) {
^
: recipe for target 'sptdecode.o' failed
make: *** [sptdecode.o] Error 1
The text was updated successfully, but these errors were encountered: