Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AlexLuya opened this issue Jul 2, 2022 · 8 comments
Closed

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

AlexLuya opened this issue Jul 2, 2022 · 8 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@AlexLuya
Copy link

AlexLuya commented Jul 2, 2022

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
@AlexLuya AlexLuya added the type-bug An unexpected behavior, bug, or error label Jul 2, 2022
@JelleZijlstra
Copy link
Member

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

@ericvsmith
Copy link
Member

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

@arhadthedev
Copy link
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.

@AlexLuya
Copy link
Author

AlexLuya commented Jul 2, 2022

@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

@da-woods
Copy link
Contributor

da-woods commented Jul 3, 2022

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)

@da-woods
Copy link
Contributor

da-woods commented Jul 5, 2022

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.

@da-woods
Copy link
Contributor

da-woods commented Jul 5, 2022

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

@JelleZijlstra
Copy link
Member

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

@JelleZijlstra JelleZijlstra closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2022
@erlend-aasland erlend-aasland removed the pending The issue will be closed if no feedback is provided label Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

7 participants