You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A build failure occurs in Modules/posixmodule.c when compiling CPython from the main branch using Clang with ThreadSanitizer and the --disable-gil flag.
The compilation fails with two distinct types of errors:
The compiler reports that the statx struct has no member named stx_atomic_write_unit_max_opt. This error originates from the MM macro expansion within the pystatx_result_members definition.
Subsequently, multiple errors are reported for an invalid application of sizeof to an incomplete type PyMemberDef[]. This happens when the Py_ARRAY_LENGTH macro is used on pystatx_result_members, indicating that the array's definition was not completed due to the initial error.
This suggests that the feature detection or conditional compilation logic for the stx_atomic_write_unit_max_opt member is not functioning correctly under this specific build configuration.
Description:
A build failure occurs in
Modules/posixmodule.cwhen compiling CPython from themainbranch using Clang with ThreadSanitizer and the--disable-gilflag.The compilation fails with two distinct types of errors:
statxstruct has no member namedstx_atomic_write_unit_max_opt. This error originates from theMMmacro expansion within thepystatx_result_membersdefinition.sizeofto an incomplete typePyMemberDef[]. This happens when thePy_ARRAY_LENGTHmacro is used onpystatx_result_members, indicating that the array's definition was not completed due to the initial error.This suggests that the feature detection or conditional compilation logic for the
stx_atomic_write_unit_max_optmember is not functioning correctly under this specific build configuration.Steps to Reproduce:
mainbranch of cpython.Expected Behavior:
The build process should complete successfully.
Actual Behavior:
The build fails with the following errors logged from
Modules/posixmodule.c:Environment:
--with-thread-sanitizer --with-pydebug --disable-gil