Hi,
Are you building after downloading source tarball ?
You might have to make code change in numba/np/ufunc/omppool.cpp
Add this line '#include <alloca.h>' into above file . you can add this near top of the file.
Thanks
Ranjit
------------------------------
Ranjit Ranjan
------------------------------
Original Message:
Sent: Thu September 28, 2023 05:37 PM
From: Mi Wang
Subject: Error during installing numba package
Hi Ranjit,
I got following error when installing Python package numba 0.57.1. Can you please help?
Thanks
Mi
..........
numba/np/ufunc/omppool.cpp: In function 'void parallel_for(void*, char**, size_t*, size_t*, void*, size_t, size_t, int)':
numba/np/ufunc/omppool.cpp:161:42: error: 'alloca' was not declared in this scope; did you mean 'valloc'?
161 | size_t * count_space = (size_t *)alloca(sizeof(size_t) * arg_len);
| ^~~~~~
| valloc
error: command '/opt/freeware/bin/gcc' failed with exit code 1
[end of output]
------------------------------
Mi Wang
------------------------------
#AIXOpenSource