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

Igor Stasenko siguctua at gmail.com
Mon Jul 4 04:04:46 UTC 2011

On 4 July 2011 04:55, Dimitry Golubovsky <golubovsky at gmail.com> wrote:
> 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
>      LIBS=-lpthread
> Then ran make

There are two build processes: using make and cmake. You mixed them.
generate.sh is part of cmake building process, but blessed branch
could contain outdated versions of configuration files.
I will update blessed soon, since build server using my branch for building vms.

Please look at Mariano's blog, he documeted well, how build works.

I never tried to use make process with blessed repository. Probably we
should remove it to avoid confusion.

> Everything compiled fine, but at the linking stage I got:
> 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?

Best regards,
Igor Stasenko AKA sig.

More information about the Vm-dev mailing list