Skip to content

listobject.h:33:36: error: void value not ignored as it ought to be #94507

Description

@AlexLuya

Bug report
When running a "python3 setup install",I got an error:

/usr/include/python3.10/cpython/listobject.h:33:36: error: void value not ignored as it ought to be
   33 | #define PyList_SET_ITEM(op, i, v) ((void)(_PyList_CAST(op)->ob_item[i] = (v)))
      |                                   ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cursor.c:1088:13: note: in expansion of macro ‘PyList_SET_ITEM’

Your environment

  • CPython versions tested on: 0.29.28
  • Operating system and architecture: ubuntu 22.04 x86_64

Activity

  1. JelleZijlstra commented on Jul 2, 2022

    @JelleZijlstra
    Member

    What library are you installing? This looks like a bug in the library, not CPython itself.

  2. ericvsmith commented on Jul 2, 2022

    @ericvsmith
    Member

    And which version of Python? “ CPython versions tested on: 0.29.28” isn’t right.

  3. arhadthedev commented on Jul 2, 2022

    @arhadthedev
    Member

    @ericvsmith A path from the error message suggests it's 3.10.

    @AlexLuya Can you write here an output of python --version? It gives a full version.

  4. AlexLuya commented on Jul 2, 2022

    @AlexLuya
    Author

    @ericvsmith A path from the error message suggests it's 3.10.

    @AlexLuya Can you write here an output of python --version? It gives a full version.

    Python 3.10.4

  5. da-woods commented on Jul 3, 2022

    @da-woods
    Contributor

    And which version of Python? “ CPython versions tested on: 0.29.28” isn’t right.

    This looks like a recent Cython version to me. Post it on the Cython bug tracker instead. https://github.com/cython/cython/issues

    Remember to include enough code to actually reproduce the bug.

    (Or of course it may be an issue in whatever package you're trying to install. In which case you should report it to them and not Cython)

  6. added
    pendingThe issue will be closed if no feedback is provided
    on Jul 3, 2022
  7. da-woods commented on Jul 5, 2022

    @da-woods
    Contributor

    My conclusion having looked at it as a Cython issue: I don't think this is a Cython issue (even though a Cython version was quoted I don't think it looks like Cython-generated code).

    Whatever library it was was probably broken by #19975. It looks from the description there that this change was expected and intended to break some C API code.

  8. da-woods commented on Jul 5, 2022

    @da-woods
    Contributor

    And you probably just want to replace PyList_SET__ITEM with PyList_SetItem. Maybe.

  9. JelleZijlstra commented on Jul 5, 2022

    @JelleZijlstra
    Member

    Closing since this doesn't seem to be a bug in CPython (and likely not in Cython either, thanks @da-woods for looking).

  10. removed
    pendingThe issue will be closed if no feedback is provided
    on Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions