On Tue, May 23, 2023 at 2:26 PM asyropoulos--- via NumPy-Discussion < numpy-discussion@python.org> wrote:
> Hello, > > I am using Python 3.10.0 on OpenIndiana and yesterday I tried to install > numpy in my system. The command > > /opt/gnu/python/bin/python3.10 -m pip install --user numpy > > failed and it it printed a long error report. The errors are of the form > > from numpy/core/src/umath/string_ufuncs.cpp:1: > /usr/gcc/10/include/c++/10.4.0/cmath:1134:11: error: 'llrint' has > not been declared in '::' > 1134 | using ::llrint; > | ^~~~~~ > First I have noticed that '<command-line>: warning: "__STDC_VERSION__" > redefined' and after some experimentation > I realized that the extra option -D__STDC_VERSION__=0 is actually the one > that causes the problem. So my question is: > How can I disable this option? > That seems wrong indeed. It's set on line 260 of the main `setup.py` file for numpy. We require C99, so you can try setting it to 199901L. I suspect that that will fix it since `llrint` is a C99 function. If that does work, please let us know so we can fix things up. And if it doesn't work, please open an issue at https://github.com/numpy/numpy/issues/ and Cc me (@rgommers); the issue tracker is a better place than the mailing list to work through build problems. Cheers, Ralf
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com