GEOS-DEV / GEOS

GEOS Simulation Framework
GNU Lesser General Public License v2.1
203 stars 80 forks source link

error: ‘void* __builtin_memmove(void*, const void*, long unsigned int)’ forming offset 4 is out of the bounds #3182

Closed Neo-Zhu closed 1 week ago

Neo-Zhu commented 1 week ago

Excuse me, when i build geos using the codes: make -j4, there is the error: error: ‘void __builtin_memmove(void, const void, long unsigned int)’ forming offset 4 is out of the bounds [0, 4] [-Werror=array-bounds=] __builtin_memmove(result, first, sizeof(_Tp) _Num);

i don't know how to solve it. i appricaite it so much if you give me some suggestions. Thanks in advanced!

victorapm commented 1 week ago

@Neo-Zhu can you provide more details about this error?

  1. Machine type
  2. Compiler used
  3. GEOS version
  4. Full error message (a few lines above the message you shared)

This information will help us diagnose the problem more effectively. Thank you!

Neo-Zhu commented 1 week ago

Thank you. I have solved the problem by changing my gcc-13 to gcc-8 that you recommended in GEOSX docoment.