Re: OS X Build Problems tag 5.2 ->Invalid configuration `arm64-apple-darwin22.3.0': machine `arm64-apple' not recognized

2023-03-29 Thread Chris Johns
On 30/3/2023 3:06 am, Heinz Junkes wrote:
> Hi,
> 
> I have, once again, a problem with building RTEMS on OS X.
> 
> It works fine with rtems6/master 
> 
> with clang 10.0.0 , python 3.8.5 on 
> Darwin Judiciary-Pag.fritz.box 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 
> 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 arm64
> python shows:
> (base) Judiciary-Pag:rtems-libbsd heinz$ python
> Python 3.8.5 (default, Sep  4 2020, 02:22:02)
> [Clang 10.0.0 ] :: Anaconda, Inc. on darwin
> Type "help", "copyright", "credits" or "license" for more information.
 import sysconfig
 sysconfig.get_config_vars()['HOST_GNU_TYPE']
> 'x86_64-apple-darwin13.4.0'

OK

> and clang 14.0.0 with python 3.11.2 on
> mac07:VE_RTEMS_INST hjunkes$ uname -a
> Darwin mac07.pse.bht-berlin.de 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 
> 30 20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103 arm64

My machine shows:

% uname -a
Darwin weka.contemporary.net.au 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30
20:39:46 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6020 arm64

I have a M2 Pro processor so I wonder if that explains the T6020 vs T8103? The
work I am doing can be tracked here https://devel.rtems.org/ticket/4892

> python shows:
> mac07:VE_RTEMS_INST hjunkes$ python
> Python 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 
> (clang-1400.0.29.202)] on darwin

Where is this python from?

> Type "help", "copyright", "credits" or "license" for more information.
 import sysconfig
 sysconfig.get_config_vars()['HOST_GNU_TYPE']
> 'aarch64-apple-darwin22.3.0'
> 
> 
> on CLANG 14.0.0 and python 3.11.2
> 
> OK with rtems 6 / master 
> 
>   git clone https://github.com/RTEMS/rtems-source-builder.git rsb
> …
> 
> RTEMS Source Builder - Set Builder, 6 (f0e34eab8bf3 modified)
>  Command Line: ../source-builder/sb-set-builder --jobs=2 
> --prefix=/Users/hjunkes/RTEMS_RASPI_RUN/rtems/6 6/rtems-arm
>  Python: 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 
> (clang-1400.0.29.202)]
> warning: exe: absolute exe found in path: (__install_info) 
> /usr/bin/install-info
> warning: exe: absolute exe found in path: (__makeinfo) /usr/bin/makeinfo
> Build Set: 6/rtems-arm
> Build Set: tools/rtems-default-tools.bset
> Build Set: textproc/gsed-internal.bset
> config: textproc/gsed.cfg
> package: gsed-4.8-arm64-apple-darwin22.3.0-1
> script:  1: #!/bin/sh
> 
> Failed with rtems 5.2
> 
> git clone https://github.com/RTEMS/rtems-source-builder.git rsb
> cd rsb
> git checkout tags/5.2
> 
> ...
> RTEMS Tools Project - Source Builder Error Report
>  Build: error: building autoconf-2.69-arm64-apple-darwin22.3.0-1
>  Command Line: ../source-builder/sb-set-builder --jobs=2 
> --prefix=/Users/hjunkes/VE_RTEMS_RUN/rtems/5 5/rtems-arm
>  Python: 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 
> (clang-1400.0.29.202)]
>  
> https://github.com/RTEMS/rtems-source-builder.git/origin/1116c5f85fb5dceca4a57c1b69195b6e9215b084-modified
>  Darwin mac07.pse.bht-berlin.de 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 
> 30 20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103 arm64
> Tail of the build log:
> ...
> + 
> ac_prefix=/Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/tmp/sb-659039/Users/hjunkes/VE_RTEMS_RUN/rtems/5
> + test arm64-apple-darwin22.3.0 '!=' arm64-apple-darwin22.3.0
> + export CFLAGS CFLAGS_FOR_BUILD CC
> + CFLAGS='-O2 -pipe -fbracket-depth=1024 
> -I/Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/tmp/sb-659039/5/rtems-autotools-internal/Users/hjunkes/VE_RTEMS_RUN/rtems/5/include
>  '
> + ./configure --build=arm64-apple-darwin22.3.0 
> --host=arm64-apple-darwin22.3.0 --verbose --disable-nls 
> --without-included-gettext 
> --prefix=/Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/tmp/sb-659039/Users/hjunkes/VE_RTEMS_RUN/rtems/5
> configure: WARNING: unrecognized options: --disable-nls, 
> --without-included-gettext
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> Invalid configuration `arm64-apple-darwin22.3.0': machine `arm64-apple' not 
> recognized

There have been a number of fixes on RTEMS 6 to work the latest aarch64 MacOS
releases from Karel Gardas. Maybe they need to be back ported to 5?

> configure: error: /bin/sh build-aux/config.sub arm64-apple-darwin22.3.0 failed
> checking build system type...
> checking build system type...
> shell cmd failed: /bin/sh -ex  
> /Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/autoconf-2.69-arm64-apple-darwin22.3.0-1/do-build
> error: building autoconf-2.69-arm64-apple-darwin22.3.0-1
> 
> 
> on CLANG 10.0.0 and python 3.8.5
> 
> Ok with RTEMS 5.2 (and rtems6)

On which MacOS?

Chris

> 
> RTEMS Source Builder - Set Builder, 5 (1116c5f85fb5 modified)
>  Command Line: ../source-builder/sb-set-b

Re: Error in building rtems 5.3 tools via mingw

2023-03-29 Thread Chris Johns
On 29/3/2023 9:11 pm, Giovanni Righi wrote:
> Ok, also I forgot to say in the previous email that I'm using windows 11. 

Ah thanks. I have access to a Windows 11 machine.

Chris

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

OS X Build Problems tag 5.2 ->Invalid configuration `arm64-apple-darwin22.3.0': machine `arm64-apple' not recognized

2023-03-29 Thread Heinz Junkes
Hi,

I have, once again, a problem with building RTEMS on OS X.

It works fine with rtems6/master 

with clang 10.0.0 , python 3.8.5 on 
Darwin Judiciary-Pag.fritz.box 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 
02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 arm64
python shows:
(base) Judiciary-Pag:rtems-libbsd heinz$ python
Python 3.8.5 (default, Sep  4 2020, 02:22:02)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sysconfig
>>> sysconfig.get_config_vars()['HOST_GNU_TYPE']
'x86_64-apple-darwin13.4.0'

and clang 14.0.0 with python 3.11.2 on
mac07:VE_RTEMS_INST hjunkes$ uname -a
Darwin mac07.pse.bht-berlin.de 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 
20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103 arm64
python shows:
mac07:VE_RTEMS_INST hjunkes$ python
Python 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 
(clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sysconfig
>>> sysconfig.get_config_vars()['HOST_GNU_TYPE']
'aarch64-apple-darwin22.3.0'


on CLANG 14.0.0 and python 3.11.2

OK with rtems 6 / master 

  git clone https://github.com/RTEMS/rtems-source-builder.git rsb
…

RTEMS Source Builder - Set Builder, 6 (f0e34eab8bf3 modified)
 Command Line: ../source-builder/sb-set-builder --jobs=2 
--prefix=/Users/hjunkes/RTEMS_RASPI_RUN/rtems/6 6/rtems-arm
 Python: 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 
(clang-1400.0.29.202)]
warning: exe: absolute exe found in path: (__install_info) /usr/bin/install-info
warning: exe: absolute exe found in path: (__makeinfo) /usr/bin/makeinfo
Build Set: 6/rtems-arm
Build Set: tools/rtems-default-tools.bset
Build Set: textproc/gsed-internal.bset
config: textproc/gsed.cfg
package: gsed-4.8-arm64-apple-darwin22.3.0-1
script:  1: #!/bin/sh

Failed with rtems 5.2

git clone https://github.com/RTEMS/rtems-source-builder.git rsb
cd rsb
git checkout tags/5.2

...
RTEMS Tools Project - Source Builder Error Report
 Build: error: building autoconf-2.69-arm64-apple-darwin22.3.0-1
 Command Line: ../source-builder/sb-set-builder --jobs=2 
--prefix=/Users/hjunkes/VE_RTEMS_RUN/rtems/5 5/rtems-arm
 Python: 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 
(clang-1400.0.29.202)]
 
https://github.com/RTEMS/rtems-source-builder.git/origin/1116c5f85fb5dceca4a57c1b69195b6e9215b084-modified
 Darwin mac07.pse.bht-berlin.de 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 
20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103 arm64
Tail of the build log:
...
+ 
ac_prefix=/Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/tmp/sb-659039/Users/hjunkes/VE_RTEMS_RUN/rtems/5
+ test arm64-apple-darwin22.3.0 '!=' arm64-apple-darwin22.3.0
+ export CFLAGS CFLAGS_FOR_BUILD CC
+ CFLAGS='-O2 -pipe -fbracket-depth=1024 
-I/Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/tmp/sb-659039/5/rtems-autotools-internal/Users/hjunkes/VE_RTEMS_RUN/rtems/5/include
 '
+ ./configure --build=arm64-apple-darwin22.3.0 --host=arm64-apple-darwin22.3.0 
--verbose --disable-nls --without-included-gettext 
--prefix=/Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/tmp/sb-659039/Users/hjunkes/VE_RTEMS_RUN/rtems/5
configure: WARNING: unrecognized options: --disable-nls, 
--without-included-gettext
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
Invalid configuration `arm64-apple-darwin22.3.0': machine `arm64-apple' not 
recognized
configure: error: /bin/sh build-aux/config.sub arm64-apple-darwin22.3.0 failed
checking build system type...
checking build system type...
shell cmd failed: /bin/sh -ex  
/Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/autoconf-2.69-arm64-apple-darwin22.3.0-1/do-build
error: building autoconf-2.69-arm64-apple-darwin22.3.0-1


on CLANG 10.0.0 and python 3.8.5

Ok with RTEMS 5.2 (and rtems6)

RTEMS Source Builder - Set Builder, 5 (1116c5f85fb5 modified)
 Command Line: ../source-builder/sb-set-builder --jobs=2 
--prefix=/Users/heinz/VE_RTEMS_RUN/rtems/5 5/rtems-arm
 Python: 3.8.5 (default, Sep  4 2020, 02:22:02) [Clang 10.0.0 ]
warning: exe: absolute exe found in path: (__install_info) /usr/bin/install-info
warning: exe: absolute exe found in path: (__makeinfo) /usr/bin/makeinfo
Build Set: 5/rtems-arm
Build Set: 5/rtems-autotools.bset
Build Set: 5/rtems-autotools-internal.bset
config: tools/rtems-autoconf-2.69-1.cfg
package: autoconf-2.69-x86_64-apple-darwin22.2.0-1
script:  1: #!/bin/sh


Danke Heinz

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

Re: Error in building rtems 5.3 tools via mingw

2023-03-29 Thread Giovanni Righi
Ok, also I forgot to say in the previous email that I'm using windows 11.

Il giorno mer 29 mar 2023 alle ore 10:42 Chris Johns  ha
scritto:

> On 29/3/2023 6:33 pm, Giovanni Righi wrote:
> > I tried again with the flag --jobs=1 on a clean build and I got the same
> error
> > message.
>
> Thanks
>
> > But this time it seems to happen on the second file. My idea is that with
> > parallel building it managed to build more files before getting the
> error, while
> > with only one job it's slower so it gets the error earlier.
>
> Yeap but we now know which is the exact file that is broken. That is
> helpful.
>
> I will add this to my list to take a look.
>
> Chris
>
> > Here's the tail of the log:
> >
> ___
> > + ./waf distclean configure --prefix=/c/opt/rtems/5.3
> > 'distclean' finished successfully (0.000s)
> > Setting top to   :
> > C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3
> > Setting out to   :
> >
> C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/build
> > Version  : 5.3 (5)
> > Checking for program 'python':
> C:/msys64/mingw64/bin/python.exe
> > Checking for python version >= 2.6.6 : 3.10.10
> > Checking for program 'python':
> C:/msys64/mingw64/bin/python.exe
> > Checking for program 'python2'   :
> C:\msys64\mingw64\bin/python2.exe
> > Checking for program 'python3'   :
> C:\msys64\mingw64\bin/python3.exe
> > Checking for 'gcc' (C compiler)  : C:\msys64\mingw64\bin/gcc.exe
> > Checking for 'g++' (C++ compiler): C:\msys64\mingw64\bin/g++.exe
> > Checking for header alloca.h : not found
> > Checking for header fcntl.h  : yes
> > Checking for header process.h: yes
> > Checking for header stdlib.h : yes
> > Checking for header string.h : yes
> > Checking for header strings.h: yes
> > Checking for header sys/file.h   : yes
> > Checking for header sys/stat.h   : yes
> > Checking for header sys/time.h   : yes
> > Checking for header sys/types.h  : yes
> > Checking for header sys/wait.h   : not found
> > Checking for header unistd.h : yes
> > Checking for header vfork.h  : not found
> > Checking for getrusage   : no
> > Checking for program 'm4': C:\msys64\usr\bin/m4.exe
> > Checking for header sys/wait.h   : not found
> > Checking for kill: no
> > Checking for 'gcc' (C compiler)  : C:\msys64\mingw64\bin/gcc.exe
> > Checking for 'g++' (C++ compiler): C:\msys64\mingw64\bin/g++.exe
> > Checking for 'gcc' (C compiler)  : C:\msys64\mingw64\bin/gcc.exe
> > Checking for strnlen : yes
> > Checking for 'g++' (C++ compiler): C:\msys64\mingw64\bin/g++.exe
> > Checking for fopen64 : no
> > Checking for stat64  : yes
> > Checking for 'gcc' (C compiler)  : C:\msys64\mingw64\bin/gcc.exe
> > Checking for 'g++' (C++ compiler): C:\msys64\mingw64\bin/g++.exe
> > Checking for library LLVM: not found
> > Checking for header zlib.h   : yes
> > Checking for library z   : yes
> > Checking for library ws2_32  : yes
> > Checking for compiler flags -std=c++14   : yes
> > 'configure' finished successfully (12.090s)
> > + ./waf
> > Waf: Entering directory
> >
> `C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/build'
> > [  1/258] Compiling rtemstoolkit/elftoolchain/libelf/libelf_convert.m4
> > Traceback (most recent call last):
> >   File "", line 55, in 
> >   File "", line 20, in run
> > [  2/258] Compiling rtemstoolkit/elftoolchain/libelf/libelf_fsize.m4
> > OSError: [Errno 22] Invalid argument
> > Waf: Leaving directory
> >
> `C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/build'
> > Build failed
> > Traceback (most recent call last):
> >   File
> >
> "C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py",
> line 181, in exec_command
> > ret,out,err=Utils.run_process(cmd,kw,cargs)
> >   File
> >
> "C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Utils.py",
> line 598, in run_process
> > return run_prefork_process(cmd,kwargs,cargs)
> >   File
> >
> "C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Utils.py",
> line 533, in run_prefork_process
> > proc.stdin.write(obj)
> > BrokenPipeError: [Errno 32] Broken pipe
> >
> > During handling of the above exception, another exception occurred:
> >
> > Traceback (most recent call las

Re: Error in building rtems 5.3 tools via mingw

2023-03-29 Thread Chris Johns
On 29/3/2023 6:33 pm, Giovanni Righi wrote:
> I tried again with the flag --jobs=1 on a clean build and I got the same error
> message.

Thanks

> But this time it seems to happen on the second file. My idea is that with
> parallel building it managed to build more files before getting the error, 
> while
> with only one job it's slower so it gets the error earlier.

Yeap but we now know which is the exact file that is broken. That is helpful.

I will add this to my list to take a look.

Chris

> Here's the tail of the log:
> ___
> + ./waf distclean configure --prefix=/c/opt/rtems/5.3
> 'distclean' finished successfully (0.000s)
> Setting top to                           :
> C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3
> Setting out to                           :
> C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/build
> Version                                  : 5.3 (5)
> Checking for program 'python'            : C:/msys64/mingw64/bin/python.exe
> Checking for python version >= 2.6.6     : 3.10.10
> Checking for program 'python'            : C:/msys64/mingw64/bin/python.exe
> Checking for program 'python2'           : C:\msys64\mingw64\bin/python2.exe
> Checking for program 'python3'           : C:\msys64\mingw64\bin/python3.exe
> Checking for 'gcc' (C compiler)          : C:\msys64\mingw64\bin/gcc.exe
> Checking for 'g++' (C++ compiler)        : C:\msys64\mingw64\bin/g++.exe
> Checking for header alloca.h             : not found
> Checking for header fcntl.h              : yes
> Checking for header process.h            : yes
> Checking for header stdlib.h             : yes
> Checking for header string.h             : yes
> Checking for header strings.h            : yes
> Checking for header sys/file.h           : yes
> Checking for header sys/stat.h           : yes
> Checking for header sys/time.h           : yes
> Checking for header sys/types.h          : yes
> Checking for header sys/wait.h           : not found
> Checking for header unistd.h             : yes
> Checking for header vfork.h              : not found
> Checking for getrusage                   : no
> Checking for program 'm4'                : C:\msys64\usr\bin/m4.exe
> Checking for header sys/wait.h           : not found
> Checking for kill                        : no
> Checking for 'gcc' (C compiler)          : C:\msys64\mingw64\bin/gcc.exe
> Checking for 'g++' (C++ compiler)        : C:\msys64\mingw64\bin/g++.exe
> Checking for 'gcc' (C compiler)          : C:\msys64\mingw64\bin/gcc.exe
> Checking for strnlen                     : yes
> Checking for 'g++' (C++ compiler)        : C:\msys64\mingw64\bin/g++.exe
> Checking for fopen64                     : no
> Checking for stat64                      : yes
> Checking for 'gcc' (C compiler)          : C:\msys64\mingw64\bin/gcc.exe
> Checking for 'g++' (C++ compiler)        : C:\msys64\mingw64\bin/g++.exe
> Checking for library LLVM                : not found
> Checking for header zlib.h               : yes
> Checking for library z                   : yes
> Checking for library ws2_32              : yes
> Checking for compiler flags -std=c++14   : yes
> 'configure' finished successfully (12.090s)
> + ./waf
> Waf: Entering directory
> `C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/build'
> [  1/258] Compiling rtemstoolkit/elftoolchain/libelf/libelf_convert.m4
> Traceback (most recent call last):
>   File "", line 55, in 
>   File "", line 20, in run
> [  2/258] Compiling rtemstoolkit/elftoolchain/libelf/libelf_fsize.m4
> OSError: [Errno 22] Invalid argument
> Waf: Leaving directory
> `C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/build'
> Build failed
> Traceback (most recent call last):
>   File
> "C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py",
>  line 181, in exec_command
>     ret,out,err=Utils.run_process(cmd,kw,cargs)
>   File
> "C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Utils.py",
>  line 598, in run_process
>     return run_prefork_process(cmd,kwargs,cargs)
>   File
> "C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Utils.py",
>  line 533, in run_prefork_process
>     proc.stdin.write(obj)
> BrokenPipeError: [Errno 32] Broken pipe
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File
> "C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Task.py",
>  line 180, in process
>     ret=self.run()
>   File "", line 14, in f
>   File
> "C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d25668

Re: Error in building rtems 5.3 tools via mingw

2023-03-29 Thread Giovanni Righi
I tried again with the flag --jobs=1 on a clean build and I got the same
error message.
But this time it seems to happen on the second file. My idea is that with
parallel building it managed to build more files before getting the error,
while with only one job it's slower so it gets the error earlier.
Here's the tail of the log:
___
+ ./waf distclean configure --prefix=/c/opt/rtems/5.3
'distclean' finished successfully (0.000s)
Setting top to   :
C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3
Setting out to   :
C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/build

Version  : 5.3 (5)
Checking for program 'python': C:/msys64/mingw64/bin/python.exe
Checking for python version >= 2.6.6 : 3.10.10
Checking for program 'python': C:/msys64/mingw64/bin/python.exe
Checking for program 'python2'   :
C:\msys64\mingw64\bin/python2.exe
Checking for program 'python3'   :
C:\msys64\mingw64\bin/python3.exe
Checking for 'gcc' (C compiler)  : C:\msys64\mingw64\bin/gcc.exe
Checking for 'g++' (C++ compiler): C:\msys64\mingw64\bin/g++.exe
Checking for header alloca.h : not found
Checking for header fcntl.h  : yes
Checking for header process.h: yes
Checking for header stdlib.h : yes
Checking for header string.h : yes
Checking for header strings.h: yes
Checking for header sys/file.h   : yes
Checking for header sys/stat.h   : yes
Checking for header sys/time.h   : yes
Checking for header sys/types.h  : yes
Checking for header sys/wait.h   : not found
Checking for header unistd.h : yes
Checking for header vfork.h  : not found
Checking for getrusage   : no
Checking for program 'm4': C:\msys64\usr\bin/m4.exe
Checking for header sys/wait.h   : not found
Checking for kill: no
Checking for 'gcc' (C compiler)  : C:\msys64\mingw64\bin/gcc.exe
Checking for 'g++' (C++ compiler): C:\msys64\mingw64\bin/g++.exe
Checking for 'gcc' (C compiler)  : C:\msys64\mingw64\bin/gcc.exe
Checking for strnlen : yes
Checking for 'g++' (C++ compiler): C:\msys64\mingw64\bin/g++.exe
Checking for fopen64 : no
Checking for stat64  : yes
Checking for 'gcc' (C compiler)  : C:\msys64\mingw64\bin/gcc.exe
Checking for 'g++' (C++ compiler): C:\msys64\mingw64\bin/g++.exe
Checking for library LLVM: not found
Checking for header zlib.h   : yes
Checking for library z   : yes
Checking for library ws2_32  : yes
Checking for compiler flags -std=c++14   : yes
'configure' finished successfully (12.090s)
+ ./waf
Waf: Entering directory
`C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/build'
[  1/258] Compiling rtemstoolkit/elftoolchain/libelf/libelf_convert.m4
Traceback (most recent call last):
  File "", line 55, in 
  File "", line 20, in run
[  2/258] Compiling rtemstoolkit/elftoolchain/libelf/libelf_fsize.m4
OSError: [Errno 22] Invalid argument
Waf: Leaving directory
`C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/build'
Build failed
Traceback (most recent call last):
  File
"C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py",
line 181, in exec_command
ret,out,err=Utils.run_process(cmd,kw,cargs)
  File
"C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Utils.py",
line 598, in run_process
return run_prefork_process(cmd,kwargs,cargs)
  File
"C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Utils.py",
line 533, in run_prefork_process
proc.stdin.write(obj)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File
"C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Task.py",
line 180, in process
ret=self.run()
  File "", line 14, in f
  File
"C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Task.py",
line 173, in exec_command
return self.generator.bld.exec_command(cmd,**kw)
  File
"C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py",
line 183, in exec_command
raise Errors.WafError('Execution failure: %s'%str(e),ex=e)
waflib.Errors.WafError: Execut