On 19/08/2012 1.51, Mike Frysinger wrote: > On Tuesday 26 June 2012 05:29:29 Timon ter Braak wrote: >> I am trying to build a gccgo (go language) cross compiler targetting an >> ARM system. Go uses the context control routines for coorperative >> multithreading. uClibc however does not implement them, so I am trying >> to port the functions to uClibc. >> >> The routines are available in glibc and eglibc, and for other >> architectures [1]. My port builds correctly, but segfaults while running. >> >> I noticed that (for example) the getcontext routine is quite different >> from the setjmp routine shipped with uClibc. Can anybody give me some >> pointers in what should be altered? >> >> A patch of my attempt is attached. > > you'll need to make them depend on UCLIBC_SUSV3_LEGACY as these functions > have > been removed from the latest POSIX spec and shouldn't be enabled/built by > default > -mike > >
I have also a patch set for SH4 since time (never upstreamed). I will consider to rebase and post a patch. I do need to use UCLIBC_SUSV3_LEGACY as Mike suggested. carmelo > > _______________________________________________ > uClibc mailing list > uClibc@uclibc.org > http://lists.busybox.net/mailman/listinfo/uclibc > _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc