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
GCC version 12.4.0. ("We only test against GCC 9." Yeah, I saw that, but GCC is at v14 now, which is even pickier than GCC 12, so you still might want to put a pin in this one.)
spirv-tools is compiled as part of Yocto's "Quick Build" example (MACHINE="genericx86_64"). The build konks out trying to compile source/val/function.cpp with the following error:
/home/ewhac/devel/yoc-generic/poky/build/tmp/hosttools/g++ -DSPIRV_COLOR_TERMINAL -DSPIRV_LINUX -DSPIRV_TIMER_ENABLED -DSPIRV_Tools_EXPORTS -I/home/ewhac/devel/yoc-generic/poky/build/tmp/work/x86_64-linux/spirv-tools-native/1.3.290.0/git -I/home/ewhac/devel/yoc-generic/poky/build/tmp/work/x86_64-linux/spirv-tools-native/1.3.290.0/git/include -I/home/ewhac/devel/yoc-generic/poky/build/tmp/work/x86_64-linux/spirv-tools-native/1.3.290.0/build -isystem/home/ewhac/devel/yoc-generic/poky/build/tmp/work/x86_64-linux/spirv-tools-native/1.3.290.0/recipe-sysroot-native/usr/include -O2 -pipe -fvisibility-inlines-hidden -g -std=c++17 -fPIC -DSPIRV_CHECK_CONTEXT -fno-rtti -Wall -Wextra -Wnon-virtual-dtor -Wno-missing-field-initializers -Werror -Wno-long-long -Wshadow -Wundef -Wconversion -Wno-sign-conversion -fno-exceptions -MD -MT source/CMakeFiles/SPIRV-Tools.dir/val/function.cpp.o -MF source/CMakeFiles/SPIRV-Tools.dir/val/function.cpp.o.d -o source/CMakeFiles/SPIRV-Tools.dir/val/function.cpp.o -c /home/ewhac/devel/yoc-generic/poky/build/tmp/work/x86_64-linux/spirv-tools-native/1.3.290.0/git/source/val/function.cpp
In file included from /usr/include/c++/12/bits/hashtable_policy.h:35,
from /usr/include/c++/12/bits/hashtable.h:35,
from /usr/include/c++/12/unordered_map:46,
from /usr/include/c++/12/functional:61,
from /home/ewhac/devel/yoc-generic/poky/build/tmp/work/x86_64-linux/spirv-tools-native/1.3.290.0/git/source/val/function.h:18,
from /home/ewhac/devel/yoc-generic/poky/build/tmp/work/x86_64-linux/spirv-tools-native/1.3.290.0/git/source/val/function.cpp:15:
In static member function ‘static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = spvtools::val::BasicBlock* const; _Up = spvtools::val::BasicBlock*; bool _IsMove = false]’,
inlined from ‘_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = spvtools::val::BasicBlock* const*; _OI = spvtools::val::BasicBlock**]’ at /usr/include/c++/12/bits/stl_algobase.h:501:30,
inlined from ‘_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = spvtools::val::BasicBlock* const*; _OI = spvtools::val::BasicBlock**]’ at /usr/include/c++/12/bits/stl_algobase.h:528:42,
inlined from ‘_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = spvtools::val::BasicBlock* const*; _OI = spvtools::val::BasicBlock**]’ at /usr/include/c++/12/bits/stl_algobase.h:535:31,
inlined from ‘_OI std::copy(_II, _II, _OI) [with _II = spvtools::val::BasicBlock* const*; _OI = spvtools::val::BasicBlock**]’ at /usr/include/c++/12/bits/stl_algobase.h:626:7,
inlined from ‘static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = spvtools::val::BasicBlock* const*; _ForwardIterator = spvtools::val::BasicBlock**]’ at /usr/include/c++/12/bits/stl_uninitialized.h:147:27,
inlined from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = spvtools::val::BasicBlock* const*; _ForwardIterator = spvtools::val::BasicBlock**]’ at /usr/include/c++/12/bits/stl_uninitialized.h:185:15,
inlined from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = spvtools::val::BasicBlock* const*; _ForwardIterator = spvtools::val::BasicBlock**; _Tp = spvtools::val::BasicBlock*]’ at /usr/include/c++/12/bits/stl_uninitialized.h:372:37,
inlined from ‘void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = spvtools::val::BasicBlock* const*; _Tp = spvtools::val::BasicBlock*; _Alloc = std::allocator<spvtools::val::BasicBlock*>]’ at /usr/include/c++/12/bits/vector.tcc:339:35,
inlined from ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = spvtools::val::BasicBlock*; _Alloc = std::allocator<spvtools::val::BasicBlock*>]’ at /usr/include/c++/12/bits/stl_vector.h:787:21,
inlined from ‘spv_result_t spvtools::val::Function::RegisterLoopMerge(uint32_t, uint32_t)’ at /home/ewhac/devel/yoc-generic/poky/build/tmp/work/x86_64-linux/spirv-tools-native/1.3.290.0/git/source/val/function.cpp:91:71:
/usr/include/c++/12/bits/stl_algobase.h:434:30: error: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ forming offset 8 is out of the bounds [0, 8] of object ‘<anonymous>’ with type ‘spvtools::val::BasicBlock* const [1]’ [-Werror=array-bounds]
434 | __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ewhac/devel/yoc-generic/poky/build/tmp/work/x86_64-linux/spirv-tools-native/1.3.290.0/git/source/val/function.cpp: In member function ‘spv_result_t spvtools::val::Function::RegisterLoopMerge(uint32_t, uint32_t)’:
/home/ewhac/devel/yoc-generic/poky/build/tmp/work/x86_64-linux/spirv-tools-native/1.3.290.0/git/source/val/function.cpp:91:71: note: ‘<anonymous>’ declared here
91 | continue_target_headers_[&continue_target_block] = {current_block_};
| ^
cc1plus: all warnings being treated as errors
The build is configured by Yocto as follows (reformatted for clarity). $oecmake_sitefile is empty:
0cfe9e721
.spirv-tools is compiled as part of Yocto's "Quick Build" example (
MACHINE="genericx86_64"
). The build konks out trying to compilesource/val/function.cpp
with the following error:The build is configured by Yocto as follows (reformatted for clarity).
$oecmake_sitefile
is empty:The text was updated successfully, but these errors were encountered: