[Vm-dev] Issue 132 in cog: Build Fails on OpenBSD. ucontext is not available

Eliot Miranda eliot.miranda at gmail.com
Sun Oct 6 17:16:11 UTC 2013


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<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<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<https://code.google.com/hosting/settings>
>



-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20131006/47a76d16/attachment.htm


More information about the Vm-dev mailing list