Skip to content
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

"RegisterLivenessAnalyzer.cpp" mismatch with "liveness.h" in "BinFeat" #1

Open
mali-arf opened this issue Dec 29, 2020 · 1 comment

Comments

@mali-arf
Copy link

make DYNINST_ROOT=/.../dyninst-master/install
Command generates the following error


RegisterLivenessAnalyzer.cpp: In member function ‘virtual void RegisterLivenessAnalyzer::ProduceAFunction(InstanceDataType*)’:
RegisterLivenessAnalyzer.cpp:24:27: error: no matching function for call to ‘LivenessAnalyzer::query(Dyninst::ParseAPI::Block*&, livenessData&)’
24 | if (!la.query(b, data)) {
| ^
In file included from RegisterLivenessAnalyzer.cpp:3:
/home/kali/Desktop/dyninst-master/dataflowAPI/h/liveness.h:83:7: note: candidate: ‘template bool LivenessAnalyzer::query(Dyninst::ParseAPI::Location, LivenessAnalyzer::Type, OutputIterator)’
83 | bool query(ParseAPI::Location loc, Type type, OutputIterator outIter){
| ^~~~~
/home/kali/Desktop/dyninst-master/dataflowAPI/h/liveness.h:83:7: note: template argument deduction/substitution failed:
RegisterLivenessAnalyzer.cpp:24:27: note: candidate expects 3 arguments, 2 provided
24 | if (!la.query(b, data)) {
| ^
In file included from RegisterLivenessAnalyzer.cpp:3:
/home/kali/Desktop/dyninst-master/dataflowAPI/h/liveness.h:95:7: note: candidate: ‘bool LivenessAnalyzer::query(Dyninst::ParseAPI::Location, LivenessAnalyzer::Type, const Dyninst::MachRegister&, bool&)’
95 | bool query(ParseAPI::Location loc, Type type, const MachRegister &machReg, bool& live);
| ^~~~~
/home/kali/Desktop/dyninst-master/dataflowAPI/h/liveness.h:95:7: note: candidate expects 4 arguments, 2 provided
/home/kali/Desktop/dyninst-master/dataflowAPI/h/liveness.h:96:7: note: candidate: ‘bool LivenessAnalyzer::query(Dyninst::ParseAPI::Location, LivenessAnalyzer::Type, bitArray&)’
96 | bool query(ParseAPI::Location loc, Type type, bitArray &bitarray);
| ^~~~~
/home/kali/Desktop/dyninst-master/dataflowAPI/h/liveness.h:96:7: note: candidate expects 3 arguments, 2 provided
make: *** [Makefile:29: RegisterLivenessAnalyzer.o] Error 1


@mxz297
Copy link
Owner

mxz297 commented Jan 4, 2021

This repo depends on some changes that are not in Dyninst upstream. You can try this branch instead:

https://github.com/mxz297/dyninst/tree/issta2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants