Project

General

Profile

Actions

Bug #63327

open

compiler cython error

Added by hg liu 6 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
build
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
16.2.14
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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)

Error compiling Cython file:
------------------------------------------------------------
... #
  1. Shared object for librbdpy #
  2. Copyright 2016 Mehdi Abaakouk <>

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______

Actions #1

Updated by jiaxu li 6 months ago

this issue still exists on 17.2.7

Actions #2

Updated by Arvin Liang 4 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.

Actions

Also available in: Atom PDF