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

cog at googlecode.com cog at googlecode.com
Sun Oct 6 14:37:29 UTC 2013


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


More information about the Vm-dev mailing list