Skip to content

make -C Doc pydoc-topics fails with warnings #133513

@sobolevn

Description

@sobolevn

Bug report

I tried to run the command from the terminal and this happened:

/Users/sobolev/Desktop/cpython/Doc/c-api/structures.rst:24: WARNING: Duplicate C declaration, also defined at c-api/structures:24.
Declaration is '.. c:type:: PyObject'. [duplicate_declaration.c]
/Users/sobolev/Desktop/cpython/Doc/c-api/structures.rst:36: WARNING: Duplicate C declaration, also defined at c-api/structures:36.
Declaration is '.. c:type:: PyVarObject'. [duplicate_declaration.c]
/Users/sobolev/Desktop/cpython/Doc/c-api/typeobj.rst:494: WARNING: Duplicate C declaration, also defined at c-api/typeobj:494.
Declaration is '.. c:member:: Py_ssize_t PyObject.ob_refcnt'. [duplicate_declaration.c]
/Users/sobolev/Desktop/cpython/Doc/c-api/typeobj.rst:508: WARNING: Duplicate C declaration, also defined at c-api/typeobj:508.
Declaration is '.. c:member:: PyTypeObject* PyObject.ob_type'. [duplicate_declaration.c]
/Users/sobolev/Desktop/cpython/Doc/c-api/typeobj.rst:534: WARNING: Duplicate C declaration, also defined at c-api/typeobj:534.
Declaration is '.. c:member:: Py_ssize_t PyVarObject.ob_size'. [duplicate_declaration.c]

And then it failed:

build finished with problems, 5 warnings (with warnings treated as errors).
make: *** [build] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-builddocsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions