ucsb-seclab / difuze

Fuzzer for Linux Kernel Drivers
BSD 2-Clause "Simplified" License
368 stars 80 forks source link

llvm error #19

Open docfate111 opened 3 years ago

docfate111 commented 3 years ago

Looking online the IR/CallSite.h is deprecated?

$ cd InterfaceHandlers && ./build.sh
[*] Trying to Build AnalysisHelpers
[*] Trying to Build Dr_linker
./build.sh: line 3: llvm-config: command not found 
./src/main.cpp:6:10: fatal error: llvm/Pass.h: No such file or directory
    6 | #include "llvm/Pass.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
[*] Trying to Build EntryPointIdentifier
./build.sh: line 3: llvm-config: command not found 
./src/main.cpp:6:10: fatal error: llvm/Pass.h: No such file or directory
    6 | #include "llvm/Pass.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
[*] Trying to Build MainAnalysisPasses
[*] Trying to Run Cmake
mkdir: cannot create directory ‘build_dir’: File exists
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.10") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/thelshell/difuze/InterfaceHandlers/MainAnalysisPasses/build_dir
[*] Trying to make
Scanning dependencies of target Utils
Scanning dependencies of target RangeAnalysis
[  6%] Building CXX object Utils/CMakeFiles/Utils.dir/src/InstructionUtils.cpp.o
[  6%] Building CXX object Utils/CMakeFiles/Utils.dir/src/FileUtils.cpp.o
[  9%] Building CXX object RangeAnalysis/CMakeFiles/RangeAnalysis.dir/src/vSSA.cpp.o
[ 12%] Building CXX object Utils/CMakeFiles/Utils.dir/src/CFGUtils.cpp.o
[ 15%] Building CXX object RangeAnalysis/CMakeFiles/RangeAnalysis.dir/src/RangeAnalysis.cpp.o
In file included from /home/thelshell/difuze/InterfaceHandlers/MainAnalysisPasses/RangeAnalysis/src/RangeAnalysis.cpp:17:
/home/thelshell/difuze/InterfaceHandlers/MainAnalysisPasses/RangeAnalysis/include/RangeAnalysis.h:48:10: fatal error: llvm/IR/CallSite.h: No such file or directory
   48 | #include "llvm/IR/CallSite.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [RangeAnalysis/CMakeFiles/RangeAnalysis.dir/build.make:63: RangeAnalysis/CMakeFiles/RangeAnalysis.dir/src/RangeAnalysis.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/lib/llvm-13/include/llvm/ADT/PostOrderIterator.h:20,
                 from /home/thelshell/difuze/InterfaceHandlers/MainAnalysisPasses/Utils/include/CFGUtils.h:8,
                 from /home/thelshell/difuze/InterfaceHandlers/MainAnalysisPasses/Utils/src/CFGUtils.cpp:5:
/usr/lib/llvm-13/include/llvm/ADT/SmallPtrSet.h: In instantiation of ‘class llvm::SmallPtrSet<const llvm::BasicBlock*, 64>’:
haidela223 commented 1 year ago

Hello, Could you fix this problem?