-
-
Notifications
You must be signed in to change notification settings - Fork 32k
1506-007 (S) "struct _dtoa_state" is undefined on AIX #119447
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
Labels
type-bug
An unexpected behavior, bug, or error
Comments
What's the value of _PY_SHORT_FLOAT_REPR? Look in pyconfig.h file. The structure is defined in Include/internal/pycore_dtoa.h. |
Ah wait, the macro is defined in: //--- _PY_SHORT_FLOAT_REPR macro -------------------------------------------
// If we can't guarantee 53-bit precision, don't use the code
// in Python/dtoa.c, but fall back to standard code. This
// means that repr of a float will be long (17 significant digits).
//
// Realistically, there are two things that could go wrong:
//
// (1) doubles aren't IEEE 754 doubles, or
// (2) we're on x86 with the rounding precision set to 64-bits
// (extended precision), and we don't know how to change
// the rounding precision.
#if !defined(DOUBLE_IS_LITTLE_ENDIAN_IEEE754) && \
!defined(DOUBLE_IS_BIG_ENDIAN_IEEE754) && \
!defined(DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754)
# define _PY_SHORT_FLOAT_REPR 0
#endif
// Double rounding is symptomatic of use of extended precision on x86.
// If we're seeing double rounding, and we don't have any mechanism available
// for changing the FPU rounding precision, then don't use Python/dtoa.c.
#if defined(X87_DOUBLE_ROUNDING) && !defined(HAVE_PY_SET_53BIT_PRECISION)
# define _PY_SHORT_FLOAT_REPR 0
#endif
#ifndef _PY_SHORT_FLOAT_REPR
# define _PY_SHORT_FLOAT_REPR 1
#endif |
The same happens when building for armv7l-unknown-linux-musleabihf |
and armv7l-unknown-linux-gnueabihf |
and riscv64-unknown-linux-gnu |
bisected the failure on armv7l-unknown-linux-gnueabihf to 3c57971 |
vstinner
pushed a commit
that referenced
this issue
Jun 30, 2024
This was referenced Jun 30, 2024
vstinner
pushed a commit
to vstinner/cpython
that referenced
this issue
Jun 30, 2024
) (cherry picked from commit c3677be)
mrahtz
pushed a commit
to mrahtz/cpython
that referenced
this issue
Jun 30, 2024
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this issue
Jul 11, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
CPython versions tested on:
3.12
Operating systems tested on:
Other
Linked PRs
The text was updated successfully, but these errors were encountered: