Re: Oddity with address recorded for gcc instrumentation on ARM

2020-12-18 Thread Joel Sherrill
On Fri, Dec 18, 2020, 2:55 PM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:

> On 18/12/2020 20:51, Ryan Long wrote:
>
> > Can someone explain this?
> These are link register values. The least significant bit determines if
> a bx instruction continues in ARM or Thumb mode.
>

I guess I've never had to look that close. Thanks 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/
>
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: MSYS2 build: header file missing

2020-12-18 Thread Chris Johns
On 18/12/20 10:24 pm, Sebastian Huber 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?

At a technical level for our tools and building RTEMS I doubt any is missing. At
a practical level you may need git and if you need to build an packages that has
a standard make then you need more than just the tools we create. It was a
comment on that aspect of developing applications than a specific technical
issue with our approach.

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


Re: MSYS2 build: header file missing

2020-12-18 Thread Jiri Gaisler

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  > 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 
>
>
> 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 > > 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
>> 

Re: Oddity with address recorded for gcc instrumentation on ARM

2020-12-18 Thread Sebastian Huber

On 18/12/2020 20:51, Ryan Long wrote:



Timestamp     Channel CPU   Event 
type  Contents TID Prio        
PID    Source


18:00:06.483 017 719 stream_0 0  
FUNCTION_ENTRY   code=0x104ec7 167837716   
0    167837716


18:00:06.483 371 019 stream_0 0  
FUNCTION_EXIT   code=0x104ec7 167837716   
0    167837716


If you build the RTEMS tools with the LLVM development package you get 
the function name and line information in the trace.


--
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/

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


Re: Oddity with address recorded for gcc instrumentation on ARM

2020-12-18 Thread Sebastian Huber

On 18/12/2020 20:51, Ryan Long wrote:


Can someone explain this?
These are link register values. The least significant bit determines if 
a bx instruction continues in ARM or Thumb mode.


--
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/

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


Oddity with address recorded for gcc instrumentation on ARM

2020-12-18 Thread Ryan Long
Hi,

We turned on gcc instrumentation with a test function, and got the following 
records.

Timestamp Channel   CPU   Event type
  Contents TID PrioPID  
  Source
18:00:06.483 017 719 stream_0 0  FUNCTION_ENTRY 
  code=0x104ec7 167837716   0167837716
18:00:06.483 371 019 stream_0 0  FUNCTION_EXIT  
 code=0x104ec7 167837716   0167837716

Notice that the code value ends in "7". The actual address of the function is 
0x104ec6.

Can someone explain this?

Thanks,
Ryan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: MSYS2 build: header file missing

2020-12-18 Thread Robin Müller
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..

Kind Regards
Robin



On Fri, 18 Dec 2020 at 16:35, Jiri Gaisler  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 
>
>
> 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 
> 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 

Re: MSYS2 build: header file missing

2020-12-18 Thread Jiri Gaisler

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 


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  > 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 
>  > wrote:
>
> On 18/12/2020 11:35, Chris Johns wrote:
>
> >> Since all parts of RTEMS build now with waf I think it 

Re: MSYS2 build: header file missing

2020-12-18 Thread Robin Müller
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

Kind Regards
Robin

On Fri, 18 Dec 2020 at 12:49, Robin Müller 
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> 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
>> 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
>> http://lists.rtems.org/mailman/listinfo/devel
>
>
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 func.o -MD -MP -MF 

Re: MSYS2 build: header file missing

2020-12-18 Thread Robin Müller
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> 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
> 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
> http://lists.rtems.org/mailman/listinfo/devel
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Quick Start improvements: Tickets updated

2020-12-18 Thread Robin Müller
Hi,

I updated the RTEMS tickets with the patches for the Quick Start guide
(also neat that there is the comparison view):

BSP tests:
https://devel.rtems.org/ticket/4188

Python Encoding Error:
https://devel.rtems.org/ticket/4183

Some version 5/6 improvements / clarifications, also added how to write a
small helper script which I have found very useful:
https://devel.rtems.org/ticket/4187

Would be great if you could assign those issues :-)

Kind Regards
Robin
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: MSYS2 build: header file missing

2020-12-18 Thread Sebastian Huber

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
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
http://lists.rtems.org/mailman/listinfo/devel

Re: MSYS2 build: header file missing

2020-12-18 Thread Chris Johns

> On 18 Dec 2020, at 5:54 pm, Sebastian Huber 
>  wrote:
> 
> Hello Robin,
> 
> my experience over the years with MSYS2 is that building GCC is always 
> painful and a waste of time.

This is a bit harsh and I do not fully agree it is a waste of time. MSYS has 
proven to be an OK solution. Not perfect but It is the best I have experienced 
for native Windows gcc builds.

> What works quite reliably is building the RTEMS tools with a i686-w64-mingw32 
> cross-compiler on Linux. Most distributions include a standard package for 
> this. 

The distro based builds have issues as well. You need to match the DLL runtimes 
used in the build on Windows or things get a bit weird. This adds a layer of 
complexity unless you know what you are doing.

> 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. 

Chris

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