<html><head></head><body bgcolor="#FFFFFF"><div>Nope :( I never did find a way.</div><div><br>frank</div><div><br>On 08 Oct 2013, at 19:12, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><span></span></div></blockquote><blockquote type="cite"><div><div dir="ltr">Hang on. &nbsp;I don't think that's the problem. &nbsp;I *think* someone found out how to install a ucontext.h for FreeBSD. &nbsp; Is that the case?&nbsp;<div><br></div><div>(meant to post this yesterday; the draft has sat there, but it's still a valid question)</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Oct 6, 2013 at 10:16 AM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">OK, I'll fix this and make printing the registers unavailable on FreeBSD. &nbsp;But that means no profiler either :-(<br>
<div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Sun, Oct 6, 2013 at 7:37 AM,  <span dir="ltr">&lt;<a href="mailto:cog@googlecode.com" target="_blank">cog@googlecode.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Status: New<br>
Owner: ----<br>
Labels: Type-Defect Priority-Medium<br>
<br>
New issue 132 by <a href="mailto:riverdu...@gmail.com" target="_blank">riverdu...@gmail.com</a>: Build Fails on OpenBSD. ucontext is not available<br>
<a href="http://code.google.com/p/cog/issues/detail?id=132" target="_blank">http://code.google.com/p/cog/<u></u>issues/detail?id=132</a><br>
<br>
The user thread functions in &lt;ucontext.h&gt; are deprecated because they use a deprecated C feature.<br>
<br>
<a href="http://pubs.opengroup.org/onlinepubs/009695399/functions/makecontext.html" target="_blank">http://pubs.opengroup.org/<u></u>onlinepubs/009695399/<u></u>functions/makecontext.html</a><br>
<br>
The makecontext, getcontext, and setcontext functions were standardized in POSIX-1.2001 but then removed in POSIX-1.2008 with no replacement.<br>
<br>
Most systems provide them for backward compatibility, however OpenBSD does not.<br>
<br>
This leads to...<br>
<br>
gcc -g &nbsp;-pipe -DHAVE_CONFIG_H -DHAVE_MMAP -D_GNU_SOURCE -DDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=1 -I/usr/local/include -I/usr/include -rthread -DLSB_FIRST=1 &nbsp;-DHAVE_CONFIG_H &nbsp;-DSQUEAK_BUILTIN_PLUGIN &nbsp;-I/home/dusty/CogVM/unixbuild/<u></u>bld -I/home/dusty/CogVM/unixbuild/<u></u>bld -I/home/dusty/CogVM/platforms/<u></u>unix/vm -I/home/dusty/CogVM/platforms/<u></u>Cross/vm -I/home/dusty/CogVM/src/vm -I/home/dusty/CogVM/platforms/<u></u>Cross/vm -I/home/dusty/CogVM/platforms/<u></u>unix/vm -I/home/dusty/CogVM/src/vm &nbsp; -I/home/dusty/CogVM/platforms/<u></u>Cross/plugins/FilePlugin &nbsp;-I/home/dusty/CogVM/platforms/<u></u>unix/plugins/<u></u>B3DAcceleratorPlugin &nbsp;-I/home/dusty/CogVM/unixbuild/<u></u>bld -I/home/dusty/CogVM/unixbuild/<u></u>bld -I/home/dusty/CogVM/platforms/<u></u>unix/vm -I/home/dusty/CogVM/platforms/<u></u>Cross/vm -I/home/dusty/CogVM/src/vm -I/usr/X11R6/include &nbsp; -c -o sqUnixMain.o /home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c<br>


/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c:838:3: error: #error need to implement extracting pc from a ucontext_t on this system<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c: In function 'reportStackState':<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c:842: error: 'fp' undeclared (first use in this function)<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c:842: error: (Each undeclared identifier is reported only once<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c:842: error: for each function it appears in.)<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c:842: error: 'sp' undeclared (first use in this function)<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c: In function 'isCFramePointerInUse':<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c:2048: warning: passing argument 3 of '__sq_assert' discards qualifiers from pointer target type<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c: In function 'getRedzoneSize':<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c:2071: warning: assignment from incompatible pointer type<br>
*** Error 1 in vm (Makefile:273 'sqUnixMain.o')<br>
*** Error 1 in /home/dusty/CogVM/unixbuild/<u></u>bld (Makefile:406 'vm/vm.a')<span><font color="#888888"><br>
<br>
-- <br>
You received this message because this project is configured to send all issue notifications to this address.<br>
You may adjust your notification preferences at:<br>
<a href="https://code.google.com/hosting/settings" target="_blank">https://code.google.com/<u></u>hosting/settings</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>best,<div>Eliot</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div>
</div></blockquote></body></html>