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

Build failure on macOS: malloc.c: error: implicit declaration of function 'memalign' [-Wimplicit-function-declaration] #23

Open
barracuda156 opened this issue Nov 5, 2024 · 0 comments

Comments

@barracuda156
Copy link

Building from a584f48 with gcc 14.2.0:

malloc.c: In function 'alpha_memalign':
malloc.c:36:15: error: implicit declaration of function 'memalign' [-Wimplicit-function-declaration]
   36 |   void *ret = memalign(alignment, bytes);
      |               ^~~~~~~~
malloc.c:36:15: error: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]

macOS does not have memalign and apparently does not need it either.
posix_memalign or malloc could be used, if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant