You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I moved the build script from the system with GCC 8.5.0 to GCC 12.2.1, I run into the following error,
Is this a known issue? Any suggestions?
Thanks,
-Aubrey
$ /usr/bin/g++ --version
g++ (GCC) 12.2.1 20221121 (Anolis OS 12.2.1-2)
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cd /home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/visa/iga/IGALibrary && /usr/bin/g++ -DCL_KHR_FP64_EXT -DCOMPILE_DEFINITIONS -DGED_external -DGHAL3D=USC -DGIT_COMMIT_HASH="9e146a0999d49ca4109252b0328039c559973947" -DICBE_LINUX -DIGA_VERSION_SUFFIX="-9e146a099+" -DIGC_CMAKE -DIGC_EXPORTS=1 -DIGC_SPIRV_ENABLED -DIGC_SPIRV_TOOLS_ENABLED -DIGC_VC_ENABLED -DINSIDE_PLUGIN -DISTDLIB_UMD -DLINUX -DLLVM_VERSION_MAJOR=14 -DNDEBUG -DNOMINMAX -DSTD_CALL -DUSC_EXPORTS=1 -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -DUSE_SSE3 -DUSE_SSSE3 -D_AMD64_ -D_COMPILER_DLL_ -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=1 -D_IGC_ -D_LIB -D_SCL_SECURE_NO_WARNINGS -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/llvm-deps/src/lld/ELF/../include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/WrapperLLVM/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/autogen -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/.. -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../Common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../3d/common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../inc -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../inc/common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../inc/common/Compiler -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../inc/common/Compiler/API -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../visa/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/Release -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/AdaptorOCL/ocl_igc_shared/executable_format -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/AdaptorOCL -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/AdaptorOCL/ocl_igc_interface/impl -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/Options -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/Options/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/Options/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../inc/common/Compiler/common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/AdaptorOCL/cif/cif/.. -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/ZEBinWriter/zebin/source -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/ZEBinWriter/zebin/source/autogen -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../../SPIRV-Headers/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../../SPIRV-Tools/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/../GEDLibrary/GED_external/build/autogen-intel64 -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/../GEDLibrary/GED_external/Source/common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/../../../inc -isystem /home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/llvm-deps/src/llvm/include -isystem /home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/llvm-deps/build/src/include -flto=auto -ffat-lto-objects -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fexceptions -fdata-sections -ffunction-sections -O2 -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 -Wno-shadow -Wformat -Wformat-security -Wno-extra -Wno-write-strings -finline -fno-strict-aliasing -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -Wno-unknown-pragmas -fPIC -Bsymbolic -D_FORTIFY_SOURCE=2 -fstack-protector -finline-functions -funswitch-loops -Wno-maybe-uninitialized -lrt -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -g -std=gnu++17 -Wmissing-declarations -fexceptions -MD -MT IGC/visa/iga/IGALibrary/CMakeFiles/IGA_OLIB.dir/api/iga_types_swsb.cpp.o -MF CMakeFiles/IGA_OLIB.dir/api/iga_types_swsb.cpp.o.d -o CMakeFiles/IGA_OLIB.dir/api/iga_types_swsb.cpp.o -c /home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/iga_types_swsb.cpp
In file included from /home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:22,
from /home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Block.hpp:19,
from /home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/SWSBSetter.hpp:13,
from /home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/iga_types_swsb.cpp:11:
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Operand.hpp: In constructor 'iga::Operand::Operand()':
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Operand.hpp:186:8: error: 'iga::Operand::m_type' will be initialized after [-Werror=reorder]
186 | Type m_type;
| ^~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Operand.hpp:159:17: error: 'iga::SrcModifier iga::Operand::::m_regOpSrcMod' [-Werror=reorder]
159 | SrcModifier m_regOpSrcMod;
| ^~~~~~~~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Operand.hpp:29:3: error: when initialized here [-Werror=reorder]
29 | Operand()
| ^~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp: In constructor 'iga::Instruction::Instruction(const iga::OpSpec&, iga::ExecSize, iga::ChannelOffset, iga::MaskCtrl)':
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:307:7: error: 'iga::Instruction::m_instLoc' will be initialized after [-Werror=reorder]
307 | Loc m_instLoc; // source location info we keep this
| ^~~~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:303:7: error: 'int iga::Instruction::m_instId' [-Werror=reorder]
303 | int m_instId; // unique id for this instruction
| ^~~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:54:3: error: when initialized here [-Werror=reorder]
54 | Instruction(const OpSpec &os, ExecSize execSize, ChannelOffset chOff,
| ^~~~~~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:306:11: error: 'iga::Instruction::m_pc' will be initialized after [-Werror=reorder]
306 | int32_t m_pc; // the encode/decode PC for this instruction
| ^~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:292:7: error: 'int iga::Instruction::m_sendDstLength' [-Werror=reorder]
292 | int m_sendDstLength; // -1 if unknown
| ^~~~~~~~~~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:54:3: error: when initialized here [-Werror=reorder]
54 | Instruction(const OpSpec &os, ExecSize execSize, ChannelOffset chOff,
| ^~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [IGC/visa/iga/IGALibrary/CMakeFiles/IGA_OLIB.dir/build.make:90: IGC/visa/iga/IGALibrary/CMakeFiles/IGA_OLIB.dir/api/iga_types_swsb.cpp.o] Error 1
make[2]: Leaving directory '/home/aubrey/work/BUILD/igc-1.0.15468.7/build'
make[1]: *** [CMakeFiles/Makefile2:35790: IGC/visa/iga/IGALibrary/CMakeFiles/IGA_OLIB.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered:
Hi @aubreyli , I cannot reproduce the issue on g++-12 on Your IGC version. Could you please provide a reproducer so that I can begin working on the problem or share Your build scripts.
Hi,
when I moved the build script from the system with GCC 8.5.0 to GCC 12.2.1, I run into the following error,
Is this a known issue? Any suggestions?
Thanks,
-Aubrey
$ /usr/bin/g++ --version
g++ (GCC) 12.2.1 20221121 (Anolis OS 12.2.1-2)
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cd /home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/visa/iga/IGALibrary && /usr/bin/g++ -DCL_KHR_FP64_EXT -DCOMPILE_DEFINITIONS -DGED_external -DGHAL3D=USC -DGIT_COMMIT_HASH="9e146a0999d49ca4109252b0328039c559973947" -DICBE_LINUX -DIGA_VERSION_SUFFIX="-9e146a099+" -DIGC_CMAKE -DIGC_EXPORTS=1 -DIGC_SPIRV_ENABLED -DIGC_SPIRV_TOOLS_ENABLED -DIGC_VC_ENABLED -DINSIDE_PLUGIN -DISTDLIB_UMD -DLINUX -DLLVM_VERSION_MAJOR=14 -DNDEBUG -DNOMINMAX -DSTD_CALL -DUSC_EXPORTS=1 -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -DUSE_SSE3 -DUSE_SSSE3 -D_AMD64_ -D_COMPILER_DLL_ -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=1 -D_IGC_ -D_LIB -D_SCL_SECURE_NO_WARNINGS -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/llvm-deps/src/lld/ELF/../include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/WrapperLLVM/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/autogen -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/.. -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../Common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../3d/common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../inc -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../inc/common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../inc/common/Compiler -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../inc/common/Compiler/API -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../visa/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/Release -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/AdaptorOCL/ocl_igc_shared/executable_format -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/AdaptorOCL -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/AdaptorOCL/ocl_igc_interface/impl -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/Options -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/Options/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/Options/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../inc/common/Compiler/common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/AdaptorOCL/cif/cif/.. -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/ZEBinWriter/zebin/source -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/ZEBinWriter/zebin/source/autogen -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../../SPIRV-Headers/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/IGC/../../SPIRV-Tools/include -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/../GEDLibrary/GED_external/build/autogen-intel64 -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/../GEDLibrary/GED_external/Source/common -I/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/../../../inc -isystem /home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/llvm-deps/src/llvm/include -isystem /home/aubrey/work/BUILD/igc-1.0.15468.7/build/IGC/llvm-deps/build/src/include -flto=auto -ffat-lto-objects -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fexceptions -fdata-sections -ffunction-sections -O2 -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 -Wno-shadow -Wformat -Wformat-security -Wno-extra -Wno-write-strings -finline -fno-strict-aliasing -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -Wno-unknown-pragmas -fPIC -Bsymbolic -D_FORTIFY_SOURCE=2 -fstack-protector -finline-functions -funswitch-loops -Wno-maybe-uninitialized -lrt -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -g -std=gnu++17 -Wmissing-declarations -fexceptions -MD -MT IGC/visa/iga/IGALibrary/CMakeFiles/IGA_OLIB.dir/api/iga_types_swsb.cpp.o -MF CMakeFiles/IGA_OLIB.dir/api/iga_types_swsb.cpp.o.d -o CMakeFiles/IGA_OLIB.dir/api/iga_types_swsb.cpp.o -c /home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/iga_types_swsb.cpp
In file included from /home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:22,
from /home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Block.hpp:19,
from /home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/SWSBSetter.hpp:13,
from /home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/iga_types_swsb.cpp:11:
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Operand.hpp: In constructor 'iga::Operand::Operand()':
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Operand.hpp:186:8: error: 'iga::Operand::m_type' will be initialized after [-Werror=reorder]
186 | Type m_type;
| ^~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Operand.hpp:159:17: error: 'iga::SrcModifier iga::Operand::::m_regOpSrcMod' [-Werror=reorder]
159 | SrcModifier m_regOpSrcMod;
| ^~~~~~~~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Operand.hpp:29:3: error: when initialized here [-Werror=reorder]
29 | Operand()
| ^~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp: In constructor 'iga::Instruction::Instruction(const iga::OpSpec&, iga::ExecSize, iga::ChannelOffset, iga::MaskCtrl)':
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:307:7: error: 'iga::Instruction::m_instLoc' will be initialized after [-Werror=reorder]
307 | Loc m_instLoc; // source location info we keep this
| ^~~~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:303:7: error: 'int iga::Instruction::m_instId' [-Werror=reorder]
303 | int m_instId; // unique id for this instruction
| ^~~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:54:3: error: when initialized here [-Werror=reorder]
54 | Instruction(const OpSpec &os, ExecSize execSize, ChannelOffset chOff,
| ^~~~~~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:306:11: error: 'iga::Instruction::m_pc' will be initialized after [-Werror=reorder]
306 | int32_t m_pc; // the encode/decode PC for this instruction
| ^~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:292:7: error: 'int iga::Instruction::m_sendDstLength' [-Werror=reorder]
292 | int m_sendDstLength; // -1 if unknown
| ^~~~~~~~~~~~~~~
/home/aubrey/work/BUILD/igc-1.0.15468.7/igc/visa/iga/IGALibrary/api/../IR/Instruction.hpp:54:3: error: when initialized here [-Werror=reorder]
54 | Instruction(const OpSpec &os, ExecSize execSize, ChannelOffset chOff,
| ^~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [IGC/visa/iga/IGALibrary/CMakeFiles/IGA_OLIB.dir/build.make:90: IGC/visa/iga/IGALibrary/CMakeFiles/IGA_OLIB.dir/api/iga_types_swsb.cpp.o] Error 1
make[2]: Leaving directory '/home/aubrey/work/BUILD/igc-1.0.15468.7/build'
make[1]: *** [CMakeFiles/Makefile2:35790: IGC/visa/iga/IGALibrary/CMakeFiles/IGA_OLIB.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered: