<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 11, 2022 at 8:36 PM Ryan Long <<a href="mailto:ryan.long@oarcorp.com">ryan.long@oarcorp.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Cygwin has been unable to build the tools for awhile. This has been due <br>
to an array subscript being a char while building DTC. The maintainers <br>
didn't see an issue with the code itself, so it's going to go on being <br>
broken for awhile I guess.<br>
<br>
Joel recommended commented out the building of DTC through the RSB. <br>
After doing so, I'm running into the following error. I was building <br>
AArch64's tools. Disabling DTC and building with my Debian WSL instance <br>
built it just fine.<br>
<br>
<br>
[ 48/258] Compiling rtemstoolkit/elftoolchain/libelf/libelf_align.c<br>
../rtemstoolkit/elftoolchain/libelf/elf.c:34:35: error: ‘LIBELF_ARCH’ <br>
undeclared here (not in a function); did you mean ‘LIBELF_ERROR’?<br>
    34 |         .libelf_arch            = LIBELF_ARCH,<br>
       |                                   ^~~~~~~~~~~<br>
       |                                   LIBELF_ERROR<br>
../rtemstoolkit/elftoolchain/libelf/elf.c:35:35: error: <br>
‘LIBELF_BYTEORDER’ undeclared here (not in a function); did you mean <br>
‘LIBELF_ERROR’?<br>
    35 |         .libelf_byteorder       = LIBELF_BYTEORDER,<br>
       |                                   ^~~~~~~~~~~~~~~~<br>
       |                                   LIBELF_ERROR<br>
../rtemstoolkit/elftoolchain/libelf/elf.c:36:35: error: ‘LIBELF_CLASS’ <br>
undeclared here (not in a function)<br>
    36 |         .libelf_class           = LIBELF_CLASS,<br>
       |                                   ^~~~~~~~~~~~<br>
<br>
Waf: Leaving directory <br>
`/home/rtems-tester/rtems-cron-6/rtems-source-builder/rtems/build/rtems-tools-d0a65c72d1a170637258eb19f7d3e433be7c3c86-1/rtems-tools-d0a65c72d1a170637258eb19f7d3e433be7c3c86/build'<br>
<br>
<br>
Does anyone know a fix for this?<br></blockquote><div><br></div><div>rtemstoolkit/elftoolchain/libelf/_libelf_config.h has ifdef's for various host operating</div><div>systems and does not have one for Cygwin or MSYS. But it can't know the native ELF</div><div>details because the native format is not ELF:</div><div><br></div><div>$ file /bin/cat.exe<br>/bin/cat.exe: PE32+ executable (console) x86-64, for MS Windows<br></div><div><br></div><div>I'm not sure what to do about this. My first thought would be to add </div><div>Cygwin to the list like FreeBSD and see if that defines what you need.<br>or find the x86_64 Linux settings and use those for Cygwin to let it</div><div>compile.</div><div><br></div><div>I'm not sure why we need to know the native ELF details.</div><div><br></div><div>--joel</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Thanks,<br>
<br>
Ryan<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>