Skip to content

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

Description

@zaimingli

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....

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions