[Pkg-opencl-devel] Bug#966851: intel-graphics-compiler: FTBFS: igax.hpp:501:30: error: argument to ‘alloca’ may be too large [-Werror=alloca-larger-than=]

Lucas Nussbaum lucas at debian.org
Mon Aug 3 09:03:05 BST 2020


Source: intel-graphics-compiler
Version: 1.0.3627-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200802 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
> cd /<<PKGBUILDDIR>>/build/IGC/visa && /usr/bin/c++  -DCL_KHR_FP64_EXT -DDISABLE_ENCODER_EXCEPTIONS -DGHAL3D=USC -DICBE_LINUX -DIGC_CMAKE -DIGC_EXPORTS=1 -DIGC_SPIRV_ENABLED -DINSIDE_PLUGIN -DISTDLIB_UMD -DLINUX -DNDEBUG -DNOMINMAX -DSTANDALONE_MODE -DSTD_CALL -DUSC_EXPORTS=1 -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -DUSE_SSE3 -DUSE_SSSE3 -D_AMD64_ -D_COMPILER_DLL_ -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_IGC_ -D_SCL_SECURE_NO_WARNINGS -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/IGC/WrapperLLVM/include -I/<<PKGBUILDDIR>>/build/IGC/autogen -I/<<PKGBUILDDIR>>/IGC -I/<<PKGBUILDDIR>>/IGC/common -I/<<PKGBUILDDIR>>/IGC/.. -I/<<PKGBUILDDIR>>/IGC/../Common -I/<<PKGBUILDDIR>>/IGC/../3d/common -I/<<PKGBUILDDIR>>/IGC/../inc -I/<<PKGBUILDDIR>>/IGC/../inc/common -I/<<PKGBUILDDIR>>/IGC/../inc/common/Compiler -I/<<PKGBUILDDIR>>/IGC/../inc/common/Compiler/API -I/<<PKGBUILDDIR>>/IGC/../visa/include -I/<<PKGBUILDDIR>>/build/IGC/Release -I/<<PKGBUILDDIR>>/IGC/AdaptorOCL/ocl_igc_shared/executable_format -I/<<PKGBUILDDIR>>/IGC/AdaptorOCL -I/<<PKGBUILDDIR>>/IGC/../inc/common/Compiler/common -I/<<PKGBUILDDIR>>/IGC/AdaptorOCL/cif/cif/.. -I/usr/lib/llvm-10/include -I/<<PKGBUILDDIR>>/build/IGC/visa -I/<<PKGBUILDDIR>>/visa -I/<<PKGBUILDDIR>>/visa/include  -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-exceptions -fdata-sections -ffunction-sections -O2 -pipe -fmessage-length=0 -march=corei7 -mstackrealign -fms-extensions -Werror -Wno-unused-parameter -Wno-missing-field-initializers -Wwrite-strings -Wno-long-long -Wswitch -Wno-sign-compare -Wno-unused-result -Wno-enum-compare -Wno-type-limits -Wno-ignored-qualifiers -Wformat-security -Wno-extra -Wno-write-strings -finline -fno-strict-aliasing -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -Wno-unknown-pragmas -fPIC -fstack-protector -finline-functions -funswitch-loops -Wno-maybe-uninitialized -lrt -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -g   -std=gnu++17 -o CMakeFiles/GenX_IR_Exe.dir/BinaryEncodingCNL.cpp.o -c /<<PKGBUILDDIR>>/visa/BinaryEncodingCNL.cpp
> In file included from /<<PKGBUILDDIR>>/visa/iga/IGAExe/fatal.hpp:33,
>                  from /<<PKGBUILDDIR>>/visa/iga/IGAExe/iga_main.hpp:29,
>                  from /<<PKGBUILDDIR>>/visa/iga/IGAExe/list_ops.cpp:26:
> /<<PKGBUILDDIR>>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp: In member function ‘std::string igax::OpSpec::menmonic() const’:
> /<<PKGBUILDDIR>>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp:501:30: error: argument to ‘alloca’ may be too large [-Werror=alloca-larger-than=]
>   501 |             strPtr = (char *)alloca(strCap); \
>       |                              ^~~~~~
> /<<PKGBUILDDIR>>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp:507:1: note: in expansion of macro ‘IGA_OPSPEC_STRING_GETTER’
>   507 | IGA_OPSPEC_STRING_GETTER(iga_opspec_mnemonic, 16);
>       | ^~~~~~~~~~~~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp: In member function ‘std::string igax::OpSpec::name() const’:
> /<<PKGBUILDDIR>>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp:501:30: error: argument to ‘alloca’ may be too large [-Werror=alloca-larger-than=]
>   501 |             strPtr = (char *)alloca(strCap); \
>       |                              ^~~~~~
> /<<PKGBUILDDIR>>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp:509:1: note: in expansion of macro ‘IGA_OPSPEC_STRING_GETTER’
>   509 | IGA_OPSPEC_STRING_GETTER(iga_opspec_name, 32);
>       | ^~~~~~~~~~~~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp: In member function ‘std::string igax::OpSpec::description() const’:
> /<<PKGBUILDDIR>>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp:501:30: error: argument to ‘alloca’ may be too large [-Werror=alloca-larger-than=]
>   501 |             strPtr = (char *)alloca(strCap); \
>       |                              ^~~~~~
> /<<PKGBUILDDIR>>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp:511:1: note: in expansion of macro ‘IGA_OPSPEC_STRING_GETTER’
>   511 | IGA_OPSPEC_STRING_GETTER(iga_opspec_description, 128);
>       | ^~~~~~~~~~~~~~~~~~~~~~~~
> cc1plus: all warnings being treated as errors
> make[3]: *** [IGC/visa/iga/IGAExe/CMakeFiles/IGA_EXE.dir/build.make:131: IGC/visa/iga/IGAExe/CMakeFiles/IGA_EXE.dir/list_ops.cpp.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/08/02/intel-graphics-compiler_1.0.3627-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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-opencl-devel mailing list