Installing rtems on 32 bit windows host machine

Alireza Banejad alibanejad1376 at gmail.com
Sat Mar 20 19:57:46 UTC 2021


i managed to fix the issue and install rtems with msys2. I didnt continue
it any further with cygwin.
i did the following:
1) I changed the machsize line under 'i686' from '32' to '64'  in
source-builder/sb/windows.py since the toolchain downloaded for msys2
is as mingw-w64-i686-toolchain
not mingw-w32-i686-toolchain

def load():
    # Default to the native Windows Python.
    uname = 'win32'
    if 'PROCESSOR_ARCHITECTURE' in os.environ:
        if os.environ['PROCESSOR_ARCHITECTURE'] == 'AMD64':
            hosttype = 'x86_64'
            machsize = '64'
        else:
            hosttype = 'i686'
            machsize = '64' #'32'
    else:
        hosttype = 'x86_64'
        machsize = '32'
2) i tried installing the rtems 6 arm tools and gave me this:
C:/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/10.2.0/../../../../i686-w64-mingw32/bin/ld.exe:
../gnulib/import/libgnu.a(getrandom.o): in function `getrandom':

C:\opt\rtems\rsb\rtems\build\arg6iwm1\build\gnulib\import/../../../sourceware-mirror-binutils-gdb-6427605/gnulib/import/getrandom.c:129:
undefined reference to `BCryptGenRandom at 16'

3) finally i just installed the rtems 5 arm tools and it built successfully


now that i have rtems tools installed I want to use eclipse and be able to
build and install bsps on eclipse,  i followed the eclipse manual.
but when i reconfigure the project it returns:
sh -c "/C/opt/rtems/rtemsnew/configure --host=i686-w64-mingw32
--build=i686-w64-mingw32 --target=arm-rtems5
--prefix=C:\\\\\\\\opt\\\\\\\\rtems\\\\\\\\5 --enable-rtemsbsp=xen_virtual
--disable-tests"
checking for gmake... no
checking for gmake... no
checking for make... make
checking for RTEMS Version... 5.0.0
checking build system type... i686-w64-mingw32
checking host system type... i686-w64-mingw32
checking target system type... arm-unknown-rtems5
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
File not found - *.cfg
configure: error: BSP 'xen_virtual' not found, run 'rtems-bsps' (in the top
of the source tree) for a valid BSP list
configure: error: BSP 'xen_virtual' not found, run 'rtems-bsps' (in the top
of the source tree) for a valid BSP list

Configuration failed with error
even though i already installed the bsp with msys2 without any issues, i
dont know why running configure from eclipse tells me the bsp is not found.
i also tried this for other bsps and it gave me the same error

On Tue, Mar 23, 2021 at 5:57 AM Chris Johns <chrisj at rtems.org> wrote:

> On 12/3/21 9:47 pm, Alireza Banejad wrote:
> > any thoughts?
>
> What are the names of the compilers that have been installed?
>
> Chris
>
> >
> > On Fri, Mar 12, 2021 at 4:00 AM Alireza Banejad <
> alibanejad1376 at gmail.com
> > <mailto:alibanejad1376 at gmail.com>> wrote:
> >
> >     thanks again,
> >     this time I installed Cygwin and run the sb-check and returned that
> the
> >     environment is ok, but  when installing rtems with the source
> builder it
> >     results in an error, checking out the log file tells me the
> following:
> >     checking whether to use python... /usr/bin/python2
> >     checking for python... no
> >     configure: error: no usable python found at /usr/bin/python2
> >     make[1]: *** [Makefile:9705: configure-gdb] Error 1
> >     make[1]: Leaving directory
> >
>  '/cygdrive/c/opt/rtems/rsb/rtems/build/arm-rtems6-gdb-6427605-i686-pc-cygwin-1/build'
> >     make: *** [Makefile:857: all] Error 2
> >     shell cmd failed: sh -ex
> >
>   /cygdrive/c/opt/rtems/rsb/rtems/build/arm-rtems6-gdb-6427605-i686-pc-cygwin-1/do-build
> >     error: building arm-rtems6-gdb-6427605-i686-pc-cygwin-1
> >     i don't know why this happens even though python exists in this
> path?. I
> >     also have the python-devel and python3-devel packages installed
> >
> >     On Fri, Mar 12, 2021 at 2:22 AM Joel Sherrill <joel at rtems.org
> >     <mailto:joel at rtems.org>> wrote:
> >
> >         Re-adding devel@ to keep things recorded.
> >
> >         On Thu, Mar 11, 2021 at 1:23 PM Alireza Banejad
> >         <alibanejad1376 at gmail.com <mailto:alibanejad1376 at gmail.com>>
> wrote:
> >
> >             Hello Joel,
> >             thank you for responding,
> >             so basically I installed the msys2 i686 and downloaded the
> packages
> >             and finally downloaded themingw-w64-i686-toolchain, after
> exporting
> >             the proper path of the compiler I ran the
> >             gcc -dumpmachine command, it returned i686-w64-mingw32 yet
> the
> >             sb-check of rsb wants a i686-w32-mingw32-gcc compiler.
> >
> >
> >         Chris Johns will hopefully jump in shortly.
> >
> >
> >             On Thu, Mar 11, 2021 at 10:42 PM Joel Sherrill <
> joel at rtems.org
> >             <mailto:joel at rtems.org>> wrote:
> >
> >
> >
> >                 On Thu, Mar 11, 2021 at 1:05 PM Alireza Banejad
> >                 <alibanejad1376 at gmail.com <mailto:
> alibanejad1376 at gmail.com>> wrote:
> >
> >                     Hello everyone,
> >                     I was wondering whether I could install RTEMS on a
> 32-bit
> >                     Windows 7 host machine using either msys2 or Cygwin.
> >                     I already tried installing it on msys2 i686 but when
> running
> >                     sb-check it returns:
> >
> >                     |error: exe: not found: (__cc) i686-w32-mingw32-gcc
> error:
> >                     exe: not found: (__cxx) |i686-w32-mingw32-g++
> >
> >                     Environment is not correctly set up.
> >
> >                     It seems there is no such compiler as
> i686-w32-mingw32-gcc to add in the first place.
> >
> >
> >                 Assuming you have installed the gcc package, what is the
> >                 compiler called?
> >
> >                 I don't think any of the core developers have seen
> Windows 7
> >                 especially 32-bit in a while.
> >
> >                 The file that sets the expectations based on host is
> >                 source-builder/sb/windows.py. It may require some
> tinkering to
> >                 match a 32-bit environment.
> >
> >                 We'd love to have a patch to that file (don't break
> 64-bit) and,
> >                 if needed, documentation.
> >
> >                 --joel
> >
> >
> >                     _______________________________________________
> >                     users mailing list
> >                     users at rtems.org <mailto:users at rtems.org>
> >                     http://lists.rtems.org/mailman/listinfo/users
> >                     <http://lists.rtems.org/mailman/listinfo/users>
> >
> >
> > _______________________________________________
> > users mailing list
> > users at rtems.org
> > http://lists.rtems.org/mailman/listinfo/users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20210320/903060d9/attachment-0001.html>


More information about the users mailing list