This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pacampbell
Recipients pacampbell, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2022-01-11.15:08:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641913706.62.0.648116792724.issue46303@roundup.psfhosted.org>
In-reply-to
Content
I was trying to build python core (-DMS_WINDOWS -DPy_BUILD_CORE). I was using clang, which I think is unsupported looking at Windows doc. After looking at the issue though, it seemed that it was just some slight mistake which is why I filed the bug.

clang version 13.0.0
Target: x86_64-pc-windows-msvc
Thread model: posix

I can test to see if it fixes the immediate build problem, but I still find your fix not quite addressing the issue which I initially tried to create a patch for. Someone has already developed a shim here for Windows and it just was not used properly. `_Py_stat_struct` is a define which either evaluates to `stat` on non-Windows systems or a compatibility structure on Windows. Simply replacing the use of `struct stat` with `struct _Py_stat_struct` should solve the issue.
History
Date User Action Args
2022-01-11 15:08:26pacampbellsetrecipients: + pacampbell, paul.moore, vstinner, tim.golden, zach.ware, steve.dower
2022-01-11 15:08:26pacampbellsetmessageid: <1641913706.62.0.648116792724.issue46303@roundup.psfhosted.org>
2022-01-11 15:08:26pacampbelllinkissue46303 messages
2022-01-11 15:08:26pacampbellcreate