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