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

2020-09-02 Thread Jacek Danecki
This issue was fixed with newer IGC: 
https://github.com/intel/intel-graphics-compiler/commit/a58dd6de4c29595a0f93cff167b487d777e4559e and is in IGC release 1.0.3826


--
jacek



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

2020-08-03 Thread Lucas Nussbaum
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 /<>/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/<>/IGC/WrapperLLVM/include 
> -I/<>/build/IGC/autogen -I/<>/IGC 
> -I/<>/IGC/common -I/<>/IGC/.. 
> -I/<>/IGC/../Common -I/<>/IGC/../3d/common 
> -I/<>/IGC/../inc -I/<>/IGC/../inc/common 
> -I/<>/IGC/../inc/common/Compiler 
> -I/<>/IGC/../inc/common/Compiler/API 
> -I/<>/IGC/../visa/include -I/<>/build/IGC/Release 
> -I/<>/IGC/AdaptorOCL/ocl_igc_shared/executable_format 
> -I/<>/IGC/AdaptorOCL 
> -I/<>/IGC/../inc/common/Compiler/common 
> -I/<>/IGC/AdaptorOCL/cif/cif/.. -I/usr/lib/llvm-10/include 
> -I/<>/build/IGC/visa -I/<>/visa 
> -I/<>/visa/include  -fdebug-prefix-map=/<>=. 
> -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 
> /<>/visa/BinaryEncodingCNL.cpp
> In file included from /<>/visa/iga/IGAExe/fatal.hpp:33,
>  from /<>/visa/iga/IGAExe/iga_main.hpp:29,
>  from /<>/visa/iga/IGAExe/list_ops.cpp:26:
> /<>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp: In member 
> function ‘std::string igax::OpSpec::menmonic() const’:
> /<>/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); \
>   |  ^~
> /<>/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);
>   | ^~~~
> /<>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp: In member 
> function ‘std::string igax::OpSpec::name() const’:
> /<>/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); \
>   |  ^~
> /<>/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);
>   | ^~~~
> /<>/visa/iga/IGAExe/../IGALibrary/api/igax.hpp: In member 
> function ‘std::string igax::OpSpec::description() const’:
> /<>/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); \
>   |  ^~
> /<>/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.