mcgrawia commented on issue #43:
URL: 
https://github.com/apache/datasketches-python/issues/43#issuecomment-2023974785

   Hi @jmalkin, thanks for the fast reply. I definitely see a lot of warnings, 
but this section seems to be an actual error unless I'm mistaken:
   ```
         In file included from /usr/include/c++/13.2.1/cstring:42,
                          from 
/tmp/datasketches/include/DataSketches/memory_operations.hpp:27,
                          from 
/tmp/datasketches/include/DataSketches/density_sketch_impl.hpp:26,
                          from 
/tmp/datasketches/include/DataSketches/density_sketch.hpp:254,
                          from 
/tmp/pip-install-xb49diqe/datasketches_8f31c08a390743fd9e84ba03778a8c57/src/density_wrapper.cpp:33:
         
/tmp/pip-install-xb49diqe/datasketches_8f31c08a390743fd9e84ba03778a8c57/src/density_wrapper.cpp:
 In function 'int prepare_numpy()':
   error seems to be here ->
         
/tmp/pip-build-env-ihc_qezq/overlay/lib/python3.12/site-packages/numpy/core/include/numpy/__multiarray_api.h:1558:151:
 error: cannot convert 'std::nullptr_t' to 'int' in return
          1558 | #define import_array() {if (_import_array() < 0) 
{PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray 
failed to import"); return NULL; } }
               |                                                                
                                                                                
       ^~~~
         
/tmp/pip-install-xb49diqe/datasketches_8f31c08a390743fd9e84ba03778a8c57/src/density_wrapper.cpp:101:3:
 note: in expansion of macro 'import_array'
           101 |   import_array();
               |   ^~~~~~~~~~~~
   ```
   
   This seems to be the only error log in the entire output, everything else 
seems like warnings. Do you have any thoughts why this code would compile for 
other linux distros but not for alpine?
   
   The build definitely doesn't seem to be happy, but if it's not the above 
error, I'm not see anything else in the log that would explain it:
   ```
         gmake[3]: *** [CMakeFiles/python.dir/build.make:230: 
CMakeFiles/python.dir/src/density_wrapper.cpp.o] Error 1
         gmake[3]: *** Waiting for unfinished jobs....
         gmake[2]: *** [CMakeFiles/Makefile2:87: CMakeFiles/python.dir/all] 
Error 2
         gmake[1]: *** [CMakeFiles/Makefile2:94: CMakeFiles/python.dir/rule] 
Error 2
         gmake: *** [Makefile:124: python] Error 2
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to