Project

General

Profile

Actions

Bug #62291

open

"Compile-time name 'BUILD_DOC' not defined" error with ninja install

Added by Laura Flores 9 months ago. Updated 4 months ago.

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I was able to reproduce this in an centos 8 stream build and an ubuntu jammy build.

$ ninja install
...
cythoning rados.pyx to /root/ceph/build/src/pybind/rados/pyrex/rados.c
creating /root/ceph/build/src/pybind/rados/pyrex
/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: /root/ceph/src/pybind/rados/rados.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:
------------------------------------------------------------
...
#
# 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

...

cythoning rbd.pyx to /root/ceph/build/src/pybind/rbd/pyrex/rbd.c
creating /root/ceph/build/src/pybind/rbd/pyrex
/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: /root/ceph/src/pybind/rbd/rbd.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:
------------------------------------------------------------
...
from datetime import datetime
import errno
from itertools import chain
import time

IF BUILD_DOC:
  ^
------------------------------------------------------------

rbd.pyx:36:3: Compile-time name 'BUILD_DOC' not defined

Error compiling Cython file:
------------------------------------------------------------
...
        return exception_map[ret](msg, errno=ret)
    else:
        return OSError(msg, errno=ret)

IF BUILD_DOC:
  ^
------------------------------------------------------------

rbd.pyx:361:3: Compile-time name 'BUILD_DOC' not defined

...

cythoning cephfs.pyx to /root/ceph/build/src/pybind/cephfs/pyrex/cephfs.c
creating /root/ceph/build/src/pybind/cephfs/pyrex
/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: /root/ceph/src/pybind/cephfs/cephfs.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:
------------------------------------------------------------
...
from cpython cimport PyObject, ref, exc
from libc.stdint cimport *
from libc.stdlib cimport malloc, realloc, free

from types cimport *
IF BUILD_DOC:
  ^
------------------------------------------------------------

cephfs.pyx:10:3: Compile-time name 'BUILD_DOC' not defined

...

cythoning rgw.pyx to /root/ceph/build/src/pybind/rgw/pyrex/rgw.c
creating /root/ceph/build/src/pybind/rgw/pyrex
/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: /root/ceph/src/pybind/rgw/rgw.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:
------------------------------------------------------------
...
from cpython cimport PyObject, ref, exc, array
from libc.stdint cimport *
from libc.stdlib cimport malloc, realloc, free
from cstat cimport stat

IF BUILD_DOC:
  ^
------------------------------------------------------------

rgw.pyx:11:3: Compile-time name 'BUILD_DOC' not defined

Related issues 1 (0 open1 closed)

Copied from mgr - Bug #62290: "Compile-time name 'BUILD_DOC' not defined" error with ninja installClosed

Actions
Actions #1

Updated by Laura Flores 9 months ago

  • Copied from Bug #62290: "Compile-time name 'BUILD_DOC' not defined" error with ninja install added
Actions #2

Updated by hg liu 6 months ago

the same problem

Actions #3

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.

same:https://tracker.ceph.com/issues/63327

Actions

Also available in: Atom PDF