Bug #63327
opencompiler cython error
0%
Description
1 use ubuntu:20.04 docker build
2 ceph code i have try git tag 16.2.14 and 17.2.6;
3 but both of them have the problem;
_below is the ninja install log:
_Copying /ceph/build/src/pybind/rados/rados.egg-info to /ceph/install/lib/python3.8/site-packages/rados-2.0.0-py3.8.egg-info
running install_scripts
writing list of installed files to '/dev/null'
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /ceph/src/pybind/rados/rados.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
------------------------------------------------------------
... #
- Shared object for librbdpy #
- Copyright 2016 Mehdi Abaakouk <sileht@redhat.com>
IF BUILD_DOC:
^
------------------------------------------------------------
rados.pxd:7:3: Compile-time name 'BUILD_DOC' not defined
Error compiling Cython file:
------------------------------------------------------------
...
from cpython cimport PyObject, ref
from cpython.pycapsule cimport *
from libc cimport errno
from libc.stdint cimport *
from libc.stdlib cimport malloc, realloc, free
IF BUILD_DOC:
^
------------------------------------------------------------
rados.pyx:21:3: Compile-time name 'BUILD_DOC' not defined
running build
running build_ext
cythoning rbd.pyx to /ceph/build/src/pybind/rbd/pyrex/rbd.c______
Updated by Arvin Liang 5 months ago
This may because the lack of packages prevent the build-doc executed, then the BUILD_DOC is not been define. You can install doxygen or other packages in doc_deps.deb.txt to solve this problem.