[Vm-dev] [commit] r2236 - OSCogVM source as per VMMaker-oscog.23. Take alloca from stddef.h; malloc.h is

Frank Shearar frank.shearar at angband.za.org
Fri Jul 16 16:47:03 UTC 2010


On 2010/07/16 17:22, commits at squeakvm.org wrote:
>
> Author: eliot
> Date: 2010-07-16 08:22:23 -0700 (Fri, 16 Jul 2010)
> New Revision: 2236
>
> Modified:
>     branches/Cog/image/VMMaker-Squeak4.1.changes
>     branches/Cog/image/VMMaker-Squeak4.1.image
> Log:
> OSCogVM source as per VMMaker-oscog.23.  Take alloca from stddef.h; malloc.h is
> an anachronism.  Safer long-running primitive method code.  FreeBSD-friendly
> mutex initialization in the unix heartbeat (I hope).

Thanks Eliot! I was trying to figure out how to do the legwork for you.

OK, with the new changes we find the next error. As usual, configure 
works just fine, and the error's when compiling:

gcc -g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 
-DNO_VM_PROFILE=1 -DCOGMTVM=0 -msse -DLSB_FIRST=1  -DHAVE_CONFIG_H 
-DSQUEAK_BUILTIN_PLUGIN  -I/usr/home/frank/temp/unixbuild/bld 
-I/usr/home/frank/temp/unixbuild/bld 
-I/usr/home/frank/temp/platforms/unix/vm 
-I/usr/home/frank/temp/platforms/Cross/vm -I/usr/home/frank/temp/src/vm 
-I/usr/home/frank/temp/platforms/Cross/plugins/FilePlugin   -c -o 
sqFilePluginBasicPrims.o 
/usr/home/frank/temp/platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c
/usr/home/frank/temp/platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c: 
In function 'sqFileAtEnd':
/usr/home/frank/temp/platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c:136: 
warning: dereferencing 'void *' pointer
/usr/home/frank/temp/platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c:136: 
error: request for member '_flags' in something not a structure or union
/usr/home/frank/temp/platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c: 
In function 'sqFileTruncate':
/usr/home/frank/temp/platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c:407: 
warning: dereferencing 'void *' pointer
/usr/home/frank/temp/platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c:407: 
error: request for member '_file' in something not a structure or union
*** Error code 1


More information about the Vm-dev mailing list