On 12/18/20 5:15 PM, Robin Müller wrote:
> Hi Jiri,
>
> Okay, I commented out that header on my Windows 10 machine (Version 20H2, 
> 19042.685) and it compiled.
>
> That error was on a different Linux machine when cross compiling the cross 
> toolchain for Windows (i686 rtems6-arm worked now, so that's nice). Maybe 
> this #define is also derived from the current OS?
> I could try to supply it manually..

I have updated sis git with the windows fixes. To test it, apply the attached 
patch to your RSB tree and build sis standalone with

../source-builder/sb-set-builder --prefix=/opt/rtems/6 devel/sis

Let me know if it builds OK for you and I will push the patch to the RSB tree...

Jiri.

>
> Kind Regards
> Robin
>
>
>
> On Fri, 18 Dec 2020 at 16:35, Jiri Gaisler <j...@gaisler.se 
> <mailto:j...@gaisler.se>> wrote:
>
>
>     On 12/18/20 2:10 PM, Robin Müller wrote:
>>     In case you're interested, this is the fail report for the SIS Cxc build 
>> on Linux (failed both for i686 and x86_64).
>>
>>     I think it fails because _WIN32_WINNT (windows version) is not defined, 
>> causing winsock2.h to exclude requires sections.
>>
>>     Build command was:
>>      ../source-builder/sb-set-builder 
>> --prefix=/c/Users/Robin/RTEMS/rtems-tools/rtems/6 --no-install 
>> --bset-tar-file --host=i686-w64-mingw32 6/rtems-sparc
>>
>     I had a quick look at this. The first problem with missing arpa/inet.h 
> can be fixed by commenting out the include file, as it is not needed:
>
>     i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I.    -DFAST_UART -O2 -g -pipe 
> -I/home/rmueller/Documents/RTEMS/rtems-tools/src/rsb/rtems/build/tmp/sb-1000/6/rtems-sparc/c/Users/Robin/RTEMS/rtems-tools/rtems/6/include
>   -MT greth.o -MD -MP -MF .deps/greth.Tpo -c -o greth.o greth.c
>     greth.c:31:10: fatal error: arpa/inet.h: No such file or directory
>        31 | #include <arpa/inet.h>
>
>
>     The second problem with winsock2.h is not obvious to me. On my old 
> windows7/qemu system, remote.c compiles fine and winsock2.h provides the 
> necessary defines. Which windows version are you using where it fails?
>
>     I am about to release a new sis version with more RISCV support, so I 
> could add fixes for MSYS2 if necessary ...
>
>     Regards, Jiri.
>
>
>>     Kind Regards
>>     Robin
>>
>>     On Fri, 18 Dec 2020 at 12:49, Robin Müller <robin.muelle...@gmail.com 
>> <mailto:robin.muelle...@gmail.com>> wrote:
>>
>>         If I understand correctly, the BSPs can be installed with waf only 
>> if the tool suite for the given architecture has been installed.
>>         Problem is, the RSB build will fail even if a tiny component is 
>> problematic. 
>>         I thought the tool suite itself is installed using the build 
>> commands required by the sources (make, automake, etc).
>>         Is it possible to also build these sources with waf?
>>
>>         I have tried this cross compiling on linux for windows (I used 
>> x86_64 instead of i686) because everything was working on Linux, but there 
>> are issues with the SIS tool for sparc-rtems6..
>>         But SIS is now also problematic on the Windows machine where I 
>> almost managed to build everything.
>>
>>         Everything except SIS was built by the RSB and I copied the 
>> installed files manually to install them and tried to build a BSP (is there 
>> actually some script like do-install which will perform this step?)
>>         But now some RTEMS tool is missing (rtems-bin2c):
>>
>>         $ ./waf configure --prefix=$RTEMS_TOOLS --rtems-bsp=sparc/erc32
>>         Setting top to                           : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/src/rtems
>>         Setting out to                           : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/src/rtems/build
>>         Configure board support package (BSP)    : sparc/erc32
>>         Checking for program 'sparc-rtems6-gcc'  : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-gcc.exe
>>         Checking for program 'sparc-rtems6-g++'  : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-g++.exe
>>         Checking for program 'sparc-rtems6-ar'   : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-ar.exe
>>         Checking for program 'sparc-rtems6-ld'   : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-ld.exe
>>         Checking for program 'ar'                : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-ar.exe
>>         Checking for program 'g++, c++'          : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-g++.exe
>>         Checking for program 'ar'                : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-ar.exe
>>         Checking for program 'gas, gcc'          : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-gcc.exe
>>         Checking for program 'ar'                : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-ar.exe
>>         Checking for program 'gcc, cc'           : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-gcc.exe
>>         Checking for program 'ar'                : 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6/bin/sparc-rtems6-ar.exe
>>         Checking for program 'rtems-bin2c'       : not found
>>         Could not find the program ['rtems-bin2c']
>>         (complete log in 
>> C:/Users/Robin/Documents/RTEMS/rtems-tools/src/rtems/build/config.log)
>>
>>         In general the build process on Windows seems to be more "brittle" 
>> than on Linux, so maybe installers would be a good idea? I generally 
>> installed cross-compilers (e.g. arm-none-eabi-gcc) on Windows
>>         using installers (for example 
>> https://xpack.github.io/arm-none-eabi-gcc/) and have made very good 
>> experience with that.
>>
>>         Kind Regards
>>         Robin
>>
>>         On Fri, 18 Dec 2020 at 12:24, Sebastian Huber 
>> <sebastian.hu...@embedded-brains.de 
>> <mailto:sebastian.hu...@embedded-brains.de>> wrote:
>>
>>             On 18/12/2020 11:35, Chris Johns wrote:
>>
>>             >> Since all parts of RTEMS build now with waf I think it is 
>> possible to build RTEMS applications on Windows without having to install 
>> MSYS2/MinGW. It should work with only a Python installation, but I haven't 
>> tested this yet.
>>             > This maybe true In theory but I have not been able to achieve 
>> it.
>>             What was the missing piece?
>>
>>             -- 
>>             embedded brains GmbH
>>             Herr Sebastian HUBER
>>             Dornierstr. 4
>>             82178 Puchheim
>>             Germany
>>             email: sebastian.hu...@embedded-brains.de 
>> <mailto: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/
>>
>>             _______________________________________________
>>             devel mailing list
>>             devel@rtems.org <mailto:devel@rtems.org>
>>             http://lists.rtems.org/mailman/listinfo/devel
>>
>>
>>     _______________________________________________
>>     devel mailing list
>>     devel@rtems.org <mailto:devel@rtems.org>
>>     http://lists.rtems.org/mailman/listinfo/devel
>
From 649beb430b6fc97bcefd4324db451db11e4e84fd Mon Sep 17 00:00:00 2001
From: Jiri Gaisler <j...@gaisler.se>
Date: Fri, 18 Dec 2020 22:57:31 +0100
Subject: [PATCH] devel/sis: Update to 2.26

---
 bare/config/devel/sis-2-1.cfg | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bare/config/devel/sis-2-1.cfg b/bare/config/devel/sis-2-1.cfg
index 4f4a0f5..c4b5f9e 100644
--- a/bare/config/devel/sis-2-1.cfg
+++ b/bare/config/devel/sis-2-1.cfg
@@ -8,8 +8,8 @@
 
 %include %{_configdir}/base.cfg
 
-%define sis_version 2.25
-%hash sha512 sis-%{sis_version}.tar.bz2 e0523a3907403da37c8c3e506f7e1c7a62c66c75a1a61373af03d1ebeb307dc991ca54f15c35f468d216ccf58bd65ee7a0eab74a1f291d4df858ed205acd62df
+%define sis_version 2.26
+%hash sha512 sis-%{sis_version}.tar.bz2 91c5699ae71113ea405300f4b19e072a9cdf334fe3b1d399ec497fe45ea9522076a310c05560676a960018497a062d7c573e27cc68716f07d2a12ba80881eb2a
 
 #
 # The SIS build instructions.
-- 
2.17.1

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to