[Vm-dev] Cannot build Cog from the "blessed" repo at Gitorious

Dimitry Golubovsky golubovsky at gmail.com
Mon Jul 4 01:55:27 UTC 2011


Hi,

I am trying to buid Cog from scratch.

I use a clone of the repo at https://gitorious.org/cogvm/blessed (I
cloned it on July 1st, after the last push was recorded, so my clone
is identical to the original).

I executed buildImage.sh in codegen-scripts, and then generate.sh in
the same location. The SLANG parts were fetched and sources generated.

I followed the instructions in
/src/cogvm/dmg-blessed/unixbuild/HowToBuild, configured the VM like
this (the first eonfig example in that file):

../../platforms/unix/config/configure --without-vm-display-fbdev \
      --without-npsqueak \
      CFLAGS="-g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG
-DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=
      LIBS=-lpthread

Then ran make

Everything compiled fine, but at the linking stage I got:

gcc -g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1
-DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0 -msse -DLSB_FIRST=1 -o
squeak disabledPlugins.o version.o -Wl,--export-dynamic  vm/vm.a
ADPCMCodecPlugin/ADPCMCodecPlugin.a
AsynchFilePlugin/AsynchFilePlugin.a B2DPlugin/B2DPlugin.a
BitBltPlugin/BitBltPlugin.a BMPReadWriterPlugin/BMPReadWriterPlugin.a
CroquetPlugin/CroquetPlugin.a ZipPlugin/ZipPlugin.a
DropPlugin/DropPlugin.a DSAPrims/DSAPrims.a FFTPlugin/FFTPlugin.a
FileCopyPlugin/FileCopyPlugin.a FilePlugin/FilePlugin.a
FloatArrayPlugin/FloatArrayPlugin.a FloatMathPlugin/FloatMathPlugin.a
IA32ABI/IA32ABI.a JoystickTabletPlugin/JoystickTabletPlugin.a
JPEGReaderPlugin/JPEGReaderPlugin.a
JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.a Klatt/Klatt.a
LargeIntegers/LargeIntegers.a Matrix2x3Plugin/Matrix2x3Plugin.a
MIDIPlugin/MIDIPlugin.a MiscPrimitivePlugin/MiscPrimitivePlugin.a
Mpeg3Plugin/Mpeg3Plugin.a RePlugin/RePlugin.a
SecurityPlugin/SecurityPlugin.a SerialPlugin/SerialPlugin.a
SocketPlugin/SocketPlugin.a SoundCodecPrims/SoundCodecPrims.a
SoundGenerationPlugin/SoundGenerationPlugin.a
SoundPlugin/SoundPlugin.a StarSqueakPlugin/StarSqueakPlugin.a
SurfacePlugin/SurfacePlugin.a -lutil -ldl -lpthread -lm -lnsl
-lpthread vm/vm.a -Wl,--rpath -Wl,/home/dima/bldcog//lib
vm/vm.a(sqVirtualMachine.o): In function `sqGetInterpreterProxy':
/home/dima/src/cogvm/dmg-blessed/platforms/Cross/vm/sqVirtualMachine.c:432:
undefined reference to `getStackPointer'
/home/dima/src/cogvm/dmg-blessed/platforms/Cross/vm/sqVirtualMachine.c:476:
undefined reference to `signalNoResume'
collect2: ld returned 1 exit status
make: *** [squeak] Error 1

I googled for this message; it seems to be already discussed as of
beginning of June 2011 e. g. in this thread.

http://answerpot.com/showthread.php?2626868-r2384+-+Various+reorganizations+to+support+the+Newspeak+VM.

Is this something I just have to wait to be fixed, or is there any
workaround, e. g. use a different ConfigurationOfCog?

Thanks.

-- 
Dimitry Golubovsky

Anywhere on the Web


More information about the Vm-dev mailing list