[squeak-dev] Can not load Aliens FFI in Squeak 4.1

David T. Lewis lewis at mail.msen.com
Thu May 6 11:14:45 UTC 2010


On Thu, May 06, 2010 at 12:49:50PM +0400, Dmitry Matveev wrote:
> 
> 2010/5/6 Igor Stasenko <siguctua at gmail.com>
> 
> > On 6 May 2010 00:25, David T. Lewis <lewis at mail.msen.com> wrote:
> > > On Wed, May 05, 2010 at 01:38:48PM -0700, Eliot Miranda wrote:
> > >> On Wed, May 5, 2010 at 1:12 PM, Dmitry Matveev <dmm1989 at gmail.com>
> > wrote:
> > >> >
> > >> > I have not found it in my system (I use the Squeak vm from the Debian
> > >> > Unstable repository).
> > >> > I've downloaded the Squeak vm for Linux from the official site and
> > >> > even have not found this plugin in that archive.
> > >> >
> > >> > Where I can obtain it for the i686 GNU/Linux system (or for Windows as
> > >> > a last resort)?
> > >> > Building from the source is also accepted.
> > >> >
> > >>
> > >>  http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins/IA32ABI
> > >
> > > FWIW, I can confirm that the plugin builds cleanly on the latest Subversion
> > > and VMMaker versions, although I cannot confirm whether the resulting plugin
> > > works correctly (presumably yes, but I have not tried it).
> > >
> > Except from Win32.
> > On Win32 it doesn't builds cleanly. The platform-side sources still
> > need to be fixed. I were able to build it after manually patching 3-4
> > places (see other thread dedicated to it few days ago).
> > And image-side code can't be loaded cleanly on 4.1 images.
> >
> > > Background: http://bugs.squeak.org/view.php?id=7475
> > >
> >
> 
> It seems I have a Bad Karma.
> 
> I've downloaded the 4.0.3.2202 source tarball from the squeakvm.org; I've
> built it successfully but I did not found the IA32ABI plugin :(
> 
> The directory Cross/plugins/IA32ABI exists and I see the source code there,
> but it seems that CMake did not build it since there's no appropriate
> CMakeFile entries for this plugin.
> 
> How can I integrate the IA32ABI plugin right into the build process?

No bad karma, but I think you will get better results if you start using
the very latest versions of the platform source code and VMMaker for
source code generation.

You can get the most up to date platform sources like this:

$ svn co http://squeakvm.org/svn/squeak/trunk squeak-svn-source

Use VMMaker loaded from SqueakSource, and do "VMMaker updateFromServer"
to make sure it is up to date.

Do not use the source code in platforms/unix/src/ because this is a
saved copy of sources generated from VMMaker at some time in the past.
Instead, use VMMaker to generate your own sources.

Do this for some tips on running configure:

$ ../platforms/unix/cmake/configure --help

And be sure to use the --CFLAGS=<flags> option to point to your own
sources (the sources that you generated from VMMaker).

Welcome to the bleeding edge :)

Dave




More information about the Squeak-dev mailing list