https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113143
Joel Sherrill <joel at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joel at gcc dot gnu.org --- Comment #13 from Joel Sherrill <joel at gcc dot gnu.org> --- RTEMS also had support for Go a long time ago -- it was a GSoC 2010 project. It worked until the dependency on <ucontext.h> was added. RTEMS has tracked the lack of <ucontext.h> needed for Go for 7 years (https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/2832). It was likely broken for a while before one of us filed the ticket. We use newlib and looking at the source Cygwin has its own <ucontext.h>. My msys2 install has that version of the file in /usr/include. RTEMS does not have <ucontext.h>. The ticket we have encourages porting the implementation from *BSD but that will only address a handful of the 18 architectures we currently support. I agree it is obsolete per POSIX and not universally supported. I also give Ian the benefit of doubt that there is no adequate replacement -- certainly not in POSIX. That leaves the solution of having an alternative in Go or an implementation that is easy to drop into OSes other than Linux or *BSD. Looks like neither RTEMS nor Haiku has seen someone step up as a volunteer in the long time this has been an issue.