8000 ERROR: Failed building wheel for pyslalib · Issue #187 · scottransom/presto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ERROR: Failed building wheel for pyslalib #187
Open
@xuhengdada

Description

@xuhengdada

I am trying to install presto on CentOS7 and encounter "ERROR: Failed building wheel for pyslalib" problem,
the problem here is basically:

build/src.linux-x86_64-3.9/build/src.linux-x86_64-3.9/fortranobject.c:707:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 0; i < rank; ++i) {
^
build/src.linux-x86_64-3.9/build/src.linux-x86_64-3.9/fortranobject.c:707:5: note: use option -std=c99 or -std=gnu99 to compile your code
build/src.linux-x86_64-3.9/slalibmodule.c:203:12: warning: ‘f2py_size’ defined but not used [-Wunused-function]
static int f2py_size(PyArrayObject* var, ...)
^
error: Command "gcc -pthread -B /opt/pulsar_software/miniconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/pulsar_software/miniconda3/include -I/opt/pulsar_software/miniconda3/include -fPIC -O2 -isystem /opt/pulsar_software/miniconda3/include -fPIC -I. -Ibuild/src.linux-x86_64-3.9/build/src.linux-x86_64-3.9 -I/tmp/pip-build-env-ktomdtz8/overlay/lib/python3.9/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.9/numpy/distutils/include -I/opt/pulsar_software/miniconda3/include/python3.9 -c build/src.linux-x86_64-3.9/build/src.linux-x86_64-3.9/fortranobject.c -o build/temp.linux-x86_64-cpython-39/build/src.linux-x86_64-3.9/build/src.linux-x86_64-3.9/fortranobject.o -MMD -MF build/temp.linux-x86_64-cpython-39/build/src.linux-x86_64-3.9/build/src.linux-x86_64-3.9/fortranobject.o.d -msse -msse2 -msse3" failed with exit status 1

and I tried to install pyslablib by hand, and add -std=gnu99 to CFLAGS in the Makefile of pyslablib, but does not solve that issue.

Any suggestion to solve this issue? Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0