Error in building rtems 5.3 tools via mingw
Giovanni Righi
righiqwe at gmail.com
Thu Mar 23 11:48:39 UTC 2023
Ok so I tried what you suggested, I downloaded the rtems-tools-5.3 tar form
the server and I launched directly the waf script.
I got the same error, then I tried again and again I got the same error but
on a file following the one that caused the first error. So I launched the
waf again and it managed to compile all the files.
After this I did a waf clean and tried again and I got the same results,
error - error - compilation complete.
Note the two errors happened in the same files as the first "run".
So now I have the tools compiled but I don't know how to finish the build
of the toolchain, because if I launch the sb-set-builder again it cleans
everything and starts again so when it reaches the tools part it crashes
again because of the waf error.
I hope the explanation is clear and there is a solution for this problem.
I attach a file with parts of the three runs so you can see what's going on.
Il giorno mer 22 mar 2023 alle ore 19:01 Chris Johns <chrisj at rtems.org> ha
scritto:
> On 23/3/2023 1:16 am, Giovanni Righi wrote:
> > I opened the ticket as requested.
> > Now I'm having another issue, I re-runned the source-builder but now it
> stop
> > with the following error:
> > + ./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 "<string>", line 55, in <module>
> > File "<string>", line 20, in run
> > OSError: [Errno 22] Invalid argument
>
> That looks like waf in rtems-tools had an issue. It may need to be updated.
>
> Are you able to download the rtems-tools tar file from our servers and
> manually
> build that package?
>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20230323/e2bf34fc/attachment.htm>
-------------- next part --------------
FIRST RUN:
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
[ 2/258] Compiling rtemstoolkit/elftoolchain/libelf/libelf_fsize.m4
[ 3/258] Compiling rtemstoolkit/elftoolchain/libelf/libelf_msize.m4
[ 4/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_funcs.m4
[ 5/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_pro_funcs.m4
[ 6/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_pro_pubnames.m4
[ 7/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_pro_types.m4
[ 8/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_pro_vars.m4
Traceback (most recent call last):
File "<string>", line 55, in <module>
[ 9/258] Compiling Traceback (most recent call last):
Traceback (most recent call last):
File "<string>", line 55, in <module>
File "<string>", line 55, in <module>
Traceback (most recent call last):
File "<string>", line 55, in <module>
File "<string>", line 20, in run
File "<string>", line 20, in run
File "<string>", line 20, in run
OSError: [Errno 22] Invalid argument
OSError: [Errno 22] Invalid argument
File "<string>", line 20, in run
OSError: [Errno 22] Invalid argument
Traceback (most recent call last):
rtemstoolkit/elftoolchain/libdwarf/dwarf_pro_weaks.m4 File "<string>", line 55, in <module>
File "<string>", line 20, in run
OSError: [Errno 22] Invalid argument
OSError: [Errno 22] Invalid argument
Traceback (most recent call last):
File "<string>", line 55, in <module>
Traceback (most recent call last):
File "<string>", line 20, in run
File "<string>", line 55, in <module>
File "<string>", line 20, in run
OSError: [Errno 22] Invalid argument
OSError: [Errno 22] Invalid argument
[ 10/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_pubnames.m4
[ 11/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_pubtypes.m4
[ 12/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_types.m4
Traceback (most recent call last):
File "<string>", line 55, in <module>
File "<string>", line 20, in run
[ 13/258] Compiling OSError: [Errno 22] Invalid argument
rtemstoolkit/elftoolchain/libdwarf/dwarf_vars.m4
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 "<string>", line 27, 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)
SECOND RUN:
Waf: Entering directory `C:/opt/rtems/rtems-source-builder-5.3/rtems/build/rt51/rtems-tools-5.3/build'
[ 9/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_pro_weaks.m4
[ 10/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_pubnames.m4
[ 11/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_pubtypes.m4
[ 12/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_types.m4
[ 13/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_vars.m4
[ 14/258] Compiling rtemstoolkit/elftoolchain/libdwarf/dwarf_weaks.m4
[ 15/258] Compiling rtemstoolkit/elftoolchain/libelf/gelf_cap.c
[ 16/258] Compiling build/rtemstoolkit/libelf_fsize.c
Traceback (most recent call last):
File "<string>", line 55, in <module>
File "<string>", line 20, in run
[ 17/258] Compiling OSError: [Errno 22] Invalid argument
build/rtemstoolkit/libelf_msize.cTraceback (most recent call last):
File "<string>", line 55, in <module>
File "<string>", line 20, in run
[ 18/258] Compiling Traceback (most recent call last):
File "<string>", line 55, in <module>
Traceback (most recent call last):
File "<string>", line 55, in <module>
OSError: [Errno 22] Invalid argument
File "<string>", line 20, in run
Traceback (most recent call last):
rtemstoolkit/elftoolchain/libelf/elf_getbase.c File "<string>", line 20, in run
OSError: [Errno 22] Invalid argument
Traceback (most recent call last):
File "<string>", line 55, in <module>
File "<string>", line 20, in run
OSError: [Errno 22] Invalid argument
OSError: [Errno 22] Invalid argument
File "<string>", line 55, in <module>
File "<string>", line 20, in run
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
THIRD RUN:
[ 17/258] Compiling build/rtemstoolkit/libelf_msize.c
[ 18/258] Compiling rtemstoolkit/elftoolchain/libelf/elf_getbase.c
[ 19/258] Compiling rtemstoolkit/elftoolchain/libelf/elf_end.c
[ 20/258] Compiling rtemstoolkit/elftoolchain/libelf/elf_version.c
[ 21/258] Compiling rtemstoolkit/elftoolchain/libelf/elf_update.c
[ 22/258] Compiling rtemstoolkit/elftoolchain/libelf/libelf_xlate.c
[ 23/258] Compiling rtemstoolkit/elftoolchain/libelf/elf_strptr.c
[ 24/258] Compiling build/rtemstoolkit/libelf_convert.c
... to compilaton complete
More information about the users
mailing list