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

Joel Sherrill joel at rtems.org
Tue Oct 23 20:43:51 UTC 2018


On Tue, Oct 23, 2018 at 3:34 PM Chris Johns <chrisj at rtems.org> wrote:

>
>
> On 24/10/2018 01:59, Joel Sherrill wrote:
> >
> >
> > On Mon, Oct 22, 2018 at 7:03 PM Chris Johns <chrisj at rtems.org
> > <mailto:chrisj at rtems.org>> wrote:
> >
> >     On 23/10/2018 10:44, Joel Sherrill wrote:
> >     > On Mon, Oct 22, 2018, 6:37 PM Chris Johns <chrisj at rtems.org
> >     <mailto:chrisj at rtems.org>
> >     > <mailto:chrisj at rtems.org <mailto:chrisj at rtems.org>>> wrote:
> >     > 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 cannot find any mention after you merged the Quick starts into a
> single one in
> >     the User Manual.
> >
> >     > I will scratch my msys2 and try again tomorrow but please check if
> there
> >     are two
> >     > separate sections with Pacman command advice.
> >
> >     Sure.
> >
> >
> > Hmmm... user/hosts/windows.rst and rsb/hosts.rst still have example
> pacman
> > commands. I suspect I should have removed rsb/hosts.rst. :(
>
> Yes, hmmm. Did those sections move over in your merge? I only looked in
> the RSB
> manual.
>

You shouldn't look there. We wanted those to disappear and be in the Users
Guide. :)

Is your tree up to date? I don't see hosts.rst at all in the RSB manual


> > Fresh msys2 install:
> >
> >  $ pacman -S python mingw-w64-x86_64-python2 mingw-w64-x86_64-gcc \
> >   bison cvs diffutils git make patch tar texinfo unzip
> > $ git clone git://git.rtems.org/rtems-source-builder.git
> > <http://git.rtems.org/rtems-source-builder.git>
> > $ cd rtems-source-builder/rtems
> >
> > jrs007 at JRS-OAR-Laptop MSYS ~/rtems-source-builder/rtems
> > $ ../source-builder/sb-check
> > error: no hosts defaults found; please add
> > $ ../source-builder/sb-set-builder --source-only-download 5/rtems-sparc
> > error: no hosts defaults found; please add
> > Build FAILED
> >
> > Seems like something got worse.
> >
>
> What do ...
>
>  $ python ../source-builder/sb/windows.py
>

$ python ../source-builder/sb/windows.py
{'___setup_shell': ('exe', 'required', '%{__sh}'),
 '__bash': ('exe', 'required', 'bash'),
 '__bison': ('exe', 'required', 'bison'),
 '__bzip2': ('exe', 'required', 'bzip2'),
 '__cat': ('exe', 'required', 'cat'),
 '__cc': ('exe', 'required', 'x86_64-w64-mingw32-gcc'),
 '__chgrp': ('exe', 'required', 'chgrp'),
 '__chmod': ('exe', 'required', 'chmod'),
 '__chown': ('exe', 'required', 'chown'),
 '__cp': ('exe', 'required', 'cp'),
 '__cvs': ('exe', 'optional', 'cvs'),
 '__cxx': ('exe', 'required', 'x86_64-w64-mingw32-g++'),
 '__flex': ('exe', 'required', 'flex'),
 '__git': ('exe', 'required', 'git'),
 '__grep': ('exe', 'required', 'grep'),
 '__gzip': ('exe', 'required', 'gzip'),
 '__id': ('exe', 'required', 'id'),
 '__install': ('exe', 'required', 'install'),
 '__install_info': ('exe', 'required', 'install-info'),
 '__ld': ('exe', 'required', 'ld'),
 '__ldconfig': ('exe', 'none', ''),
 '__makeinfo': ('exe', 'required', 'makeinfo'),
 '__mkdir': ('exe', 'required', 'mkdir'),
 '__mv': ('exe', 'required', 'mv'),
 '__nm': ('exe', 'required', 'nm'),
 '__objcopy': ('exe', 'required', 'objcopy'),
 '__objdump': ('exe', 'required', 'objdump'),
 '__patch': ('exe', 'required', 'patch'),
 '__patch_bin': ('exe', 'required', 'patch'),
 '__rm': ('exe', 'required', 'rm'),
 '__sed': ('exe', 'required', 'sed'),
 '__sh': ('exe', 'required', 'sh'),
 '__tar': ('exe', 'required', 'bsdtar'),
 '__touch': ('exe', 'required', 'touch'),
 '__unzip': ('exe', 'required', 'unzip'),
 '__xz': ('exe', 'required', 'xz'),
 '_build': ('triplet', 'required', 'x86_64-w64-mingw32'),
 '_build_alias': ('none', 'none', '%{nil}'),
 '_build_arch': ('none', 'none', 'x86_64'),
 '_build_cpu': ('none', 'none', 'x86_64'),
 '_build_os': ('none', 'none', 'win32'),
 '_build_os_version': ('none', 'none', 'n'),
 '_build_vendor': ('none', 'none', 'microsoft'),
 '_buildshell': ('exe', 'required', '%{__sh}'),
 '_host': ('triplet', 'required', 'x86_64-w64-mingw32'),
 '_host_alias': ('none', 'none', '%{nil}'),
 '_host_arch': ('none', 'none', 'x86_64'),
 '_host_cpu': ('none', 'none', 'x86_64'),
 '_host_os': ('none', 'none', 'win32'),
 '_host_vendor': ('none', 'none', 'microsoft'),
 '_ncpus': ('none', 'none', '8'),
 '_os': ('none', 'none', 'win32'),
 '_usr': ('dir', 'optional', '/opt/local'),
 '_var': ('dir', 'optional', '/opt/local/var'),
 'gdb_python2': u'/c/msys64/mingw64/bin/python2.exe',
 'gdb_python3': u'/c/msys64/mingw64/bin/python3.exe'}


>  $ set | grep PATH
>

$ set | grep PATH
ACLOCAL_PATH=/mingw64/share/aclocal:/usr/share/aclocal
HOMEPATH='\Users\jrs007'
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:/share/info
MANPATH=/mingw64/local/man:/mingw64/share/man:/usr/local/man:/usr/share/man:/usr/man:/share/man
MSYS2_PATH=/usr/local/bin:/usr/bin:/bin
ORIGINAL_PATH=/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/
PATH=/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig
VBOX_MSI_INSTALL_PATH='C:\Program Files\Oracle\VirtualBox\'
    local PATH=$PATH:/sbin;
    if [[ -z "${CDPATH:-}" || "$cur" == ?(.)?(.)/* ]]; then
    for i in ${CDPATH//:/'
    PATH=$PATH:/usr/sbin:/sbin:/usr/local/sbin type $1 &> /dev/null
    COMPREPLY=($( compgen -W "$( PATH="$PATH:/sbin" lsmod |         awk
'{if (NR != 1) print $1}' )" -- "$1" ))
    local PATH=$PATH:/sbin;
    local PATH="$PATH:/sbin:/usr/sbin";
    COMPREPLY+=($( compgen -W         "$( PATH="$PATH:/sbin" lspci -n | awk
'{print $3}')" -- "$cur" ))
    local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin;
    COMPREPLY+=($( compgen -W         "$( PATH="$PATH:/sbin" lsusb | awk
'{print $6}' )" -- "$cur" ))


>
> ... show?
>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20181023/5fbd1a32/attachment.html>


More information about the devel mailing list