[Vm-dev] problem building latest cog.v3 on linux

djm1329 at san.rr.com djm1329 at san.rr.com
Thu Oct 2 17:10:24 UTC 2014


Trying to build the latest squeak.cog.v3 on Ubuntu 12.04 (gcc 4.6.3), I encountered the following problems:

1. Due to the compile flag -Werror in platforms/Cross/unix/vm-display-fbdev/Makefile.in, vm-display-fbdev does not compile. Removing -Werror allows the build to complete.

gcc -m32 -g -O2 -DNDEBUG -DDEBUGVM=0 -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DCOGMTVM=0 -DLSB_FIRST=1 -g -O2 -DNDEBUG -DDEBUGVM=0 -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DCOGMTVM=0 -DLSB_FIRST=1 -Wall -Werror -Wno-unknown-pragmas -DHAVE_CONFIG_H -I/home/dmcphers/Cog/build.linux32x86/squeak.cog.v3/build -I/home/dmcphers/Cog/build.linux32x86/squeak.cog.v3/build -I/home/dmcphers/Cog/platforms/unix/vm -I/home/dmcphers/Cog/platforms/Cross/vm -I/home/dmcphers/Cog/src/vm -I/home/dmcphers/Cog/build.linux32x86/squeak.cog.v3/build -I/home/dmcphers/Cog/build.linux32x86/squeak.cog.v3/build -I/home/dmcphers/Cog/platforms/unix/vm -I/home/dmcphers/Cog/platforms/Cross/vm -I/home/dmcphers/Cog/src/vm -I/home/dmcphers/Cog/platforms/Cross/plugins/FilePlugin -I/home/dmcphers/Cog/platforms/Cross/plugins/B3DAcceleratorPlugin -I/home/dmcphers/Cog/platforms/unix/plugins/B3DAcceleratorPlugin -c /home/dmcphers/Cog/platforms/unix/vm-display-fbdev/sqUnixFBDev.c  -fPIC -DPIC -DPIC -o sqUnixFBDev.o
In file included from /home/dmcphers/Cog/platforms/Cross/vm/sq.h:20:0,
                 from /home/dmcphers/Cog/platforms/unix/vm-display-fbdev/sqUnixFBDev.c:43:
/home/dmcphers/Cog/platforms/Cross/vm/sqVirtualMachine.h:297:0: error: "DisownVMLockOutFullGC" redefined [-Werror]
/home/dmcphers/Cog/src/vm/interp.h:38:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make[1]: *** [sqUnixFBDev.lo] Error 1
make: *** [vm-display-fbdev.la] Error 2

2. The regular VM coglinuxht fails to run (it just hangs), however the debug vm seems to run ok. May be due to compiler optimization level?

Thanks,
Doug



More information about the Vm-dev mailing list