RE: Windows 11 - Compiling toolchain (5.3 and 6)

2023-10-13 Thread Chris Thomas
Hi Sebastian,

I was initially provided with a laptop for this project. I suspected there may 
have been power states that were interfering with WSL2. I found a desktop and 
installed a fresh copy of Windows 11, enabled WSL and was able to successfully 
go through the Quick Start for RTEMS v6 on that PC.

Thanks,

Chris Thomas

-Original Message-
From: Sebastian Huber  
Sent: Thursday, October 12, 2023 11:21 AM
To: Chris Thomas ; users@rtems.org
Subject: Re: Windows 11 - Compiling toolchain (5.3 and 6)

Hello Chris,

some of our customers use WSL2 with Ubuntu, they reported no issues with the 
RSB build of RTEMS 6.

If you want to build mingw tools, then I would build them on Linux with a mingw 
cross compiler.

Kind regards,
Sebastian

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
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

RE: Windows 11 - Compiling toolchain (5.3 and 6)

2023-10-13 Thread Chris Thomas
I would prefer to create the toolchains in an environment that is easily 
integrated with Windows. The method that is the least volatile is also the most 
attractive. I was using a laptop with Windows 11, however, it does continue to 
freeze during compilation in WSL2. It's running Ubuntu 22.04 LTS. This time 
it's been sitting at GDB for approximately 2 days. I've acquired a desktop PC 
and put a fresh installation of Windows 11 on it with Ubuntu 22.04 LTS in WSL2 
and am going to try building RTEMS 6 toolchain on there. Hopefully it’s the 
difference in hardware.

Chris Thomas

-Original Message-
From: zhengxiaojun <17935...@qq.com> 
Sent: Thursday, October 12, 2023 8:23 PM
To: Chris Thomas ; users@rtems.org
Subject: Re: Windows 11 - Compiling toolchain (5.3 and 6)

Hello Chris,

I used MSYS2, not all the tools can be compiled in MSYS2. MSYS2 has a 
pre-built dtc package, so you do not need to compile it. And 
ged,texinfo,gdb,rtems-tools can not build success in my MSYS2, but these tools 
are not essential for compiling RTEMS6. I just compile expat,gmp, binutils,gcc. 
I built last week, these tools should be OK.
BTW: build on windows will take a long times.

在 2023/10/12 21:59, Chris Thomas 写道:
> Good Day,
> 
> I'm attempting to build a toolchain on Windows 11. I've followed the 
> quickstart guide for 5.3 as well as 6 and run into build errors each 
> time. I began with MSYS2 and ran into this issue:
> 
> https://www.mail-archive.com/users@rtems.org/msg03627.html
> <https://www.mail-archive.com/users@rtems.org/msg03627.html>
> 
> I implemented the work around but it throws an error with arg7nxwm1.
> 
> Attempting to compile 6 using the quick start guide for a Windows host 
> in MSYS2's MinGW64 errors because fnmatch.h is not found. It looks 
> like its available in gnulib, which seems to be part of gdb, but this 
> error is thrown during the compilation of dtc.
> 
> I tried moving to WSL2 and installing Ubuntu to get a true POSIX 
> environment.
> 
> 5.3 won't compile GDB - it says "no libraries passed to compiler". So 
> I tried compiling 6 and it freezes during the gcc build.
> 
> I've gone down a couple different avenue's trying to get a working 
> toolchain over the last few weeks. At this point, I feel as though I 
> need some advice on whether to stick with MSYS2 and try to get that 
> working or continue with WSL2. The same for the version, should I 
> continue to try to get version 6 to work? If that's the case, what is 
> my next step? There don't seem to be any packages readily available in
> MSYS2 that include fnmatch.h. And with build errors frequently 
> occurring, is there updated documentation to assist with getting started?
> 
> Thanks,
> 
> *Chris Thomas*
> 
> 
> ___
> 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: Windows 11 - Compiling toolchain (5.3 and 6)

2023-10-12 Thread zhengxiaojun



在 2023/10/12 23:21, Sebastian Huber 写道:

Hello Chris,

some of our customers use WSL2 with Ubuntu, they reported no issues with 
the RSB build of RTEMS 6.


If you want to build mingw tools, then I would build them on Linux with 
a mingw cross compiler.

I can not get arm-rtems-gcc in this way. The command is:
../source-builder/sb-set-builder --log=l-arm.txt 
--host=x86_64-w64-mingw32 --prefix=/opt/rtems/6.1 6/rtems-arm


Is it right?



Kind regards,
 Sebastian



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

Re: Windows 11 - Compiling toolchain (5.3 and 6)

2023-10-12 Thread zhengxiaojun

Hello Chris,

   I used MSYS2, not all the tools can be compiled in MSYS2. MSYS2 has 
a pre-built dtc package, so you do not need to compile it. And 
ged,texinfo,gdb,rtems-tools can not build success in my MSYS2, but these 
tools are not essential for compiling RTEMS6. I just compile expat,gmp, 
binutils,gcc. I built last week, these tools should be OK.

BTW: build on windows will take a long times.

在 2023/10/12 21:59, Chris Thomas 写道:

Good Day,

I'm attempting to build a toolchain on Windows 11. I've followed the 
quickstart guide for 5.3 as well as 6 and run into build errors each 
time. I began with MSYS2 and ran into this issue:


https://www.mail-archive.com/users@rtems.org/msg03627.html 



I implemented the work around but it throws an error with arg7nxwm1.

Attempting to compile 6 using the quick start guide for a Windows host 
in MSYS2's MinGW64 errors because fnmatch.h is not found. It looks like 
its available in gnulib, which seems to be part of gdb, but this error 
is thrown during the compilation of dtc.


I tried moving to WSL2 and installing Ubuntu to get a true POSIX 
environment.


5.3 won't compile GDB - it says "no libraries passed to compiler". So I 
tried compiling 6 and it freezes during the gcc build.


I've gone down a couple different avenue's trying to get a working 
toolchain over the last few weeks. At this point, I feel as though I 
need some advice on whether to stick with MSYS2 and try to get that 
working or continue with WSL2. The same for the version, should I 
continue to try to get version 6 to work? If that's the case, what is my 
next step? There don't seem to be any packages readily available in 
MSYS2 that include fnmatch.h. And with build errors frequently 
occurring, is there updated documentation to assist with getting started?


Thanks,

*Chris Thomas*


___
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: Windows 11 - Compiling toolchain (5.3 and 6)

2023-10-12 Thread Chris Johns
On 13/10/2023 1:21 am, Sebastian Huber wrote:
> some of our customers use WSL2 with Ubuntu, they reported no issues with the 
> RSB
> build of RTEMS 6.

I think something in recent Linux versions is causing problems with RTEMS 5.

> If you want to build mingw tools, then I would build them on Linux with a 
> mingw
> cross compiler.

If you do this make sure you collect and handle the DLLs referenced in the
build. Not doing this can leave you with some hidden surprises. The Linux distro
packages and the Windows native DLL may not align.

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


Re: Windows 11 - Compiling toolchain (5.3 and 6)

2023-10-12 Thread Sebastian Huber

Hello Chris,

some of our customers use WSL2 with Ubuntu, they reported no issues with 
the RSB build of RTEMS 6.


If you want to build mingw tools, then I would build them on Linux with 
a mingw cross compiler.


Kind regards,
Sebastian

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
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

Windows 11 - Compiling toolchain (5.3 and 6)

2023-10-12 Thread Chris Thomas
Good Day,



I'm attempting to build a toolchain on Windows 11. I've followed the quickstart 
guide for 5.3 as well as 6 and run into build errors each time. I began with 
MSYS2 and ran into this issue:

https://www.mail-archive.com/users@rtems.org/msg03627.html

I implemented the work around but it throws an error with arg7nxwm1.

Attempting to compile 6 using the quick start guide for a Windows host in 
MSYS2's MinGW64 errors because fnmatch.h is not found. It looks like its 
available in gnulib, which seems to be part of gdb, but this error is thrown 
during the compilation of dtc.



I tried moving to WSL2 and installing Ubuntu to get a true POSIX environment.

5.3 won't compile GDB - it says "no libraries passed to compiler". So I tried 
compiling 6 and it freezes during the gcc build.



I've gone down a couple different avenue's trying to get a working toolchain 
over the last few weeks. At this point, I feel as though I need some advice on 
whether to stick with MSYS2 and try to get that working or continue with WSL2. 
The same for the version, should I continue to try to get version 6 to work? If 
that's the case, what is my next step? There don't seem to be any packages 
readily available in MSYS2 that include fnmatch.h. And with build errors 
frequently occurring, is there updated documentation to assist with getting 
started?



Thanks,


Chris Thomas

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