Can't find Python.h on MSYS2 -- It's there

Chris Johns chrisj at rtems.org
Mon Oct 22 23:35:49 UTC 2018


On 23/10/2018 09:45, Joel Sherrill wrote:
> Hi
> 
> Nice to see the --source-only-download try to help. Just needs to find this:
> 
> config: tools/rtems-gdb-8.0.1-1.cfg
> error: config error: gdb-common-1.cfg:87: "gdb: python: header file not found:
> python2.7/Python.h, please install"
> Build FAILED
> Build Set: Time 0:00:19.550279
> Build FAILED
> 
> jrs007 at JRS-OAR-Laptop MINGW64 ~/rtems/rtems-source-builder/rtems
> $ ls /usr/include/*/P*
> /usr/include/python2.7/Python.h  /usr/include/python2.7/Python-ast.h
> 
> Any idea why it can't find it? Looks like it is exactly where it should be. :)

On Windows you need a MinGW64 python. We build native Windows tools so we cannot
link to the MSYS2 (Cygwin) DLL. I suspect those headers on MSYS2 are the MSYS2
python's headers. I do not have an MSYS2 python2.7 installed only python3 ...

 $ pacman -Qo /usr/include/python3.6m/Python.h
 /usr/include/python3.6m/Python.h is owned by python 3.6.6-1

I just build a new windows box (root disk died) last week and ran the pacman
command in the User Manual and it worked. Sure I then made the latest RSB patch
work with that install. I followed this procedure ...

 https://docs.rtems.org/branches/master/user/hosts/windows.html#msys2

that is the command ...

  pacman -S python mingw-w64-x86_64-python2 ....
                     ^^?
Chris



More information about the devel mailing list