Project

General

Profile

Actions

Bug #62290

closed

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

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

Status:
Closed
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.

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 (1 open0 closed)

Copied to mgr - Bug #62291: "Compile-time name 'BUILD_DOC' not defined" error with ninja installNew

Actions
Actions #1

Updated by Laura Flores 9 months ago

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

Updated by Laura Flores 9 months ago

  • Status changed from New to Closed

Closing because of a missing detail.

Actions

Also available in: Atom PDF