JonathanSalwan / Triton

Triton is a dynamic binary analysis library. Build your own program analysis tools, automate your reverse engineering, perform software verification or just emulate code.
https://triton-library.github.io
Apache License 2.0
3.39k stars 524 forks source link

fails to build against LLVM-18 #1306

Closed MehdiChinoune closed 3 months ago

MehdiChinoune commented 4 months ago
  [54/94] Building CXX object src/libtriton/CMakeFiles/triton.dir/ast/llvm/tritonToLLVM.cpp.obj
  FAILED: src/libtriton/CMakeFiles/triton.dir/ast/llvm/tritonToLLVM.cpp.obj 
  C:\msys64\clang64\bin\clang++.exe -DBUILDING_DLL -Dtriton_EXPORTS -IC:/_/B/src/triton/src/libtriton/includes -IC:/_/B/src/build-CLANG64/src/libtriton/includes -isystem C:/msys64/clang64/include/python3.11 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DNDEBUG -std=gnu++17 -MD -MT src/libtriton/CMakeFiles/triton.dir/ast/llvm/tritonToLLVM.cpp.obj -MF src\libtriton\CMakeFiles\triton.dir\ast\llvm\tritonToLLVM.cpp.obj.d -o src/libtriton/CMakeFiles/triton.dir/ast/llvm/tritonToLLVM.cpp.obj -c C:/_/B/src/triton/src/libtriton/ast/llvm/tritonToLLVM.cpp
  C:/_/B/src/triton/src/libtriton/ast/llvm/tritonToLLVM.cpp:321:76: error: no member named 'getInt8PtrTy' in 'llvm::Type'
    321 |           auto* ptr = this->llvmIR.CreateIntToPtr(children[1], llvm::Type::getInt8PtrTy(this->llvmContext));
        |                                                                ~~~~~~~~~~~~^
  C:/_/B/src/triton/src/libtriton/ast/llvm/tritonToLLVM.cpp:326:76: error: no member named 'getInt8PtrTy' in 'llvm::Type'

    326 |           auto* ptr = this->llvmIR.CreateIntToPtr(children[1], llvm::Type::getInt8PtrTy(this->llvmContext));

        |                                                                ~~~~~~~~~~~~^

  2 errors generated.