[Mesa-dev] [ANNOUNCE] Mesa 20.0 branchpoint planned for 2020/01/29, Milestone opened
Dieter Nützel
Dieter at nuetzel-hh.de
Thu Jan 30 06:23:23 UTC 2020
Am 30.01.2020 02:59, schrieb Karol Herbst:
> On Thu, Jan 30, 2020 at 2:37 AM Dieter Nützel <Dieter at nuetzel-hh.de>
> wrote:
>>
>> Maybe compilation with '-Dopencl-spirv=true', again.
>>
>> It is broken, now.
>> Even LLVM 10.0 won't compile for me with SPIRV-LLVM-Translator,
>> currently.
>>
>
> do you have any more details on that? It could be that the
> spirv-llvm-translator diverged somewhere as I am only compiling
> against llvm 9 right now.
>
Ugh, LLVM git now at 11.0...missed that.
SPIRV-LLVM-Translator choke with 11.0 git (I think it was the same with
10.0 git), here. (See below.)
So I can't compile Mesa git (20.0) with '-Dopencl-spirv=true' since
November (15.11.2019).
Now, need some sleep. Our son has 12th birthday ;-)
-Dieter
[1667/3104] Building CXX object
projects/SPIRV-L...eFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o
FAILED:
projects/SPIRV-LLVM-Translator/lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o
/usr/bin/c++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Iprojects/SPIRV-LLVM-Translator/lib/SPIRV
-I/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV
-I/usr/include/libxml2 -Iinclude -I/opt/llvm-project/llvm/include
-I/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/include
-I/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV
-I/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/Mangler
-fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess
-Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor
-Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3
-DNDEBUG -fno-exceptions -std=c++14 -MD -MT
projects/SPIRV-LLVM-Translator/lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o
-MF
projects/SPIRV-LLVM-Translator/lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o.d
-o
projects/SPIRV-LLVM-Translator/lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o
-c
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgBaseType(const llvm::DIBasicType*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:475:43:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
475 | Ops[NameIdx] = BM->getString(BT->getName())->getId();
| ~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgTypeDef(const llvm::DIDerivedType*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:538:43:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
538 | Ops[NameIdx] = BM->getString(DT->getName())->getId();
| ~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgEnumType(const
llvm::DICompositeType*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:582:43:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
582 | Ops[NameIdx] = BM->getString(ET->getName())->getId();
| ~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:600:49:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
600 | SPIRVString *Name = BM->getString(E->getName());
| ~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgCompositeType(const
llvm::DICompositeType*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:618:28:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
618 | UniqId = BM->getString(Identifier)->getId();
| ^~~~~~~~~~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:621:43:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
621 | Ops[NameIdx] = BM->getString(CT->getName())->getId();
| ~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgMemberType(const
llvm::DIDerivedType*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:657:43:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
657 | Ops[NameIdx] = BM->getString(MT->getName())->getId();
| ~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgTemplateParameter(const
llvm::DITemplateParameter*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:717:43:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
717 | Ops[NameIdx] = BM->getString(TP->getName())->getId();
| ~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgTemplateTemplateParameter(const
llvm::DITemplateValueParameter*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:737:44:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
737 | Ops[NameIdx] = BM->getString(TVP->getName())->getId();
| ~~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:738:54:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
738 | Ops[TemplateNameIdx] =
BM->getString(Val->getString())->getId();
| ~~~~~~~~~~~~~~^~
| |
|
llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgTemplateParameterPack(const
llvm::DITemplateValueParameter*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:753:44:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
753 | Ops[NameIdx] = BM->getString(TVP->getName())->getId();
| ~~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgGlobalVariable(const
llvm::DIGlobalVariable*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:772:43:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
772 | Ops[NameIdx] = BM->getString(GV->getName())->getId();
| ~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:787:57:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
787 | Ops[LinkageNameIdx] =
BM->getString(GV->getLinkageName())->getId();
| ~~~~~~~~~~~~~~~~~~^~
| |
|
llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgFunction(const llvm::DISubprogram*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:806:45:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
806 | Ops[NameIdx] = BM->getString(Func->getName())->getId();
| ~~~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:816:59:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
816 | Ops[LinkageNameIdx] =
BM->getString(Func->getLinkageName())->getId();
| ~~~~~~~~~~~~~~~~~~~~^~
| |
|
llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgScope(const llvm::DIScope*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:880:44:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
880 | Ops.push_back(BM->getString(NS->getName())->getId());
| ~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgLocalVariable(const
llvm::DILocalVariable*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:942:44:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
942 | Ops[NameIdx] = BM->getString(Var->getName())->getId();
| ~~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:
In member function ‘SPIRV::SPIRVEntry*
SPIRV::LLVMToSPIRVDbgTran::transDbgImportedEntry(const
llvm::DIImportedEntity*)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:983:43:
error: cannot convert ‘llvm::StringRef’ to ‘const string&’ {aka ‘const
std::__cxx11::basic_string<char>&’}
983 | Ops[NameIdx] = BM->getString(IE->getName())->getId();
| ~~~~~~~~~~~^~
| |
| llvm::StringRef
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVModule.h:184:53:
note: initializing argument 1 of ‘virtual SPIRV::SPIRVString*
SPIRV::SPIRVModule::getString(const string&)’
184 | virtual SPIRVString *getString(const std::string &Str) = 0;
| ~~~~~~~~~~~~~~~~~~~^~~
[1669/3104] Building CXX object
projects/SPIRV-L.../SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLUtil.cpp.o
FAILED:
projects/SPIRV-LLVM-Translator/lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLUtil.cpp.o
/usr/bin/c++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Iprojects/SPIRV-LLVM-Translator/lib/SPIRV
-I/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV
-I/usr/include/libxml2 -Iinclude -I/opt/llvm-project/llvm/include
-I/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/include
-I/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV
-I/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/Mangler
-fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess
-Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor
-Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3
-DNDEBUG -fno-exceptions -std=c++14 -MD -MT
projects/SPIRV-LLVM-Translator/lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLUtil.cpp.o
-MF
projects/SPIRV-LLVM-Translator/lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLUtil.cpp.o.d
-o
projects/SPIRV-LLVM-Translator/lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLUtil.cpp.o
-c
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/OCLUtil.cpp
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/OCLUtil.cpp:
In function ‘unsigned int OCLUtil::getExtOp(llvm::StringRef, const
string&)’:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/OCLUtil.cpp:180:31:
error: invalid initialization of reference of type ‘const string&’ {aka
‘const std::__cxx11::basic_string<char>&’} from expression of type
‘llvm::StringRef’
180 | switch (lastFuncParamType(OrigName)) {
| ^~~~~~~~
In file included from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/OCLUtil.h:42,
from
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/OCLUtil.cpp:40:
/opt/llvm-project/llvm/projects/SPIRV-LLVM-Translator/lib/SPIRV/SPIRVInternal.h:900:48:
note: in passing argument 1 of ‘SPIRV::ParamType
SPIRV::lastFuncParamType(const string&)’
900 | ParamType lastFuncParamType(const std::string &MangledName);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
[1673/3104] Building CXX object
lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o
ninja: build stopped: subcommand failed.
10060.122u 469.865s 22:51.32 767.8% 0+0k 396400+1823128io 169pf+0w
>> Greetings,
>> Dieter
More information about the mesa-dev
mailing list