You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build failure on macOS: malloc.c: error: implicit declaration of function 'memalign' [-Wimplicit-function-declaration] #23
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.
Activity
violet73 commentedon Apr 13, 2025
@barracuda156 Have you successfully built the AlphaSparse on macOS?
barracuda156 commentedon Apr 13, 2025
Yes, this should build: macos-powerpc/powerpc-ports@309e4d7