<div dir="ltr">OK, I&#39;ll fix this and make printing the registers unavailable on FreeBSD.  But that means no profiler either :-(<br><div class="gmail_extra"><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  -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  -DHAVE_CONFIG_H  -DSQUEAK_BUILTIN_PLUGIN  -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   -I/home/dusty/CogVM/platforms/<u></u>Cross/plugins/FilePlugin  -I/home/dusty/CogVM/platforms/<u></u>unix/plugins/<u></u>B3DAcceleratorPlugin  -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   -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 &#39;reportStackState&#39;:<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c:842: error: &#39;fp&#39; 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: &#39;sp&#39; undeclared (first use in this function)<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c: In function &#39;isCFramePointerInUse&#39;:<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c:2048: warning: passing argument 3 of &#39;__sq_assert&#39; discards qualifiers from pointer target type<br>
/home/dusty/CogVM/platforms/<u></u>unix/vm/sqUnixMain.c: In function &#39;getRedzoneSize&#39;:<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 &#39;sqUnixMain.o&#39;)<br>
*** Error 1 in /home/dusty/CogVM/unixbuild/<u></u>bld (Makefile:406 &#39;vm/vm.a&#39;)<span class="HOEnZb"><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>-- <br>best,<div>Eliot</div>
</div></div>