Re: Issue Compiling the Tool Suite on Windows 10

2021-09-27 Thread Joel Sherrill
On Mon, Sep 27, 2021, 9:32 AM Christian MAUDERER <
christian.maude...@embedded-brains.de> wrote:

> Hello Luke,
>
> compiling the tool suite on Windows is a bit tricky in my experience and
> it needs ages. I just recently wanted to try a patch that would prefer
> python3 and had quite some problems with it:
>
> https://lists.rtems.org/pipermail/devel/2021-August/069006.html
>
>  From what I can say at the moment, I think your best bet is using msys2
> and not cygwin (if you have the choice). You'll need flex additionally
> to the packets given in the manual here:
>
>  https://docs.rtems.org/branches/master/user/hosts/windows.html#msys2
>
> For my patch that didn't work but I think with the current upstream RSB
> it should work.
>

Piling on, gdb 9 (RTEMS 5) will no longer build on Cygwin. Google finds
plenty of discussion on this and other packages.  I've discussed how to
deal with this with Chris. Looks I will be spending a small patch rather
than upgrading that branch to gdb 10.


> Best regards
>
> Christian
>
> Am 23.09.21 um 18:37 schrieb Luke Halberstadt:
> > Dear Sir/Madam,
> >
> > I am working on compiling the RTEMS toolchain on a Windows machine
> following the instructions provided here:
> > https://docs.rtems.org/branches/master/user/hosts/windows.html#cygwin
> >
> > Both Cygwin and MSYS2 are installed along with most of the recommended
> packages, however, I could not find the gcc4* or python packages. Instead,
> I installed similar gcc* and python2 packages.
> >
> > When I compile using the following command,
> > ../source-builder/sb-set-builder --prefix=/cygdrive/c/opt/rtmes/5.1
> 5/rtems-sparc --jobs=none
> >
> > The build makes it up to building gdb and then fails with a python error.
> > building: sparc-rtems5-gdb-9.1-x86_64-pc-cygwin-1
> > error: building sparc-rtems5-gdb-9.1-x86_64-pc-cygwin-1
> >
> > I have attached the rsb-report and log files The key issue seems to be
> in the following lines of the report:
> > 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:8869: configure-gdb] Error 1
> > make[1]: Leaving directory
> '/cygdrive/c/opt/rtems/5.1/rtems/build/sparc-rtems5-gdb-9.1-x86_64-pc-cygwin-1/build'
> > make: *** [Makefile:855: all] Error 2
> > shell cmd failed: sh -ex
> /cygdrive/c/opt/rtems/5.1/rtems/build/sparc-rtems5-gdb-9.1-x86_64-pc-cygwin-1/do-build
> > error: building sparc-rtems5-gdb-9.1-x86_64-pc-cygwin-1
> >
> > By default, Python is installed at /bin, not /usr/bin, so I tried
> copying the python files from /bin to /usr/bin, but that did not resolve
> the issue. I attached a screenshot showing the contents of /usr/bin when
> this failure occurred.
> >
> > Any ideas how to get around this problem so that gcc recognizes the
> python installation? Thank you for your input.
> >
> > Sincerely,
> >
> > Luke Halberstadt
> > Senior Associate Training Engineer
> > Natick, MA USA
> > (508) 647-0196
> > lhalb...@mathworks.com
> >
> >
> > ___
> > users mailing list
> > users@rtems.org
> > http://lists.rtems.org/mailman/listinfo/users
> >
>
> --
> 
> embedded brains GmbH
> Herr Christian MAUDERER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: christian.maude...@embedded-brains.de
> phone: +49-89-18 94 741 - 18
> fax:   +49-89-18 94 741 - 08
>
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
> ___
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Issue Compiling the Tool Suite on Windows 10

2021-09-27 Thread Christian MAUDERER

Hello Luke,

compiling the tool suite on Windows is a bit tricky in my experience and 
it needs ages. I just recently wanted to try a patch that would prefer 
python3 and had quite some problems with it:


https://lists.rtems.org/pipermail/devel/2021-August/069006.html

From what I can say at the moment, I think your best bet is using msys2 
and not cygwin (if you have the choice). You'll need flex additionally 
to the packets given in the manual here:


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

For my patch that didn't work but I think with the current upstream RSB 
it should work.


Best regards

Christian

Am 23.09.21 um 18:37 schrieb Luke Halberstadt:

Dear Sir/Madam,

I am working on compiling the RTEMS toolchain on a Windows machine following 
the instructions provided here:
https://docs.rtems.org/branches/master/user/hosts/windows.html#cygwin

Both Cygwin and MSYS2 are installed along with most of the recommended 
packages, however, I could not find the gcc4* or python packages. Instead, I 
installed similar gcc* and python2 packages.

When I compile using the following command,
../source-builder/sb-set-builder --prefix=/cygdrive/c/opt/rtmes/5.1 
5/rtems-sparc --jobs=none

The build makes it up to building gdb and then fails with a python error.
building: sparc-rtems5-gdb-9.1-x86_64-pc-cygwin-1
error: building sparc-rtems5-gdb-9.1-x86_64-pc-cygwin-1

I have attached the rsb-report and log files The key issue seems to be in the 
following lines of the report:
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:8869: configure-gdb] Error 1
make[1]: Leaving directory 
'/cygdrive/c/opt/rtems/5.1/rtems/build/sparc-rtems5-gdb-9.1-x86_64-pc-cygwin-1/build'
make: *** [Makefile:855: all] Error 2
shell cmd failed: sh -ex  
/cygdrive/c/opt/rtems/5.1/rtems/build/sparc-rtems5-gdb-9.1-x86_64-pc-cygwin-1/do-build
error: building sparc-rtems5-gdb-9.1-x86_64-pc-cygwin-1

By default, Python is installed at /bin, not /usr/bin, so I tried copying the 
python files from /bin to /usr/bin, but that did not resolve the issue. I 
attached a screenshot showing the contents of /usr/bin when this failure 
occurred.

Any ideas how to get around this problem so that gcc recognizes the python 
installation? Thank you for your input.

Sincerely,

Luke Halberstadt
Senior Associate Training Engineer
Natick, MA USA
(508) 647-0196
lhalb...@mathworks.com


___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users



--

embedded brains GmbH
Herr Christian MAUDERER
Dornierstr. 4
82178 Puchheim
Germany
email: christian.maude...@embedded-brains.de
phone: +49-89-18 94 741 - 18
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users