[Vm-dev] Issue 132 in cog: Build Fails on OpenBSD. ucontext is
not available
Frank Shearar
frank.shearar at gmail.com
Wed Oct 9 07:26:03 UTC 2013
Nope :( I never did find a way.
frank
On 08 Oct 2013, at 19:12, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> Hang on. I don't think that's the problem. I *think* someone found out how to install a ucontext.h for FreeBSD. Is that the case?
>
> (meant to post this yesterday; the draft has sat there, but it's still a valid question)
>
>
> On Sun, Oct 6, 2013 at 10:16 AM, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> OK, I'll fix this and make printing the registers unavailable on FreeBSD. But that means no profiler either :-(
>
>
> On Sun, Oct 6, 2013 at 7:37 AM, <cog at googlecode.com> wrote:
>
> Status: New
> Owner: ----
> Labels: Type-Defect Priority-Medium
>
> New issue 132 by riverdu... at gmail.com: Build Fails on OpenBSD. ucontext is not available
> http://code.google.com/p/cog/issues/detail?id=132
>
> The user thread functions in <ucontext.h> are deprecated because they use a deprecated C feature.
>
> http://pubs.opengroup.org/onlinepubs/009695399/functions/makecontext.html
>
> The makecontext, getcontext, and setcontext functions were standardized in POSIX-1.2001 but then removed in POSIX-1.2008 with no replacement.
>
> Most systems provide them for backward compatibility, however OpenBSD does not.
>
> This leads to...
>
> 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/bld -I/home/dusty/CogVM/unixbuild/bld -I/home/dusty/CogVM/platforms/unix/vm -I/home/dusty/CogVM/platforms/Cross/vm -I/home/dusty/CogVM/src/vm -I/home/dusty/CogVM/platforms/Cross/vm -I/home/dusty/CogVM/platforms/unix/vm -I/home/dusty/CogVM/src/vm -I/home/dusty/CogVM/platforms/Cross/plugins/FilePlugin -I/home/dusty/CogVM/platforms/unix/plugins/B3DAcceleratorPlugin -I/home/dusty/CogVM/unixbuild/bld -I/home/dusty/CogVM/unixbuild/bld -I/home/dusty/CogVM/platforms/unix/vm -I/home/dusty/CogVM/platforms/Cross/vm -I/home/dusty/CogVM/src/vm -I/usr/X11R6/include -c -o sqUnixMain.o /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c
> /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c:838:3: error: #error need to implement extracting pc from a ucontext_t on this system
> /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c: In function 'reportStackState':
> /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c:842: error: 'fp' undeclared (first use in this function)
> /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c:842: error: (Each undeclared identifier is reported only once
> /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c:842: error: for each function it appears in.)
> /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c:842: error: 'sp' undeclared (first use in this function)
> /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c: In function 'isCFramePointerInUse':
> /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c:2048: warning: passing argument 3 of '__sq_assert' discards qualifiers from pointer target type
> /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c: In function 'getRedzoneSize':
> /home/dusty/CogVM/platforms/unix/vm/sqUnixMain.c:2071: warning: assignment from incompatible pointer type
> *** Error 1 in vm (Makefile:273 'sqUnixMain.o')
> *** Error 1 in /home/dusty/CogVM/unixbuild/bld (Makefile:406 'vm/vm.a')
>
> --
> You received this message because this project is configured to send all issue notifications to this address.
> You may adjust your notification preferences at:
> https://code.google.com/hosting/settings
>
>
>
> --
> best,
> Eliot
>
>
>
> --
> best,
> Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20131009/3402f8e7/attachment.htm
More information about the Vm-dev
mailing list