[issue46656] Compile fails if Py_NO_NAN is defined

Mark Dickinson report at bugs.python.org
Sun Feb 6 04:55:07 EST 2022


Mark Dickinson <dickinsm at gmail.com> added the comment:

Here's the first point of failure on my machine. Fixing this shows up more failures.

gcc -c -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall    -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./Include/internal  -I. -I./Include    -DPy_BUILD_CORE -o Objects/complexobject.o Objects/complexobject.c
Objects/complexobject.c:120:27: error: use of undeclared identifier 'Py_NAN'
        r.real = r.imag = Py_NAN;
                          ^
Objects/complexobject.c:206:16: error: use of undeclared identifier 'Py_NAN'
        return Py_NAN;
               ^
2 errors generated.
make: *** [Objects/complexobject.o] Error 1

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46656>
_______________________________________


More information about the Python-bugs-list mailing list