[Vm-dev] Cog FreeBSD patches

Frank Shearar frank.shearar at angband.za.org
Wed Mar 23 19:08:33 UTC 2011


Hi David,

Those are great instructions.

On my machine I can't make install because of the following error though:

/usr/home/frank/temp/cogvm-64/platforms/unix/vm/sqUnixMain.c:787:3: 
error: #error need to implement extracting pc from a ucontext_t on this 
system
/usr/home/frank/temp/cogvm-64/platforms/unix/vm/sqUnixMain.c: In 
function 'reportStackState':
/usr/home/frank/temp/cogvm-64/platforms/unix/vm/sqUnixMain.c:791: error: 
'fp' undeclared (first use in this function)
/usr/home/frank/temp/cogvm-64/platforms/unix/vm/sqUnixMain.c:791: error: 
(Each undeclared identifier is reported only once
/usr/home/frank/temp/cogvm-64/platforms/unix/vm/sqUnixMain.c:791: error: 
for each function it appears in.)
/usr/home/frank/temp/cogvm-64/platforms/unix/vm/sqUnixMain.c:791: error: 
'sp' undeclared (first use in this function)
/usr/home/frank/temp/cogvm-64/platforms/unix/vm/sqUnixMain.c: In 
function 'main':
/usr/home/frank/temp/cogvm-64/platforms/unix/vm/sqUnixMain.c:1718: 
warning: assignment from incompatible pointer type
/usr/home/frank/temp/cogvm-64/platforms/unix/vm/sqUnixMain.c:1723: 
warning: assignment from incompatible pointer type
*** Error code 1

Stop in /usr/home/frank/temp/cogvm-64/unixbuild/bld/vm.
*** Error code 1

Stop in /usr/home/frank/temp/cogvm-64/unixbuild/bld.

frank

On 2011/03/23 17:55, David Graham wrote:
>
> Hi Igor,
> A cog vm binary is located at /usr/home/hudson/cogvm/bin/squeak. I also set the SQUEAKVM var.
>
> I'm a very recent convert to smalltalk (about a month now), but I'll look into the package you reference.  I've been building the traditional way following the instructions in unixbuild/HowToBuild.  BTW, I'm still working on build issues (got the UUID plugin compiling this morning, now looking at sound).
>
> Hi Frank,
> The vm I have uploaded at http://www.unthinkable.org/dl/ might work for you, otherwise cogvm r2373 currently builds on 32bit FreeBSD with the following:
>
> #Install the subversion-freebsd port/package
>
> mkdir cogsrc
> cd cd cogsrc
>
> svn co http://squeakvm.org/svn/squeak/branches/Cog/platforms
> svn co http://squeakvm.org/svn/squeak/branches/Cog/src
> svn co http://squeakvm.org/svn/squeak/branches/Cog/unixbuild
>
> cd unixbuild/bld
>
> # No ports/packages are needed for a minimal headless install:
> ../../platforms/unix/config/configure CFLAGS="-g -O2 -msse2 -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DNOEXECINFO -DDEBUGVM=0" LIBS=-pthread --without-x --without-gl --without-npsqueak
>
> # If you have a desktop system with X installed:
> ../../platforms/unix/config/configure CFLAGS="-g -O2 -msse2 -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DNOEXECINFO -DDEBUGVM=0" LIBS=-pthread --without-npsqueak
>
> make install prefix=$HOME/cogvm
>
>
> On Mar 23, 2011, at 11:57 AM, Igor Stasenko wrote:
>
>> On 23 March 2011 17:48, Frank Shearar<frank.shearar at angband.za.org>  wrote:
>>>
>>> Oh, OK - I thought the slaves were precisely for building the VMs!
>>>
>>> I don't have a VM running on the machine at all at the moment.
>>>
>>> What do I need to do to get one running?
>>>
>>
>> Follow instructions here:
>> http://code.google.com/p/cog/wiki/CMakeVMMaker
>>
>> Download this tarball:
>> https://pharo-ic.lille.inria.fr/hudson/view/Cog/job/Stack%20VM%20Unix/lastSuccessfulBuild/artifact/StackInterpreterUnixConfig-sources.tar.gz
>>
>> And then replace build directory contents with attached  .zip file
>>
>> then
>> cd build
>> cmake .
>> make
>>
>> and in
>> build/results
>> you will have StackVM and its modules.
>>
>>
>>
>>> frank
>>>
>>> On 2011/03/23 16:30, Igor Stasenko wrote:
>>>>
>>>> Oh.. forgot to say,
>>>> i need a running VM there to use it for generating stuff before build.
>>>>
>>>> Actually i could generate everything at one of our hosts, and then at
>>>> FreeBSD slave just run cmake / make
>>>> But right now it works like that :)
>>>>
>>>> So, please provide me a full path to existing VM installed in your
>>>> system(s),
>>>> like
>>>> /usr/bin/squeak etc.
>>>> Or set environment var SQUEAKVM for hudson user.
>>>>
>>>>
>>>>
>>>> On 23 March 2011 17:27, Igor Stasenko<siguctua at gmail.com>   wrote:
>>>>>
>>>>> I configured both slaves,
>>>>>
>>>>> and David's is up and running now.
>>>>>
>>>>> https://pharo-ic.lille.inria.fr/hudson/computer/cogvm.unthinkable.org%20%28FreeBSD%29/
>>>>>
>>>>> Frank's one seems like down?
>>>>> ssh says that connection refused on port 22.
>>>>> https://pharo-ic.lille.inria.fr/hudson/computer/FreeBSD-7%20slave/
>>>>>
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Igor Stasenko AKA sig.
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko AKA sig.
>> <build.zip>
>
>
>



More information about the Vm-dev mailing list