Closed chapman39 closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 86.91%. Comparing base (
7672d33
) to head (c9abf44
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@samuelpmish @white238 @jamiebramwell I'm not sure if anyone's familiar with this error, but I'm having trouble how to approach it
[ 17%] Linking CXX static library ../../../../lib/libserac_contact.a
cd /home/serac/serac/_serac_build_and_test_2024_02_26_16_51_55/build-gcc@13.1.0/src/serac/physics/contact && /usr/local/bin/cmake -P CMakeFiles/serac_contact.dir/cmake_clean_target.cmake
cd /home/serac/serac/_serac_build_and_test_2024_02_26_16_51_55/build-gcc@13.1.0/src/serac/physics/contact && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/serac_contact.dir/link.txt --verbose=1
/usr/bin/ar qc ../../../../lib/libserac_contact.a CMakeFiles/serac_contact.dir/contact_data.cpp.o CMakeFiles/serac_contact.dir/contact_interaction.cpp.o
/usr/bin/ranlib ../../../../lib/libserac_contact.a
make[2]: Leaving directory '/home/serac/serac/_serac_build_and_test_2024_02_26_16_51_55/build-gcc@13.1.0'
[ 17%] Built target serac_contact
In file included from /usr/include/c++/13/bits/stl_uninitialized.h:63,
from /usr/include/c++/13/memory:69,
from /home/serac/serac/src/serac/infrastructure/../../serac/mesh/mesh_utils_base.hpp:16,
from /home/serac/serac/src/serac/infrastructure/../../serac/mesh/mesh_utils.hpp:16,
from /home/serac/serac/src/serac/mesh/mesh_utils.cpp:7:
In static member function ‘static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const double; _Up = double; bool _IsMove = false]’,
inlined from ‘_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const double*; _OI = double*]’ at /usr/include/c++/13/bits/stl_algobase.h:506:30,
inlined from ‘_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const double*; _OI = double*]’ at /usr/include/c++/13/bits/stl_algobase.h:533:42,
inlined from ‘_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = const double*; _OI = double*]’ at /usr/include/c++/13/bits/stl_algobase.h:540:31,
inlined from ‘_OI std::copy(_II, _II, _OI) [with _II = const double*; _OI = double*]’ at /usr/include/c++/13/bits/stl_algobase.h:633:7,
inlined from ‘static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const double*; _ForwardIterator = double*]’ at /usr/include/c++/13/bits/stl_uninitialized.h:147:27,
inlined from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const double*; _ForwardIterator = double*]’ at /usr/include/c++/13/bits/stl_uninitialized.h:185:15,
inlined from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = const double*; _ForwardIterator = double*; _Tp = double]’ at /usr/include/c++/13/bits/stl_uninitialized.h:373:37,
inlined from ‘void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = const double*; _Tp = double; _Alloc = std::allocator<double>]’ at /usr/include/c++/13/bits/vector.tcc:345:35,
inlined from ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = double; _Alloc = std::allocator<double>]’ at /usr/include/c++/13/bits/stl_vector.h:787:21,
inlined from ‘serac::mesh::InputOptions FromInlet<serac::mesh::InputOptions>::operator()(const axom::inlet::Container&)’ at /home/serac/serac/src/serac/mesh/mesh_utils.cpp:494:58:
/usr/include/c++/13/bits/stl_algobase.h:437:30: error: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ forming offset 24 is out of the bounds [0, 24] [-Werror=array-bounds=]
437 | __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's failing only gcc13-release. https://dev.azure.com/llnl-serac/serac/_build/results?buildId=10908&view=logs&j=8418a147-cefe-5fbf-eb11-e069d1299bbe&t=02db9b20-7613-5b66-5602-b48459f634fd&l=463
Edit: I figured it out.
@chapman39 can you fix the following warning:
CMake Warning at cmake/blt/cmake/SetupCodeChecks.cmake:695 (message):
blt_add_clangformat_target: clang-format '10'' is required, found '15.0.7'.
Disabling 'style' build target.
Call Stack (most recent call first):
cmake/blt/cmake/SetupCodeChecks.cmake:206 (blt_add_clangformat_target)
cmake/SeracMacros.cmake:50 (blt_add_code_checks)
CMakeLists.txt:167 (serac_add_code_checks)
https://github.com/LLNL/serac/blob/7672d330192aec5f4eb46ef48e0f5ec713b203f7/CMakeLists.txt#L104
Doxyfile.in
to 1.9.1