Cog VM on FreeBSD 8.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Cog VM on FreeBSD 8.1

Amir Ansari
 
Dear List

I'm trying to build Cog VM on FreeBSD 8.1, following the instructions at http://tech.groups.yahoo.com/group/squeak/message/157755

It's a fresh installation, nothing in /etc/make.conf

Here's the error:


"Makefile", line 270: warning: duplicate script for target "cogit.o" ignored
gcc -g -O2 -msse2 -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0
-DDEBUGVM=0 -msse -DLSB_FIRST=1 -DHAVE_CONFIG_H -DSQUEAK_BUILTIN_PLUGIN
-I/root/CogVM/unixbuild/bld -I/root/CogVM/unixbuild/bld
-I/root/CogVM/platforms/unix/vm -I/root/CogVM/platforms/Cross/vm
-I/root/CogVM/src/vm -I/root/CogVM/platforms/Cross/vm
-I/root/CogVM/platforms/unix/vm -I/root/CogVM/src/vm
-I/root/CogVM/platforms/Cross/plugins/FilePlugin
-I/root/CogVM/platforms/unix/plugins/B3DAcceleratorPlugin
-I/root/CogVM/unixbuild/bld -I/root/CogVM/unixbuild/bld
-I/root/CogVM/platforms/unix/vm -I/root/CogVM/platforms/Cross/vm
-I/root/CogVM/src/vm -I/usr/local/include -c -o gcc3x-cointerp.o
/root/CogVM/src/vm/gcc3x-cointerp.c
/root/CogVM/src/vm/gcc3x-cointerp.c:978: error: conflicting types for
'readImageFromFileHeapSizeStartingAt'
/root/CogVM/platforms/Cross/vm/sq.h:480: error: previous declaration of
'readImageFromFileHeapSizeStartingAt' was here
/root/CogVM/src/vm/gcc3x-cointerp.c:1340: warning: initialization from
incompatible pointer type
/root/CogVM/src/vm/gcc3x-cointerp.c:1471: warning: initialization from
incompatible pointer type
/root/CogVM/src/vm/gcc3x-cointerp.c: In function 'interpret':
/root/CogVM/src/vm/gcc3x-cointerp.c:1886: warning: ignoring asm-specifier for
non-static local variable 'currentBytecode'
/root/CogVM/src/vm/gcc3x-cointerp.c:1888: warning: ignoring asm-specifier for
non-static local variable 'localIP'
/root/CogVM/src/vm/gcc3x-cointerp.c:1890: warning: ignoring asm-specifier for
non-static local variable 'localSP'
/root/CogVM/src/vm/gcc3x-cointerp.c: In function 'addNewMethodToCache':
/root/CogVM/src/vm/gcc3x-cointerp.c:8733: warning: assignment from incompatible
pointer type
/root/CogVM/src/vm/gcc3x-cointerp.c:8751: warning: assignment from incompatible
pointer type
/root/CogVM/src/vm/gcc3x-cointerp.c: In function 'callbackEnter':
/root/CogVM/src/vm/gcc3x-cointerp.c:9488: warning: assignment discards
qualifiers from pointer target type
/root/CogVM/src/vm/gcc3x-cointerp.c:9489: warning: assignment discards
qualifiers from pointer target type
/root/CogVM/src/vm/gcc3x-cointerp.c: In function 'highBit':
/root/CogVM/src/vm/gcc3x-cointerp.c:16134: warning: left shift count >= width of
type
/root/CogVM/src/vm/gcc3x-cointerp.c:16135: warning: right shift count >= width
of type
/root/CogVM/src/vm/gcc3x-cointerp.c: In function 'primitiveGetLogDirectory':
/root/CogVM/src/vm/gcc3x-cointerp.c:28104: warning: assignment makes pointer
from integer without a cast
/root/CogVM/src/vm/gcc3x-cointerp.c: In function 'primitiveGetWindowLabel':
/root/CogVM/src/vm/gcc3x-cointerp.c:28223: warning: assignment makes pointer
from integer without a cast
/root/CogVM/src/vm/gcc3x-cointerp.c: At top level:
/root/CogVM/src/vm/gcc3x-cointerp.c:37962: error: conflicting types for
'readImageFromFileHeapSizeStartingAt'
/root/CogVM/platforms/Cross/vm/sq.h:480: error: previous declaration of
'readImageFromFileHeapSizeStartingAt' was here
*** Error code 1

Stop in /root/CogVM/unixbuild/bld/vm.
*** Error code 1

Stop in /root/CogVM/unixbuild/bld.


Anyone have any ideas?

Thanks,
Amir
Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on FreeBSD 8.1

johnmci

This is a collision between the older fork of Cog and some changes made to the Squeak VM allocate and read image made a few years
ago, until someone at Teleplace decides to revisit those patchs and ensure the sq.h and the image side extrusion match then not much will happen.

The change allows you to mmap the image file which is extraordinary useful for low memory sized platforms that properly support  mmap.

On 2010-12-06, at 12:02 PM, Amir Ansari wrote:

> readImageFromFileHeapSizeStartingAt

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================




Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on FreeBSD 8.1

Levente Uzonyi-2
In reply to this post by Amir Ansari
 
On Mon, 6 Dec 2010, Amir Ansari wrote:

>
> Dear List
>
> I'm trying to build Cog VM on FreeBSD 8.1, following the instructions at http://tech.groups.yahoo.com/group/squeak/message/157755
>
> It's a fresh installation, nothing in /etc/make.conf
>
> Here's the error:
>
>

snip

> /root/CogVM/src/vm/gcc3x-cointerp.c:37962: error: conflicting types for
> 'readImageFromFileHeapSizeStartingAt'
> /root/CogVM/platforms/Cross/vm/sq.h:480: error: previous declaration of
> 'readImageFromFileHeapSizeStartingAt' was here
> *** Error code 1
>
> Stop in /root/CogVM/unixbuild/bld/vm.
> *** Error code 1
>
> Stop in /root/CogVM/unixbuild/bld.
>
>
> Anyone have any ideas?

I simply added the following pragma to Interpreter's, CoInterpreter's and
StackInterpreter's #readImageFromFile:HeapSize:StartingAt: method.

<var: #desiredHeapSize type: 'usqInt'>

This solved the problem. :)

I also updated the workspace text, to make it cross platform. It's
available here: http://leves.web.elte.hu/squeak/Workspace.text .


Levente

>
> Thanks,
> Amir
>
Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on FreeBSD 8.1

Igor Stasenko
 
On 6 December 2010 20:51, Levente Uzonyi <[hidden email]> wrote:

>
> On Mon, 6 Dec 2010, Amir Ansari wrote:
>
>>
>> Dear List
>>
>> I'm trying to build Cog VM on FreeBSD 8.1, following the instructions at
>> http://tech.groups.yahoo.com/group/squeak/message/157755
>>
>> It's a fresh installation, nothing in /etc/make.conf
>>
>> Here's the error:
>>
>>
>
> snip
>
>> /root/CogVM/src/vm/gcc3x-cointerp.c:37962: error: conflicting types for
>> 'readImageFromFileHeapSizeStartingAt'
>> /root/CogVM/platforms/Cross/vm/sq.h:480: error: previous declaration of
>> 'readImageFromFileHeapSizeStartingAt' was here
>> *** Error code 1
>>
>> Stop in /root/CogVM/unixbuild/bld/vm.
>> *** Error code 1
>>
>> Stop in /root/CogVM/unixbuild/bld.
>>
>>
>> Anyone have any ideas?
>
> I simply added the following pragma to Interpreter's, CoInterpreter's and
> StackInterpreter's #readImageFromFile:HeapSize:StartingAt: method.
>
> <var: #desiredHeapSize type: 'usqInt'>
>
> This solved the problem. :)

yeah. that's what i did too in SqS/VMMaker/VMMaker-oscog-Igor.Stasenko.38.mcz


>
> I also updated the workspace text, to make it cross platform. It's available
> here: http://leves.web.elte.hu/squeak/Workspace.text .
>
>
> Levente
>
>>
>> Thanks,
>> Amir
>>
>



--
Best regards,
Igor Stasenko AKA sig.