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

Compilation Fails with 'getTypeAtIndex' Error in Annotation.cpp #2

Open
zaimingli opened this issue Jun 21, 2024 · 0 comments
Open

Comments

@zaimingli
Copy link

Issue Description

During the compilation of the IoctlCmdFinder component, the build process fails with the following error:

Annotation.cpp:277:28: error: 'getTypeAtIndex' is not a member of 'llvm::GetElementPtrInst'
277 | Ptr = GetElementPtrInst::getTypeAtIndex(CT, *IS);
| ^~~~~~~~~~~~~~

This error appears to be related to a missing member function in the LLVM API used. It seems that getTypeAtIndex is either deprecated or not available in the LLVM version being used.

Steps to Reproduce

sudo docker image build --force-rm -t statefuzz_release:latest .

Logs

[ 75%] Building CXX object V4L2Processor/CMakeFiles/V4L2ProcessorPassStatic.dir/src/TypePrintHelper.cpp.o
/home/fuzz/code/difuze/InterfaceHandlers/MainAnalysisPasses/IoctlCmdFinder/src/Annotation.cpp: In function 'std::string KIntAnnotation::getStructId(llvm::Value*, llvm::Use*&, llvm::Use*&, llvm::Module*)':
/home/fuzz/code/difuze/InterfaceHandlers/MainAnalysisPasses/IoctlCmdFinder/src/Annotation.cpp:277:28: error: 'getTypeAtIndex' is not a member of 'llvm::GetElementPtrInst'
277 | Ptr = GetElementPtrInst::getTypeAtIndex(CT, *IS);
| ^~~~~~~~~~~~~~
make[2]: *** [IoctlCmdFinder/CMakeFiles/IoctlCmdPassStatic.dir/build.make:63: IoctlCmdFinder/CMakeFiles/IoctlCmdPassStatic.dir/src/Annotation.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

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

1 participant