diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2020-04-12 15:26:37 +0100 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2020-04-12 15:26:37 +0100 |
commit | fb041fe844074d2556cfc350b52f5742bfb866b3 (patch) | |
tree | b28ccd457d3e542299de5ff72db3b64fc522a22a /paper.tex | |
parent | d0a51f78d4705c2496c42a02c49b0bc70e931cf7 (diff) |
Configure (numpy): added --std=c99 to CFLAGS to fix error
Elham Saremi recently reported the following errors when building Numpy in
numpy/core/src/npysort/radixsort.c.src: "error: 'for' loop initial
declarations are only allowed in C99 or C11 mode". After some searching, I
found Issue 14147[1] on Numpy's main repository about the same problem. As
described there, apparently Numpy needs C99 compiler, but doesn't check for
it or set it manually (for some strange reason, leaving it to the packagers
to check if they want!!!).
Any way, after a check with Elham, we were able to fix it by adding the
`--std=c99' to CFLAGS of Numpy's build and with this commit, it is now
being implemented in the core Maneage to not cause a problem in any other
project.
[1] https://github.com/numpy/numpy/issues/14147
Diffstat (limited to 'paper.tex')
0 files changed, 0 insertions, 0 deletions