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

llvm error #19

Open
docfate111 opened this issue Sep 5, 2021 · 1 comment
Open

llvm error #19

docfate111 opened this issue Sep 5, 2021 · 1 comment

Comments

@docfate111
Copy link

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
Copy link

Hello, Could you fix this problem?

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