Skip to content

Conversation

@mkoeppe
Copy link
Member

@mkoeppe mkoeppe commented Nov 9, 2025

On top of:

To test:

./configure --without-system-python3 --disable-notebook && make build V=0

@mkoeppe
Copy link
Member Author

mkoeppe commented Nov 9, 2025

  [sagemath_objects-10.6.33]   [spkg-install] gcc -g -O2 -I/Users/mkoeppe/s/sage/sage-rebasing/worktree-pristine/src -I/Users/mkoeppe/s/sage/sage-rebasing/worktree-pristine/local/var/lib/sage/venv-python3.15.0a1/lib/python3.15/site-packages/numpy/_core/include -I/Users/mkoeppe/s/sage/sage-rebasing/worktree-pristine/local/var/lib/sage/venv-python3.15.0a1/include/python3.15 -I/Users/mkoeppe/s/sage/sage-rebasing/worktree-pristine/local/var/lib/sage/venv-python3.15.0a1/include/python3.15 -c sage/misc/weak_dict.c -o build/temp.macosx-26.1-arm64-cpython-315/sage/misc/weak_dict.o
  [sagemath_objects-10.6.33]   [spkg-install] sage/misc/weak_dict.c:3175:15: error: call to undeclared function 'PyWeakref_GetObject'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  [sagemath_objects-10.6.33]   [spkg-install]  3175 |   __pyx_t_1 = PyWeakref_GetObject(((PyObject *)__pyx_v_self->D));
  [sagemath_objects-10.6.33]   [spkg-install]       |               ^
  [sagemath_objects-10.6.33]   [spkg-install] sage/misc/weak_dict.c:3175:15: note: did you mean 'PyWeakref_GetRef'?
  [sagemath_objects-10.6.33]   [spkg-install] /Users/mkoeppe/s/sage/sage-rebasing/worktree-pristine/local/var/lib/sage/venv-python3.15.0a1/include/python3.15/weakrefobject.h:32:17: note: 'PyWeakref_GetRef' declared here
  [sagemath_objects-10.6.33]   [spkg-install]    32 | PyAPI_FUNC(int) PyWeakref_GetRef(PyObject *ref, PyObject **pobj);
  [sagemath_objects-10.6.33]   [spkg-install]       |                 ^
  [sagemath_objects-10.6.33]   [spkg-install] sage/misc/weak_dict.c:3175:13: error: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
  [sagemath_objects-10.6.33]   [spkg-install]  3175 |   __pyx_t_1 = PyWeakref_GetObject(((PyObject *)__pyx_v_self->D));
  [sagemath_objects-10.6.33]   [spkg-install]       |             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

https://docs.python.org/3/c-api/weakref.html#c.PyWeakref_GetObject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants