I fixed both of those now, but to no avail. The build still fails. But looking at the error it's interesting to note that "do_yield_thread" does exist, but "do_yield_thread_reload" does not. From what I can figure out, this "_reload" function is generated by asmgcroot. My OSX build is defaulting to shadowstack. I switched all builds to use shadowstack and the build error goes away. So I guess that was the issue. 

Timothy

On Tue, Jan 20, 2015 at 8:05 AM, Armin Rigo <arigo@tunes.org> wrote:
Re-hi,

On 20 January 2015 at 16:04, Armin Rigo <arigo@tunes.org> wrote:
> Maybe related: there is a copy mistake in after_external_call().  It
> should not call the get/set_saved_errno() functions.

Also, did you mean "_cleanup_()" instead of "__cleanup__()"?


Armin



--
“One of the main causes of the fall of the Roman Empire was that–lacking zero–they had no way to indicate successful termination of their C programs.”
(Robert Firth)