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

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

Closed
Neo-Zhu opened this issue Jun 22, 2024 · 2 comments
Labels
type: bug Something isn't working type: new A new issue has been created and requires attention

Comments

@Neo-Zhu
Copy link

Neo-Zhu commented Jun 22, 2024

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!

@Neo-Zhu Neo-Zhu added type: bug Something isn't working type: new A new issue has been created and requires attention labels Jun 22, 2024
@victorapm
Copy link
Contributor

@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
Copy link
Author

Neo-Zhu commented Jun 26, 2024

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

@Neo-Zhu Neo-Zhu closed this as completed Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working type: new A new issue has been created and requires attention
Projects
None yet
Development

No branches or pull requests

2 participants