AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Error during installing numba package

    Posted Thu September 28, 2023 05:37 PM

    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
    ------------------------------


  • 2.  RE: Error during installing numba package

    Posted Fri September 29, 2023 09:07 AM

    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
    ------------------------------