Skip to content

Fix windows build with MSYS2

Gedare Bloom requested to merge gedare/rtems-tools:fix_windows into main

Summary

Building rtems-tools on MSYS2 was broken in a few ways. The wscript uses redirection of stdout which did not work directly as written. Also, msys2/mingw64 does not provide definitions for gid_t and uid_t which leads to compile errors in libelf.

I have fixed these issues although I'm open to suggestions if there is a better way to deal with the missing typedefs rather than what I did with a custom sys/types.h imported into the rtemstoolkit includes for MSYS2 builds.

I did not find any open Issue numbers for these problems.

Someone needs to confirm that Cygwin build still works with this MR.

Merge request reports