Created
June 3, 2017 08:42
-
-
Save hughperkins/feae9eb2adfee57fc5d40de8f8c1a924 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The C compiler identification is Clang 5.0.0 | |
The CXX compiler identification is Clang 5.0.0 | |
Check for working C compiler: /home/naths/build/llvm/bin/clang | |
Check for working C compiler: /home/naths/build/llvm/bin/clang -- 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: /home/naths/build/llvm/bin/clang++ | |
Check for working CXX compiler: /home/naths/build/llvm/bin/clang++ -- works | |
Detecting CXX compiler ABI info | |
Detecting CXX compiler ABI info - done | |
Detecting CXX compile features | |
Detecting CXX compile features - done | |
I made the fix to CLANG_HOME as you have suggested. | |
Generation succeeds. Now I am getting compilation errors ! | |
/home/naths/srcs/coriander/src/patch_hostside.cpp:415:35: error: no matching constructor for initialization of 'llvm::AllocaInst' | |
Instruction *alloca = new AllocaInst(newType, "newalloca"); | |
^ ~~~~~~~~~~~~~~~~~~~~ | |
/home/naths/srcs/llvm/include/llvm/IR/Instructions.h:75:12: note: candidate constructor not viable: no known conversion from 'const char [10]' to 'unsigned int' for 2nd | |
argument | |
explicit AllocaInst(Type *Ty, unsigned AddrSpace, | |
^ | |
/home/naths/srcs/llvm/include/llvm/IR/Instructions.h:65:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided | |
class AllocaInst : public UnaryInstruction { | |
^ | |
/home/naths/srcs/llvm/include/llvm/IR/Instructions.h:82:3: note: candidate constructor not viable: requires at least 3 arguments, but 2 were provided | |
AllocaInst(Type *Ty, unsigned AddrSpace, | |
^ | |
/home/naths/srcs/llvm/include/llvm/IR/Instructions.h:84:3: note: candidate constructor not viable: requires 4 arguments, but 2 were provided | |
AllocaInst(Type *Ty, unsigned AddrSpace, | |
^ | |
/home/naths/srcs/llvm/include/llvm/IR/Instructions.h:79:3: note: candidate constructor not viable: requires 5 arguments, but 2 were provided | |
AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, | |
^ | |
/home/naths/srcs/llvm/include/llvm/IR/Instructions.h:87:3: note: candidate constructor not viable: requires at least 4 arguments, but 2 were provided | |
AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, unsigned Align, | |
^ | |
/home/naths/srcs/llvm/include/llvm/IR/Instructions.h:89:3: note: candidate constructor not viable: requires 6 arguments, but 2 were provided | |
AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, unsigned Align, | |
^ | |
In file included from /home/naths/srcs/coriander/src/patch_hostside.cpp:17: | |
In file included from /home/naths/srcs/coriander/src/patch_hostside.h:61: | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:344:43: error: no matching constructor for initialization of 'SmallVector<llvm::Type , sizeof...(ArgsTy)>' | |
SmallVector<Type, sizeof...(ArgsTy)> ArgTys{Args...}; | |
^ ~~~~~~~~~ | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:353:12: note: in instantiation of function template specialization 'llvm::Module::getOrInsertFunction<llvm::IntegerType *, | |
long>' requested here | |
return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); | |
^ | |
/home/naths/srcs/coriander/src/patch_hostside.cpp:155:51: note: in instantiation of function template specialization 'llvm::Module::getOrInsertFunction<llvm::IntegerType *, | |
long>' requested here | |
Function *setKernelArgInt = cast(M->getOrInsertFunction( | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:850:12: note: candidate constructor not viable: no known conversion from 'llvm::IntegerType *' to 'size_t' | |
(aka 'unsigned long') for 1st argument | |
explicit SmallVector(size_t Size, const T &Value = T()) | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:856:3: note: candidate template ignored: deduced conflicting types for parameter 'ItTy' | |
('llvm::IntegerType *' vs. 'long') | |
SmallVector(ItTy S, ItTy E) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:861:12: note: candidate constructor template not viable: requires single argument 'R', but 2 arguments were provided | |
explicit SmallVector(const iterator_range &R) | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:866:3: note: candidate constructor not viable: requires single argument 'IL', but 2 arguments were provided | |
SmallVector(std::initializer_list IL) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:870:3: note: candidate constructor not viable: requires single argument 'RHS', but 2 arguments were provided | |
SmallVector(const SmallVector &RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:880:3: note: candidate constructor not viable: requires single argument 'RHS', but 2 arguments were provided | |
SmallVector(SmallVector &&RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:885:3: note: candidate constructor not viable: requires single argument 'RHS', but 2 arguments were provided | |
SmallVector(SmallVectorImpl &&RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:848:3: note: candidate constructor not viable: requires 0 arguments, but 2 were provided | |
SmallVector() : SmallVectorImpl(N) {} | |
^ | |
In file included from /home/naths/srcs/coriander/src/patch_hostside.cpp:17: | |
In file included from /home/naths/srcs/coriander/src/patch_hostside.h:61: | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:344:43: error: no matching constructor for initialization of 'SmallVector<llvm::Type , sizeof...(ArgsTy)>' | |
SmallVector<Type, sizeof...(ArgsTy)> ArgTys{Args...}; | |
^ ~~~~~~~~~ | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:353:12: note: in instantiation of function template specialization 'llvm::Module::getOrInsertFunction<llvm::Type *, long>' | |
requested here | |
return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); | |
^ | |
/home/naths/srcs/coriander/src/patch_hostside.cpp:187:53: note: in instantiation of function template specialization 'llvm::Module::getOrInsertFunction<llvm::Type *, long>' | |
requested here | |
Function *setKernelArgFloat = cast(M->getOrInsertFunction( | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:850:12: note: candidate constructor not viable: no known conversion from 'llvm::Type *' to 'size_t' | |
(aka 'unsigned long') for 1st argument | |
explicit SmallVector(size_t Size, const T &Value = T()) | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:856:3: note: candidate template ignored: deduced conflicting types for parameter 'ItTy' ('llvm::Type *' vs. 'long') | |
SmallVector(ItTy S, ItTy E) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:861:12: note: candidate constructor template not viable: requires single argument 'R', but 2 arguments were provided | |
explicit SmallVector(const iterator_range &R) | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:866:3: note: candidate constructor not viable: requires single argument 'IL', but 2 arguments were provided | |
SmallVector(std::initializer_list IL) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:870:3: note: candidate constructor not viable: requires single argument 'RHS', but 2 arguments were provided | |
SmallVector(const SmallVector &RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:880:3: note: candidate constructor not viable: requires single argument 'RHS', but 2 arguments were provided | |
SmallVector(SmallVector &&RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:885:3: note: candidate constructor not viable: requires single argument 'RHS', but 2 arguments were provided | |
SmallVector(SmallVectorImpl &&RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:848:3: note: candidate constructor not viable: requires 0 arguments, but 2 were provided | |
SmallVector() : SmallVectorImpl(N) {} | |
^ | |
In file included from /home/naths/srcs/coriander/src/patch_hostside.cpp:17: | |
In file included from /home/naths/srcs/coriander/src/patch_hostside.h:61: | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:344:43: error: no matching constructor for initialization of 'SmallVector<llvm::Type , sizeof...(ArgsTy)>' | |
SmallVector<Type, sizeof...(ArgsTy)> ArgTys{Args...}; | |
^ ~~~~~~~~~ | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:353:12: note: in instantiation of function template specialization 'llvm::Module::getOrInsertFunction<llvm::PointerType *, | |
llvm::IntegerType *, long>' requested here | |
return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); | |
^ | |
/home/naths/srcs/coriander/src/patch_hostside.cpp:243:57: note: in instantiation of function template specialization 'llvm::Module::getOrInsertFunction<llvm::PointerType *, | |
llvm::IntegerType *, long>' requested here | |
Function *setKernelArgGpuBuffer = cast(M->getOrInsertFunction( | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:856:3: note: candidate constructor template not viable: requires 2 arguments, but 3 were provided | |
SmallVector(ItTy S, ItTy E) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:861:12: note: candidate constructor template not viable: requires single argument 'R', but 3 arguments were provided | |
explicit SmallVector(const iterator_range &R) | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:850:12: note: candidate constructor not viable: requires at most 2 arguments, but 3 were provided | |
explicit SmallVector(size_t Size, const T &Value = T()) | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:866:3: note: candidate constructor not viable: requires single argument 'IL', but 3 arguments were provided | |
SmallVector(std::initializer_list IL) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:870:3: note: candidate constructor not viable: requires single argument 'RHS', but 3 arguments were provided | |
SmallVector(const SmallVector &RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:880:3: note: candidate constructor not viable: requires single argument 'RHS', but 3 arguments were provided | |
SmallVector(SmallVector &&RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:885:3: note: candidate constructor not viable: requires single argument 'RHS', but 3 arguments were provided | |
SmallVector(SmallVectorImpl &&RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:848:3: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
SmallVector() : SmallVectorImpl(N) {} | |
^ | |
In file included from /home/naths/srcs/coriander/src/patch_hostside.cpp:17: | |
In file included from /home/naths/srcs/coriander/src/patch_hostside.h:61: | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:344:43: error: no matching constructor for initialization of 'SmallVector<llvm::Type , sizeof...(ArgsTy)>' | |
SmallVector<Type, sizeof...(ArgsTy)> ArgTys{Args...}; | |
^ ~~~~~~~~~ | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:353:12: note: in instantiation of function template specialization 'llvm::Module::getOrInsertFunction<llvm::PointerType *, | |
llvm::PointerType *, long>' requested here | |
return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); | |
^ | |
/home/naths/srcs/coriander/src/patch_hostside.cpp:702:64: note: in instantiation of function template specialization 'llvm::Module::getOrInsertFunction<llvm::PointerType *, | |
llvm::PointerType *, long>' requested here | |
Function configureKernel = cast(F->getParent()->getOrInsertFunction( | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:856:3: note: candidate constructor template not viable: requires 2 arguments, but 3 were provided | |
SmallVector(ItTy S, ItTy E) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:861:12: note: candidate constructor template not viable: requires single argument 'R', but 3 arguments were provided | |
explicit SmallVector(const iterator_range &R) | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:850:12: note: candidate constructor not viable: requires at most 2 arguments, but 3 were provided | |
explicit SmallVector(size_t Size, const T &Value = T()) | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:866:3: note: candidate constructor not viable: requires single argument 'IL', but 3 arguments were provided | |
SmallVector(std::initializer_list IL) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:870:3: note: candidate constructor not viable: requires single argument 'RHS', but 3 arguments were provided | |
SmallVector(const SmallVector &RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:880:3: note: candidate constructor not viable: requires single argument 'RHS', but 3 arguments were provided | |
SmallVector(SmallVector &&RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:885:3: note: candidate constructor not viable: requires single argument 'RHS', but 3 arguments were provided | |
SmallVector(SmallVectorImpl &&RHS) : SmallVectorImpl(N) { | |
^ | |
/home/naths/srcs/llvm/include/llvm/ADT/SmallVector.h:848:3: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
SmallVector() : SmallVectorImpl(N) {} | |
^ | |
In file included from /home/naths/srcs/coriander/src/patch_hostside.cpp:17: | |
In file included from /home/naths/srcs/coriander/src/patch_hostside.h:61: | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:344:50: error: non-constant-expression cannot be narrowed from type 'long' to 'size_t' (aka 'unsigned long') in initializer | |
list [-Wc++11-narrowing] | |
SmallVector<Type, sizeof...(ArgsTy)> ArgTys{Args...}; | |
^~~~ | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:353:12: note: in instantiation of function template specialization 'llvm::Module::getOrInsertFunction' requested here | |
return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); | |
^ | |
/home/naths/srcs/coriander/src/patch_hostside.cpp:722:57: note: in instantiation of function template specialization 'llvm::Module::getOrInsertFunction' requested | |
here | |
Function kernelGo = cast(F->getParent()->getOrInsertFunction( | |
^ | |
/home/naths/srcs/llvm/include/llvm/IR/Module.h:344:50: note: insert an explicit cast to silence this issue | |
SmallVector<Type, sizeof...(ArgsTy)> ArgTys{Args...}; | |
^~~~ | |
static_cast<size_t>( ) | |
6 errors generated. | |
CMakeFiles/patch_hostside.dir/build.make:62: recipe for target 'CMakeFiles/patch_hostside.dir/src/patch_hostside.cpp.o' failed | |
make[2]: *** [CMakeFiles/patch_hostside.dir/src/patch_hostside.cpp.o] Error 1 | |
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/patch_hostside.dir/all' failed | |
make[1]: *** [CMakeFiles/patch_hostside.dir/all] Error 2 | |
Makefile:129: recipe for target 'all' failed | |
make: *** [all] Error 2 | |
naths@naths-HP-Pavilion-15-Notebook-PC:~/build/coriander$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment