GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — listobject.h:33:36: error: void value not ignored as it ought to be · Issue #94507 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
listobject.h:33:36: error: void value not ignored as it ought to be#94507
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@AlexLuya
AlexLuya
opened on Jul 2, 2022
Issue body actions

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. AlexLuya
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jul 2, 2022
  2. JelleZijlstra commented on Jul 2, 2022

    @JelleZijlstra
    JelleZijlstra
    on Jul 2, 2022
    Member
    More actions

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

    Reacted by Shantanu
  3. ericvsmith commented on Jul 2, 2022

    @ericvsmith
    ericvsmith
    on Jul 2, 2022
    Member
    More actions

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

  4. arhadthedev commented on Jul 2, 2022

    @arhadthedev
    arhadthedev
    on Jul 2, 2022
    Member
    More actions

    @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.

  5. AlexLuya commented on Jul 2, 2022

    @AlexLuya
    AlexLuya
    on Jul 2, 2022
    Author
    More actions

    @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

  6. da-woods commented on Jul 3, 2022

    @da-woods
    da-woods
    on Jul 3, 2022
    Contributor
    More actions

    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)

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

    @da-woods
    da-woods
    on Jul 5, 2022
    Contributor
    More actions

    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.

  9. da-woods commented on Jul 5, 2022

    @da-woods
    da-woods
    on Jul 5, 2022
    Contributor
    More actions

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

  10. JelleZijlstra commented on Jul 5, 2022

    @JelleZijlstra
    JelleZijlstra
    on Jul 5, 2022
    Member
    More actions

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

  11. JelleZijlstra
    closed this as not plannedon Jul 5, 2022
  12. erlend-aasland
    removed
    pendingThe issue will be closed if no feedback is providedThe 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 errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.