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

Bug: error - In static member function 'static _Up* std::__copy_move... #5783

Closed
GabrielModog opened this issue Sep 18, 2024 · 2 comments
Closed
Labels
Bug Global flag to mark a deviation from expected behaviour

Comments

@GabrielModog
Copy link

GabrielModog commented Sep 18, 2024

Describe the bug
I trying to build with Mingw64, but getting the following error:

In file included from ../mingw64/include/c++/14.2.0/bits/specfun.h:43,
                 from ../mingw64/include/c++/14.2.0/cmath:3898,
                 from ../assimp/include/assimp/vector2.h:53,
                 from ../assimp/include/assimp/types.h:64,
                 from ../assimp/include/assimp/IOStream.hpp:53,
                 from ../assimp/include/assimp/DefaultIOStream.h:55,
                 from ../assimp/include/assimp/Exceptional.h:49,
                 from ../assimp/include/assimp/BaseImporter.h:52,
                 from ../assimp/code/AssetLib/MDL/MDLLoader.h:48,
                 from ..\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 ../mingw64/include/c++/14.2.0/bits/stl_algobase.h:521:30,
    inlined from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = long unsigned int*; _OI = long unsigned int*]' at ../mingw64/include/c++/14.2.0/bits/stl_algobase.h:548:42,
    inlined from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = long unsigned int*; _OI = long unsigned int*]' at ../mingw64/include/c++/14.2.0/bits/stl_algobase.h:555:31,
    inlined from '_OI std::copy(_II, _II, _OI) [with _II = long unsigned int*; _OI = long unsigned int*]' at ../mingw64/include/c++/14.2.0/bits/stl_algobase.h:651: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 ../mingw64/include/c++/14.2.0/bits/stl_bvector.h:1342:28,
    inlined from 'void std::vector<bool, _Alloc>::_M_reallocate(size_type) [with _Alloc = std::allocator<bool>]' at ../mingw64/include/c++/14.2.0/bits/vector.tcc:1059:40,
    inlined from 'void std::vector<bool, _Alloc>::reserve(size_type) [with _Alloc = std::allocator<bool>]' at ../mingw64/include/c++/14.2.0/bits/stl_bvector.h:1130:17,
    inlined from 'Assimp::MDL::IntSharedData_MDL7::IntSharedData_MDL7()' at ../assimp/code/AssetLib/MDL/MDLFileData.h:879:32,
    inlined from 'void Assimp::MDLImporter::InternReadFile_3DGS_MDL7()' at ..\assimp\code\AssetLib\MDL\MDLLoader.cpp:1373:29:
../mingw64/include/c++/14.2.0/bits/stl_algobase.h:452:30: error: 'void* __builtin_memmove(void*, const void*, long long unsigned int)' forming offset 4 is out of the bounds [0, 4] [-Werror=array-bounds=]
  452 |             __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
      |             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus.exe: all warnings being treated as errors
mingw32-make[2]: *** [code\CMakeFiles\assimp.dir\build.make:1626: code/CMakeFiles/assimp.dir/AssetLib/MDL/MDLLoader.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:203: code/CMakeFiles/assimp.dir/all] Error 2
mingw32-make: *** [makefile:135: all] Error 2

To Reproduce
Steps to reproduce the behavior:

  1. cmake
  2. build

Expected behavior
Complete compilation.

Screenshots
n/a

Platform (please complete the following information):

  • OS: Win 11 Pro
  • Version: GCC (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders, r1) 14.2.0

Additional context
n/a

@GabrielModog GabrielModog added the Bug Global flag to mark a deviation from expected behaviour label Sep 18, 2024
@FilipFidyk
Copy link

FilipFidyk commented Sep 22, 2024

I've had the same problem on win 10, GCC (MinGW-W64) 14.1.0. Configuring with -ASSIMP_WARNINGS_AS_ERRORS=OFF, allowed me to build it

@GabrielModog
Copy link
Author

@FilipFidyk worked well. Thanks, mate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Global flag to mark a deviation from expected behaviour
Projects
None yet
Development

No branches or pull requests

2 participants