Giter Club home page Giter Club logo

pldi-tutorials-2023's People

Contributors

sunho avatar vgvassilev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

canliture jeaye

pldi-tutorials-2023's Issues

p3-ex4 does not compile on llvm/clang 16.05

I am using the apt installed llvm 16 version on ubuntu 22.04

-- Found supported version: LLVM 16.0.5
-- Using LLVMConfig.cmake in: /usr/lib/llvm-16/cmake
-- Found supported version: Clang 16.0.5
-- Using ClangConfig.cmake in: /usr/lib/cmake/clang-16

the following functions are not found.

[  0%] Built target intrinsics_gen
[ 16%] Building CXX object examples/p3-ex1/CMakeFiles/p3-ex1.dir/p3-ex1.cpp.o
[ 33%] Linking CXX executable ../../bin/p3-ex1
[ 33%] Built target p3-ex1
[ 50%] Building CXX object examples/p3-ex4/CMakeFiles/p3-ex4-lib.dir/p3-ex4-lib.cpp.o
/home/kevin/Code/thirdparty/pldi-tutorials-2023/examples/p3-ex4/p3-ex4-lib.cpp: In function ‘std::unique_ptr<clang::Interpreter> CreateInterpreter()’:
/home/kevin/Code/thirdparty/pldi-tutorials-2023/examples/p3-ex4/p3-ex4-lib.cpp:49:6: error: ‘class clang::IncrementalCompilerBuilder’ has no member named ‘SetCompilerArgs’
   49 |   CB.SetCompilerArgs({"-resource-dir", ResourceDir.c_str(), "-std=c++20"});
      |      ^~~~~~~~~~~~~~~
/home/kevin/Code/thirdparty/pldi-tutorials-2023/examples/p3-ex4/p3-ex4-lib.cpp:53:21: error: ‘class clang::IncrementalCompilerBuilder’ has no member named ‘CreateCpp’; did you mean ‘create’?
   53 |   CI = ExitOnErr(CB.CreateCpp());
      |                     ^~~~~~~~~
      |                     create
/home/kevin/Code/thirdparty/pldi-tutorials-2023/examples/p3-ex4/p3-ex4-lib.cpp: In function ‘FnAddr_t Clang_GetFunctionAddress(Decl_t)’:
/home/kevin/Code/thirdparty/pldi-tutorials-2023/examples/p3-ex4/p3-ex4-lib.cpp:96:16: error: request for member ‘getValue’ in ‘* Addr.llvm::Expected<long unsigned int>::operator->()’, which is of non-class type ‘std::remove_reference_t<long unsigned int>’ {aka ‘long unsigned int’}
   96 |   return Addr->getValue();
      |                ^~~~~~~~
make[2]: *** [examples/p3-ex4/CMakeFiles/p3-ex4-lib.dir/build.make:76: examples/p3-ex4/CMakeFiles/p3-ex4-lib.dir/p3-ex4-lib.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:351: examples/p3-ex4/CMakeFiles/p3-ex4-lib.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

these seem to have been added 2 weeks ago in clang/Interpreter/Interpreter.h

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.