[Pkg-opencl-devel] Bug#1005458: spirv-llvm-translator: FTBFS: SPIRVOpCode.h:52:31: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope

Lucas Nussbaum lucas at debian.org
Sun Feb 13 07:02:50 GMT 2022


Source: spirv-llvm-translator
Version: 13.0.0-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220212 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> cd /<<PKGBUILDDIR>>/build/lib/SPIRV && /usr/bin/c++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm-13/include -I/<<PKGBUILDDIR>>/include -I/usr/include/include -I/<<PKGBUILDDIR>>/lib/SPIRV -I/<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV -I/<<PKGBUILDDIR>>/lib/SPIRV/Mangler -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -std=gnu++14 -MD -MT lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/Mangler/ManglingUtils.cpp.o -MF CMakeFiles/LLVMSPIRVLib.dir/Mangler/ManglingUtils.cpp.o.d -o CMakeFiles/LLVMSPIRVLib.dir/Mangler/ManglingUtils.cpp.o -c /<<PKGBUILDDIR>>/lib/SPIRV/Mangler/ManglingUtils.cpp
> [ 15%] Building CXX object lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/Mangler/ParameterType.cpp.o
> In file included from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVEnum.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVEntry.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVModule.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCodeEnum.h: In member function ‘void SPIRV::SPIRVMap<Ty1, Ty2, Identifier>::init() [with Ty1 = spv::Op; Ty2 = std::__cxx11::basic_string<char>; Identifier = void]’:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h:52:31: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope
>    52 | #define _SPIRV_OP(x, ...) add(Op##x, #x);
>       |                               ^~
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCodeEnum.h:347:1: note: in expansion of macro ‘_SPIRV_OP’
>   347 | _SPIRV_OP(ConstFunctionPointerINTEL, 5600)
>       | ^~~~~~~~~
> cd /<<PKGBUILDDIR>>/build/lib/SPIRV && /usr/bin/c++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm-13/include -I/<<PKGBUILDDIR>>/include -I/usr/include/include -I/<<PKGBUILDDIR>>/lib/SPIRV -I/<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV -I/<<PKGBUILDDIR>>/lib/SPIRV/Mangler -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -std=gnu++14 -MD -MT lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/Mangler/ParameterType.cpp.o -MF CMakeFiles/LLVMSPIRVLib.dir/Mangler/ParameterType.cpp.o.d -o CMakeFiles/LLVMSPIRVLib.dir/Mangler/ParameterType.cpp.o -c /<<PKGBUILDDIR>>/lib/SPIRV/Mangler/ParameterType.cpp
> In file included from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVEnum.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVEntry.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVModule.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h: In function ‘bool SPIRV::isConstantOpCode(spv::Op)’:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h:229:47: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope
>   229 |          OC == OpConstantPipeStorage || OC == OpConstFunctionPointerINTEL;
>       |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> [ 18%] Building CXX object lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o
> cd /<<PKGBUILDDIR>>/build/lib/SPIRV && /usr/bin/c++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm-13/include -I/<<PKGBUILDDIR>>/include -I/usr/include/include -I/<<PKGBUILDDIR>>/lib/SPIRV -I/<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV -I/<<PKGBUILDDIR>>/lib/SPIRV/Mangler -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -std=gnu++14 -MD -MT lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o -MF CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o.d -o CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o -c /<<PKGBUILDDIR>>/lib/SPIRV/OCLToSPIRV.cpp
> [ 21%] Building CXX object lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLTypeToSPIRV.cpp.o
> cd /<<PKGBUILDDIR>>/build/lib/SPIRV && /usr/bin/c++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm-13/include -I/<<PKGBUILDDIR>>/include -I/usr/include/include -I/<<PKGBUILDDIR>>/lib/SPIRV -I/<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV -I/<<PKGBUILDDIR>>/lib/SPIRV/Mangler -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -std=gnu++14 -MD -MT lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLTypeToSPIRV.cpp.o -MF CMakeFiles/LLVMSPIRVLib.dir/OCLTypeToSPIRV.cpp.o.d -o CMakeFiles/LLVMSPIRVLib.dir/OCLTypeToSPIRV.cpp.o -c /<<PKGBUILDDIR>>/lib/SPIRV/OCLTypeToSPIRV.cpp
> [ 23%] Building CXX object lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLUtil.cpp.o
> cd /<<PKGBUILDDIR>>/build/lib/SPIRV && /usr/bin/c++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm-13/include -I/<<PKGBUILDDIR>>/include -I/usr/include/include -I/<<PKGBUILDDIR>>/lib/SPIRV -I/<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV -I/<<PKGBUILDDIR>>/lib/SPIRV/Mangler -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -std=gnu++14 -MD -MT lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLUtil.cpp.o -MF CMakeFiles/LLVMSPIRVLib.dir/OCLUtil.cpp.o.d -o CMakeFiles/LLVMSPIRVLib.dir/OCLUtil.cpp.o -c /<<PKGBUILDDIR>>/lib/SPIRV/OCLUtil.cpp
> In file included from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVEnum.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/SPIRVInternal.h:43,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLUtil.h:42,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLToSPIRV.cpp:42:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCodeEnum.h: In member function ‘void SPIRV::SPIRVMap<Ty1, Ty2, Identifier>::init() [with Ty1 = spv::Op; Ty2 = std::__cxx11::basic_string<char>; Identifier = void]’:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h:52:31: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope
>    52 | #define _SPIRV_OP(x, ...) add(Op##x, #x);
>       |                               ^~
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCodeEnum.h:347:1: note: in expansion of macro ‘_SPIRV_OP’
>   347 | _SPIRV_OP(ConstFunctionPointerINTEL, 5600)
>       | ^~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVEnum.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/SPIRVInternal.h:43,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLUtil.h:42,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLToSPIRV.cpp:42:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h: In function ‘bool SPIRV::isConstantOpCode(spv::Op)’:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h:229:47: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope
>   229 |          OC == OpConstantPipeStorage || OC == OpConstFunctionPointerINTEL;
>       |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVEnum.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/SPIRVInternal.h:43,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLUtil.h:42,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLTypeToSPIRV.cpp:44:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCodeEnum.h: In member function ‘void SPIRV::SPIRVMap<Ty1, Ty2, Identifier>::init() [with Ty1 = spv::Op; Ty2 = std::__cxx11::basic_string<char>; Identifier = void]’:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h:52:31: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope
>    52 | #define _SPIRV_OP(x, ...) add(Op##x, #x);
>       |                               ^~
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCodeEnum.h:347:1: note: in expansion of macro ‘_SPIRV_OP’
>   347 | _SPIRV_OP(ConstFunctionPointerINTEL, 5600)
>       | ^~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVEnum.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/SPIRVInternal.h:43,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLUtil.h:42,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLTypeToSPIRV.cpp:44:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h: In function ‘bool SPIRV::isConstantOpCode(spv::Op)’:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h:229:47: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope
>   229 |          OC == OpConstantPipeStorage || OC == OpConstFunctionPointerINTEL;
>       |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/lib/SPIRV/SPIRVWriter.h:51,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:39:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVFunction.h: At global scope:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVFunction.h:175:24: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope; did you mean ‘SPIRVConstFunctionPointerINTEL’?
>   175 |   const static Op OC = OpConstFunctionPointerINTEL;
>       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |                        SPIRVConstFunctionPointerINTEL
> In file included from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVEnum.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/SPIRVInternal.h:43,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLUtil.h:42,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLUtil.cpp:40:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCodeEnum.h: In member function ‘void SPIRV::SPIRVMap<Ty1, Ty2, Identifier>::init() [with Ty1 = spv::Op; Ty2 = std::__cxx11::basic_string<char>; Identifier = void]’:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h:52:31: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope
>    52 | #define _SPIRV_OP(x, ...) add(Op##x, #x);
>       |                               ^~
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCodeEnum.h:347:1: note: in expansion of macro ‘_SPIRV_OP’
>   347 | _SPIRV_OP(ConstFunctionPointerINTEL, 5600)
>       | ^~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVEnum.h:44,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/SPIRVInternal.h:43,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLUtil.h:42,
>                  from /<<PKGBUILDDIR>>/lib/SPIRV/OCLUtil.cpp:40:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h: In function ‘bool SPIRV::isConstantOpCode(spv::Op)’:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVOpCode.h:229:47: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope
>   229 |          OC == OpConstantPipeStorage || OC == OpConstFunctionPointerINTEL;
>       |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/lib/SPIRV/OCLUtil.cpp:42:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVFunction.h: At global scope:
> /<<PKGBUILDDIR>>/lib/SPIRV/libSPIRV/SPIRVFunction.h:175:24: error: ‘OpConstFunctionPointerINTEL’ was not declared in this scope; did you mean ‘SPIRVConstFunctionPointerINTEL’?
>   175 |   const static Op OC = OpConstFunctionPointerINTEL;
>       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |                        SPIRVConstFunctionPointerINTEL
> make[4]: *** [lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/build.make:93: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/02/12/spirv-llvm-translator_13.0.0-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-opencl-devel mailing list