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

Joel Sherrill joel at rtems.org
Mon Oct 22 23:44:49 UTC 2018


On Mon, Oct 22, 2018, 6:37 PM Chris Johns <chrisj at rtems.org> wrote:

> I should have added ..
>
> On 23/10/2018 10:35, Chris Johns wrote:
> > 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
>
> $ pacman -Qo /mingw64/include/python2.7/Python.h
> /mingw64/include/python2.7/Python.h is owned by mingw-w64-x86_64-python2
> 2.7.15-3
>
> >
> > 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 ....
> >                      ^^?
>

Hmm ... I installed msys2 from scratch in the last couple of weeks. I used
the Pacman command in the hosts section (formerly in the RSB). Are there
two Pacman command examples?

I will scratch my msys2 and try again tomorrow but please check if there
are two separate sections with Pacman command advice.

--joel



> Chris
> > _______________________________________________
> > devel mailing list
> > devel at rtems.org
> > http://lists.rtems.org/mailman/listinfo/devel
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20181022/6ef42634/attachment-0002.html>


More information about the devel mailing list