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.

classification
Title: Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10
Type: behavior Stage: resolved
Components: Build, Windows Versions: Python 3.8
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: SilentGhost, heckad, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2019-06-02 14:21 by heckad, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (6)
msg344287 - (view) Author: Андрей Казанцев (heckad) * Date: 2019-06-02 14:21
Where to get "ffi.h" file?
msg344288 - (view) Author: SilentGhost (SilentGhost) * (Python triager) Date: 2019-06-02 14:24
How are you building python? Have you been following these instructions? https://cpython-core-tutorial.readthedocs.io/en/latest/build_cpython_windows.html
msg344290 - (view) Author: Андрей Казанцев (heckad) * Date: 2019-06-02 14:51
No, I used https://devguide.python.org/setup/ guide. I have downloaded the latest version of Visual Studio 2019 and evaluated in PowerShell "PCBuild\build.bat". After this, I opened "PCBuild\pcbuild.sln" and trying to build "python" solution and run it. Instead of successful build, the build broked.
msg344306 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-06-02 19:51
Did running PCbuild/build.bat successfully download dependencies to the `externals` directory?
msg345003 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2019-06-07 19:50
In command prompt, I see the following, with comments added.

f:\dev\3x>PCbuild\build.bat -e
  # -e should not be needed, but explicitly says to build externals
Using py -3.7 (found 3.7 with py.exe)
  # You must have an installed python to build python.
Fetching external libraries...
  # There are 4.
bzip2-1.0.6 already exists, skipping.
  # You should see something about fetching.
...
Fetching external binaries...
  # There are 3
libffi already exists, skipping.
  # Again, you should see something about fetching.
  # Although the .c files are not downloaded, the include files, including ffi.h, are, in externals/libffi/(win32|amd64)/include.

I personally have not used PCBuild\pcbuild.sln for years, since Zach added a fully functional build.bat.  After running the resulting binary, I pin the icon to the taskbar, so I can easily run freshly compiled python interactively without blocking the command window.  The pinned icon remains valid after re-compiles, which I do often.
msg345888 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-06-17 18:58
I'm unable to reproduce the problem.  If you're still having issues, please reopen the issue with more details about what exactly you did and the error(s) you saw (preferably copied and pasted into a message).
History
Date User Action Args
2022-04-11 14:59:16adminsetgithub: 81314
2019-06-17 18:58:04zach.waresetstatus: open -> closed
resolution: works for me
messages: + msg345888

stage: resolved
2019-06-07 19:50:05terry.reedysetnosy: + terry.reedy
messages: + msg345003
2019-06-02 19:51:58zach.waresetmessages: + msg344306
2019-06-02 14:51:11heckadsetmessages: + msg344290
2019-06-02 14:24:28SilentGhostsetnosy: + SilentGhost
messages: + msg344288
2019-06-02 14:22:24SilentGhostsetnosy: + paul.moore, tim.golden, zach.ware, steve.dower
type: behavior
components: + Windows
2019-06-02 14:21:12heckadcreate