Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on GCC 13.1.1 #1

Open
yumcyaWiz opened this issue Jun 17, 2023 · 0 comments
Open

Compilation error on GCC 13.1.1 #1

yumcyaWiz opened this issue Jun 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@yumcyaWiz
Copy link
Owner

yumcyaWiz commented Jun 17, 2023

Failed to compile assimp on GCC 13.1.1.

In file included from /usr/include/c++/13.1.1/bits/specfun.h:43,
                 from /usr/include/c++/13.1.1/cmath:3716,
                 from /home/yumcyawiz/C++/opengl-sandbox/externals/assimp/include/assimp/vector2.h:53,
                 from /home/yumcyawiz/C++/opengl-sandbox/externals/assimp/include/assimp/types.h:64,
                 from /home/yumcyawiz/C++/opengl-sandbox/externals/assimp/include/assimp/IOStream.hpp:53,
                 from /home/yumcyawiz/C++/opengl-sandbox/externals/assimp/include/assimp/DefaultIOStream.h:55,
                 from /home/yumcyawiz/C++/opengl-sandbox/externals/assimp/include/assimp/Exceptional.h:49,
                 from /home/yumcyawiz/C++/opengl-sandbox/externals/assimp/include/assimp/BaseImporter.h:52,
                 from /home/yumcyawiz/C++/opengl-sandbox/externals/assimp/code/AssetLib/MDL/MDLLoader.h:50,
                 from /home/yumcyawiz/C++/opengl-sandbox/externals/assimp/code/AssetLib/MDL/MDLLoader.cpp:51:
In static member function ‘static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = long unsigned int; _Up = long unsigned int; bool _IsMove = false]’,
    inlined from ‘_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = long unsigned int*; _OI = long unsigned int*]’ at /usr/include/c++/13.1.1/bits/stl_algobase.h:506:30,
    inlined from ‘_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = long unsigned int*; _OI = long unsigned int*]’ at /usr/include/c++/13.1.1/bits/stl_algobase.h:533:42,
    inlined from ‘_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = long unsigned int*; _OI = long unsigned int*]’ at /usr/include/c++/13.1.1/bits/stl_algobase.h:540:31,
    inlined from ‘_OI std::copy(_II, _II, _OI) [with _II = long unsigned int*; _OI = long unsigned int*]’ at /usr/include/c++/13.1.1/bits/stl_algobase.h:633:7,
    inlined from ‘std::vector<bool, _Alloc>::iterator std::vector<bool, _Alloc>::_M_copy_aligned(const_iterator, const_iterator, iterator) [with _Alloc = std::allocator<bool>]’ at /usr/include/c++/13.1.1/bits/stl_bvector.h:1305:28,
    inlined from ‘void std::vector<bool, _Alloc>::_M_reallocate(size_type) [with _Alloc = std::allocator<bool>]’ at /usr/include/c++/13.1.1/bits/vector.tcc:851:40,
    inlined from ‘void std::vector<bool, _Alloc>::reserve(size_type) [with _Alloc = std::allocator<bool>]’ at /usr/include/c++/13.1.1/bits/stl_bvector.h:1093:17,
    inlined from ‘Assimp::MDL::IntSharedData_MDL7::IntSharedData_MDL7()’ at /home/yumcyawiz/C++/opengl-sandbox/externals/assimp/code/AssetLib/MDL/MDLFileData.h:879:32,
    inlined from ‘void Assimp::MDLImporter::InternReadFile_3DGS_MDL7()’ at /home/yumcyawiz/C++/opengl-sandbox/externals/assimp/code/AssetLib/MDL/MDLLoader.cpp:1351:29:
/usr/include/c++/13.1.1/bits/stl_algobase.h:437:30: error: ‘void* __builtin_memmove(void*, const void*, long unsigned int)’ forming offset 8 is out of the bounds [0, 8] [-Werror=array-bounds=]
  437 |             __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);

Clang 15.0.7 doesn't produce this compilation error.

@yumcyaWiz yumcyaWiz added the bug Something isn't working label Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant