Giter Club home page Giter Club logo

turnip2's Issues

Problem and Bug in Compile Source!

github.nickfromXXII.turnip2/build$ cmake ..

-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/guest/Gits/github.nickfromXXII.turnip2/build

github.nickfromXXII.turnip2/build$ cmake --build .

Scanning dependencies of target turnip2
[ 20%] Building CXX object CMakeFiles/turnip2.dir/main.cpp.o
[ 40%] Building CXX object CMakeFiles/turnip2.dir/lexer.cpp.o
[ 60%] Building CXX object CMakeFiles/turnip2.dir/parser.cpp.o
[ 80%] Building CXX object CMakeFiles/turnip2.dir/generator.cpp.o
/home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp: In constructor ‘Generator::Generator(bool, bool, const string&)’:
/home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp:29:9: error: no matching function for call to ‘llvm::DIBuilder::createCompileUnit(llvm::dwarf::SourceLanguage, std::__cxx11::string&, const char [2], const char [8], int, const char [1], int)’
         );
         ^
In file included from /home/guest/Gits/github.nickfromXXII.turnip2/generator.h:16:0,
                 from /home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp:9:
/usr/lib/llvm-4.0/include/llvm/IR/DIBuilder.h:109:5: note: candidate: llvm::DICompileUnit* llvm::DIBuilder::createCompileUnit(unsigned int, llvm::DIFile*, llvm::StringRef, bool, llvm::StringRef, unsigned int, llvm::StringRef, llvm::DICompileUnit::DebugEmissionKind, uint64_t, bool)
     createCompileUnit(unsigned Lang, DIFile *File, StringRef Producer,
     ^~~~~~~~~~~~~~~~~
/usr/lib/llvm-4.0/include/llvm/IR/DIBuilder.h:109:5: note:   no known conversion for argument 2 from ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ to ‘llvm::DIFile*’
/home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp: In member function ‘llvm::DIType* Generator::getDebugType(llvm::Type*)’:
/home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp:2489:80: error: no matching function for call to ‘llvm::DIBuilder::createBasicType(const char [4], int, unsigned int&, llvm::dwarf::TypeKind)’
         return dbuilder->createBasicType("int", 32, align, dwarf::DW_ATE_signed);
                                                                                ^
In file included from /home/guest/Gits/github.nickfromXXII.turnip2/generator.h:16:0,
                 from /home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp:9:
/usr/lib/llvm-4.0/include/llvm/IR/DIBuilder.h:157:18: note: candidate: llvm::DIBasicType* llvm::DIBuilder::createBasicType(llvm::StringRef, uint64_t, unsigned int)
     DIBasicType *createBasicType(StringRef Name, uint64_t SizeInBits,
                  ^~~~~~~~~~~~~~~
/usr/lib/llvm-4.0/include/llvm/IR/DIBuilder.h:157:18: note:   candidate expects 3 arguments, 4 provided
/home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp:2491:81: error: no matching function for call to ‘llvm::DIBuilder::createBasicType(const char [6], int, unsigned int&, llvm::dwarf::TypeKind)’
         return dbuilder->createBasicType("float", 64, align, dwarf::DW_ATE_float);
                                                                                 ^
In file included from /home/guest/Gits/github.nickfromXXII.turnip2/generator.h:16:0,
                 from /home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp:9:
/usr/lib/llvm-4.0/include/llvm/IR/DIBuilder.h:157:18: note: candidate: llvm::DIBasicType* llvm::DIBuilder::createBasicType(llvm::StringRef, uint64_t, unsigned int)
     DIBasicType *createBasicType(StringRef Name, uint64_t SizeInBits,
                  ^~~~~~~~~~~~~~~
/usr/lib/llvm-4.0/include/llvm/IR/DIBuilder.h:157:18: note:   candidate expects 3 arguments, 4 provided
/home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp:2493:87: error: no matching function for call to ‘llvm::DIBuilder::createBasicType(const char [5], int, unsigned int&, llvm::dwarf::TypeKind)’
         return dbuilder->createBasicType("char", 8, align, dwarf::DW_ATE_unsigned_char);
                                                                                       ^
In file included from /home/guest/Gits/github.nickfromXXII.turnip2/generator.h:16:0,
                 from /home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp:9:
/usr/lib/llvm-4.0/include/llvm/IR/DIBuilder.h:157:18: note: candidate: llvm::DIBasicType* llvm::DIBuilder::createBasicType(llvm::StringRef, uint64_t, unsigned int)
     DIBasicType *createBasicType(StringRef Name, uint64_t SizeInBits,
                  ^~~~~~~~~~~~~~~
/usr/lib/llvm-4.0/include/llvm/IR/DIBuilder.h:157:18: note:   candidate expects 3 arguments, 4 provided
/home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp:2497:81: error: no matching function for call to ‘llvm::DIBuilder::createBasicType(const char [5], int, unsigned int&, llvm::dwarf::TypeKind)’
         return dbuilder->createBasicType("bool", 1, align, dwarf::DW_ATE_boolean);
                                                                                 ^
In file included from /home/guest/Gits/github.nickfromXXII.turnip2/generator.h:16:0,
                 from /home/guest/Gits/github.nickfromXXII.turnip2/generator.cpp:9:
/usr/lib/llvm-4.0/include/llvm/IR/DIBuilder.h:157:18: note: candidate: llvm::DIBasicType* llvm::DIBuilder::createBasicType(llvm::StringRef, uint64_t, unsigned int)
     DIBasicType *createBasicType(StringRef Name, uint64_t SizeInBits,
                  ^~~~~~~~~~~~~~~
/usr/lib/llvm-4.0/include/llvm/IR/DIBuilder.h:157:18: note:   candidate expects 3 arguments, 4 provided
CMakeFiles/turnip2.dir/build.make:134: recipe for target 'CMakeFiles/turnip2.dir/generator.cpp.o' failed
make[2]: *** [CMakeFiles/turnip2.dir/generator.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/turnip2.dir/all' failed
make[1]: *** [CMakeFiles/turnip2.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

how fix problem?

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.