Problems while compiling CogVM

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

Problems while compiling CogVM

Lucas Mat
Hi!
I'm with David trying to compile the vm (just added to the mailinglist, he forwarded me previous mails).
What I did:

cfg := CogUnixNoGLConfig new.
cfg internalPlugins: (cfg internalPlugins difference: #(
KlattSynthesizerPlugin Mpeg3Plugin)).
cfg generate.

and the make: make VERBOSE=1 2>&1 > build.log

the log is attached.

Thanks!

--
Lucas.-

_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners

build.log (418K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problems while compiling CogVM

Mariano Martinez Peck
Hi Lucas. Could you finally solve it?  if not, can you tell use the version of the package CMakeVMMaker and VMMaker that you are using? and ConfigurationOfCog? and the git version of "blessed"?   because maybe there is something out of sync.

Igor, any idea from the log?

cheers

On Mon, Jun 11, 2012 at 7:20 PM, Lucas Mat <[hidden email]> wrote:
Hi!
I'm with David trying to compile the vm (just added to the mailinglist, he forwarded me previous mails).
What I did:

cfg := CogUnixNoGLConfig new.
cfg internalPlugins: (cfg internalPlugins difference: #(
KlattSynthesizerPlugin Mpeg3Plugin)).
cfg generate.

and the make: make VERBOSE=1 2>&1 > build.log

the log is attached.

Thanks!

--
Lucas.-

_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners




--
Mariano
http://marianopeck.wordpress.com


_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Reply | Threaded
Open this post in threaded view
|

Re: Problems while compiling CogVM

Lucas Mat
I could compile on my 32bits Linux by adding some parameters (-lm -ldl -lpthread) by hand at the end of: /build/CMakeFiles/CogVM.dir/link.txt
after running cmake.

Those were also added through code:

    CogUnixConfig >> setExtraTargetProperties: maker

maker setTargetProperties: 'LINK_FLAGS "-lm -ldl -lpthread -m32"'.
        ...

This adds the parameters at the start of the command on link.txt (/usr/bin/gcc -lm -ldl ...), but for some reason, it does not work. I have to add those manually at the end of the command.

At first I was using CogUnixNoGLConfig and got the same error that Guillermo points out here: http://forum.world.st/Error-while-compiling-td4290532.html

With CogUnixConfig seems to work fine :) (after installing the libs mentioned on the guide).

As for the versions of CMakeVMMaker, VMMaker, ConfigurationOfCog and blessed, should be those from the guide (http://marianopeck.wordpress.com/2011/04/10/building-the-vm-from-scratch-using-git-and-cmakevmmaker/)

The code is still on my workspace:

Gofer new
squeaksource: 'MetacelloRepository';
package: 'ConfigurationOfCog';
load.
((Smalltalk at: #ConfigurationOfCog) project version: '1.5') load.

Gofer new
squeaksource: 'VMMaker';
package: 'CMakeVMMaker';
version: 'CMakeVMMaker-MarianoMartinezPeck.83';
load.





On Wed, Jun 13, 2012 at 5:20 AM, Mariano Martinez Peck <[hidden email]> wrote:
Hi Lucas. Could you finally solve it?  if not, can you tell use the version of the package CMakeVMMaker and VMMaker that you are using? and ConfigurationOfCog? and the git version of "blessed"?   because maybe there is something out of sync.

Igor, any idea from the log?

cheers

On Mon, Jun 11, 2012 at 7:20 PM, Lucas Mat <[hidden email]> wrote:
Hi!
I'm with David trying to compile the vm (just added to the mailinglist, he forwarded me previous mails).
What I did:

cfg := CogUnixNoGLConfig new.
cfg internalPlugins: (cfg internalPlugins difference: #(
KlattSynthesizerPlugin Mpeg3Plugin)).
cfg generate.

and the make: make VERBOSE=1 2>&1 > build.log

the log is attached.

Thanks!

--
Lucas.-

_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners




--
Mariano
http://marianopeck.wordpress.com




--
Lucas.-

_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Reply | Threaded
Open this post in threaded view
|

Re: Problems while compiling CogVM

Igor Stasenko
Hi,Lucas,

CogUnixNoGLConfig were rather an example how to modify existing config
by subclassing..
Not much care were taken to keep up to date and coherent to the
changes in superclass(es).

It is easy to fix it, so if you want to use it, fixing it would be a
good exercise for you :)

On 13 June 2012 20:52, Lucas Mat <[hidden email]> wrote:

> I could compile on my 32bits Linux by adding some parameters (-lm -ldl
> -lpthread) by hand at the end of: /build/CMakeFiles/CogVM.dir/link.txt
> after running cmake.
>
> Those were also added through code:
>
>     CogUnixConfig >> setExtraTargetProperties: maker
>
> maker setTargetProperties: 'LINK_FLAGS "-lm -ldl -lpthread -m32"'.
>         ...
>
> This adds the parameters at the start of the command on link.txt
> (/usr/bin/gcc -lm -ldl ...), but for some reason, it does not work. I have
> to add those manually at the end of the command.
>
> At first I was using CogUnixNoGLConfig and got the same error that Guillermo
> points out here: http://forum.world.st/Error-while-compiling-td4290532.html
>
> With CogUnixConfig seems to work fine :) (after installing the libs
> mentioned on the guide).
>
> As for the versions of CMakeVMMaker, VMMaker, ConfigurationOfCog and
> blessed, should be those from the guide
> (http://marianopeck.wordpress.com/2011/04/10/building-the-vm-from-scratch-using-git-and-cmakevmmaker/)
>
> The code is still on my workspace:
>
> Gofer new
> squeaksource: 'MetacelloRepository';
> package: 'ConfigurationOfCog';
> load.
> ((Smalltalk at: #ConfigurationOfCog) project version: '1.5') load.
>
> Gofer new
> squeaksource: 'VMMaker';
> package: 'CMakeVMMaker';
> version: 'CMakeVMMaker-MarianoMartinezPeck.83';
> load.
>
>
>
>
>
> On Wed, Jun 13, 2012 at 5:20 AM, Mariano Martinez Peck
> <[hidden email]> wrote:
>>
>> Hi Lucas. Could you finally solve it?  if not, can you tell use the
>> version of the package CMakeVMMaker and VMMaker that you are using? and
>> ConfigurationOfCog? and the git version of "blessed"?   because maybe there
>> is something out of sync.
>>
>> Igor, any idea from the log?
>>
>> cheers
>>
>> On Mon, Jun 11, 2012 at 7:20 PM, Lucas Mat <[hidden email]> wrote:
>>>
>>> Hi!
>>> I'm with David trying to compile the vm (just added to the mailinglist,
>>> he forwarded me previous mails).
>>> What I did:
>>>
>>> cfg := CogUnixNoGLConfig new.
>>> cfg internalPlugins: (cfg internalPlugins difference: #(
>>> KlattSynthesizerPlugin Mpeg3Plugin)).
>>> cfg generate.
>>>
>>> and the make: make VERBOSE=1 2>&1 > build.log
>>>
>>> the log is attached.
>>>
>>> Thanks!
>>>
>>> --
>>> Lucas.-
>>>
>>> _______________________________________________
>>> VM-beginners mailing list
>>> [hidden email]
>>> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
>>>
>>
>>
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>
>
>
> --
> Lucas.-
>
> _______________________________________________
> VM-beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
>



--
Best regards,
Igor Stasenko.
_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Reply | Threaded
Open this post in threaded view
|

Re: Problems while compiling CogVM

Mariano Martinez Peck
In reply to this post by Lucas Mat


On Wed, Jun 13, 2012 at 8:52 PM, Lucas Mat <[hidden email]> wrote:
I could compile on my 32bits Linux by adding some parameters (-lm -ldl -lpthread) by hand at the end of: /build/CMakeFiles/CogVM.dir/link.txt
after running cmake.

Those were also added through code:

    CogUnixConfig >> setExtraTargetProperties: maker

maker setTargetProperties: 'LINK_FLAGS "-lm -ldl -lpthread -m32"'.
        ...

This adds the parameters at the start of the command on link.txt (/usr/bin/gcc -lm -ldl ...), but for some reason, it does not work. I have to add those manually at the end of the command.

At first I was using CogUnixNoGLConfig and got the same error that Guillermo points out here: http://forum.world.st/Error-while-compiling-td4290532.html

With CogUnixConfig seems to work fine :) (after installing the libs mentioned on the guide).


Hi Lucas. There is something I didn't understand. That error you had (/usr/bin/gcc -lm -ldl ... ) was only with the CogUnixNoGLConfig ?
I mean, if you use
CogUnixConfig then it directly works and you don't need to change anything?

 
As for the versions of CMakeVMMaker, VMMaker, ConfigurationOfCog and blessed, should be those from the guide (http://marianopeck.wordpress.com/2011/04/10/building-the-vm-from-scratch-using-git-and-cmakevmmaker/)


Excellent. Because it is *really* important that you download the exact version I say of everything hahhaaha :)

 
The code is still on my workspace:

Gofer new
squeaksource: 'MetacelloRepository';
package: 'ConfigurationOfCog';
load.
((Smalltalk at: #ConfigurationOfCog) project version: '1.5') load.

Gofer new
squeaksource: 'VMMaker';
package: 'CMakeVMMaker';
version: 'CMakeVMMaker-MarianoMartinezPeck.83';
load.





On Wed, Jun 13, 2012 at 5:20 AM, Mariano Martinez Peck <[hidden email]> wrote:
Hi Lucas. Could you finally solve it?  if not, can you tell use the version of the package CMakeVMMaker and VMMaker that you are using? and ConfigurationOfCog? and the git version of "blessed"?   because maybe there is something out of sync.

Igor, any idea from the log?

cheers

On Mon, Jun 11, 2012 at 7:20 PM, Lucas Mat <[hidden email]> wrote:
Hi!
I'm with David trying to compile the vm (just added to the mailinglist, he forwarded me previous mails).
What I did:

cfg := CogUnixNoGLConfig new.
cfg internalPlugins: (cfg internalPlugins difference: #(
KlattSynthesizerPlugin Mpeg3Plugin)).
cfg generate.

and the make: make VERBOSE=1 2>&1 > build.log

the log is attached.

Thanks!

--
Lucas.-

_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners




--
Mariano
http://marianopeck.wordpress.com




--
Lucas.-



--
Mariano
http://marianopeck.wordpress.com


_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Reply | Threaded
Open this post in threaded view
|

Re: Problems while compiling CogVM

David Leonhardt
Hi.
I´m answering instead of Lucas, as we are working together.

The problem was with both, CogUnixNoGLConfig and CogUnixConfig.


Thank you very much.



2012/6/13 Mariano Martinez Peck <[hidden email]>


On Wed, Jun 13, 2012 at 8:52 PM, Lucas Mat <[hidden email]> wrote:
I could compile on my 32bits Linux by adding some parameters (-lm -ldl -lpthread) by hand at the end of: /build/CMakeFiles/CogVM.dir/link.txt
after running cmake.

Those were also added through code:

    CogUnixConfig >> setExtraTargetProperties: maker

maker setTargetProperties: 'LINK_FLAGS "-lm -ldl -lpthread -m32"'.
        ...

This adds the parameters at the start of the command on link.txt (/usr/bin/gcc -lm -ldl ...), but for some reason, it does not work. I have to add those manually at the end of the command.

At first I was using CogUnixNoGLConfig and got the same error that Guillermo points out here: http://forum.world.st/Error-while-compiling-td4290532.html

With CogUnixConfig seems to work fine :) (after installing the libs mentioned on the guide).


Hi Lucas. There is something I didn't understand. That error you had (/usr/bin/gcc -lm -ldl ... ) was only with the CogUnixNoGLConfig ?
I mean, if you use
CogUnixConfig then it directly works and you don't need to change anything?

 
As for the versions of CMakeVMMaker, VMMaker, ConfigurationOfCog and blessed, should be those from the guide (http://marianopeck.wordpress.com/2011/04/10/building-the-vm-from-scratch-using-git-and-cmakevmmaker/)


Excellent. Because it is *really* important that you download the exact version I say of everything hahhaaha :)

 
The code is still on my workspace:

Gofer new
squeaksource: 'MetacelloRepository';
package: 'ConfigurationOfCog';
load.
((Smalltalk at: #ConfigurationOfCog) project version: '1.5') load.

Gofer new
squeaksource: 'VMMaker';
package: 'CMakeVMMaker';
version: 'CMakeVMMaker-MarianoMartinezPeck.83';
load.





On Wed, Jun 13, 2012 at 5:20 AM, Mariano Martinez Peck <[hidden email]> wrote:
Hi Lucas. Could you finally solve it?  if not, can you tell use the version of the package CMakeVMMaker and VMMaker that you are using? and ConfigurationOfCog? and the git version of "blessed"?   because maybe there is something out of sync.

Igor, any idea from the log?

cheers

On Mon, Jun 11, 2012 at 7:20 PM, Lucas Mat <[hidden email]> wrote:
Hi!
I'm with David trying to compile the vm (just added to the mailinglist, he forwarded me previous mails).
What I did:

cfg := CogUnixNoGLConfig new.
cfg internalPlugins: (cfg internalPlugins difference: #(
KlattSynthesizerPlugin Mpeg3Plugin)).
cfg generate.

and the make: make VERBOSE=1 2>&1 > build.log

the log is attached.

Thanks!

--
Lucas.-

_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners




--
Mariano
http://marianopeck.wordpress.com




--
Lucas.-



--
Mariano
http://marianopeck.wordpress.com


_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners



_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Reply | Threaded
Open this post in threaded view
|

Re: Problems while compiling CogVM

Igor Stasenko
Disregard my previous mail. I thought the problem in NoGL config only.

i checked the debug log.. i don't see any errors there.
seems like you forgot to redirect stderr output.

On 13 June 2012 22:35, David Leonhardt <[hidden email]> wrote:
> Hi.
> I´m answering instead of Lucas, as we are working together.
>
> The problem was with both, CogUnixNoGLConfig and CogUnixConfig.
>
I still don't know what version(s) of configs you using.
The most recent version of CogUnixConfig code don't looks like what you pasted..
It looks like following:

setExtraTargetProperties: maker

        maker setTargetProperties: 'LINK_FLAGS "-m32"'.
               
        maker puts: 'set_source_files_properties( ${srcVMDir}/cogit.c PROPERTIES
                COMPILE_FLAGS "-O1 -fno-omit-frame-pointer -momit-leaf-frame-pointer
-mno-rtd -mno-accumulate-outgoing-args")'.
               
       
        maker
                cmd: 'set_source_files_properties'
                params: ' ${targetPlatform}/vm/sqUnixHeartbeat.c PROPERTIES
                COMPILE_FLAGS "-O1 -fno-omit-frame-pointer -mno-rtd
-mno-accumulate-outgoing-args"'.
                                               
        super setExtraTargetProperties: maker.

>
> Thank you very much.
>
>
>
> 2012/6/13 Mariano Martinez Peck <[hidden email]>
>>
>>
>>
>> On Wed, Jun 13, 2012 at 8:52 PM, Lucas Mat <[hidden email]> wrote:
>>>
>>> I could compile on my 32bits Linux by adding some parameters (-lm -ldl
>>> -lpthread) by hand at the end of: /build/CMakeFiles/CogVM.dir/link.txt
>>> after running cmake.
>>>
>>> Those were also added through code:
>>>
>>>     CogUnixConfig >> setExtraTargetProperties: maker
>>>
>>> maker setTargetProperties: 'LINK_FLAGS "-lm -ldl -lpthread -m32"'.
>>>         ...
>>>
>>> This adds the parameters at the start of the command on link.txt
>>> (/usr/bin/gcc -lm -ldl ...), but for some reason, it does not work. I have
>>> to add those manually at the end of the command.
>>>
>>> At first I was using CogUnixNoGLConfig and got the same error that
>>> Guillermo points out
>>> here: http://forum.world.st/Error-while-compiling-td4290532.html
>>>
>>> With CogUnixConfig seems to work fine :) (after installing the libs
>>> mentioned on the guide).
>>>
>>
>> Hi Lucas. There is something I didn't understand. That error you had
>> (/usr/bin/gcc -lm -ldl ... ) was only with the CogUnixNoGLConfig ?
>> I mean, if you use CogUnixConfig then it directly works and you don't need
>> to change anything?
>>
>>
>>>
>>> As for the versions of CMakeVMMaker, VMMaker, ConfigurationOfCog and
>>> blessed, should be those from the guide
>>> (http://marianopeck.wordpress.com/2011/04/10/building-the-vm-from-scratch-using-git-and-cmakevmmaker/)
>>>
>>
>> Excellent. Because it is *really* important that you download the exact
>> version I say of everything hahhaaha :)
>>
>>
>>>
>>> The code is still on my workspace:
>>>
>>> Gofer new
>>> squeaksource: 'MetacelloRepository';
>>> package: 'ConfigurationOfCog';
>>> load.
>>> ((Smalltalk at: #ConfigurationOfCog) project version: '1.5') load.
>>>
>>> Gofer new
>>> squeaksource: 'VMMaker';
>>> package: 'CMakeVMMaker';
>>> version: 'CMakeVMMaker-MarianoMartinezPeck.83';
>>> load.
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Jun 13, 2012 at 5:20 AM, Mariano Martinez Peck
>>> <[hidden email]> wrote:
>>>>
>>>> Hi Lucas. Could you finally solve it?  if not, can you tell use the
>>>> version of the package CMakeVMMaker and VMMaker that you are using? and
>>>> ConfigurationOfCog? and the git version of "blessed"?   because maybe there
>>>> is something out of sync.
>>>>
>>>> Igor, any idea from the log?
>>>>
>>>> cheers
>>>>
>>>> On Mon, Jun 11, 2012 at 7:20 PM, Lucas Mat <[hidden email]> wrote:
>>>>>
>>>>> Hi!
>>>>> I'm with David trying to compile the vm (just added to the mailinglist,
>>>>> he forwarded me previous mails).
>>>>> What I did:
>>>>>
>>>>> cfg := CogUnixNoGLConfig new.
>>>>> cfg internalPlugins: (cfg internalPlugins difference: #(
>>>>> KlattSynthesizerPlugin Mpeg3Plugin)).
>>>>> cfg generate.
>>>>>
>>>>> and the make: make VERBOSE=1 2>&1 > build.log
>>>>>
>>>>> the log is attached.
>>>>>
>>>>> Thanks!
>>>>>
>>>>> --
>>>>> Lucas.-
>>>>>
>>>>> _______________________________________________
>>>>> VM-beginners mailing list
>>>>> [hidden email]
>>>>> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Mariano
>>>> http://marianopeck.wordpress.com
>>>>
>>>
>>>
>>>
>>> --
>>> Lucas.-
>>
>>
>>
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>>
>> _______________________________________________
>> VM-beginners mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
>>
>
>
> _______________________________________________
> VM-beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
>



--
Best regards,
Igor Stasenko.
_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Reply | Threaded
Open this post in threaded view
|

Re: Problems while compiling CogVM

Lucas Mat
Sorry my mail was a bit confusing.

The errors were caused by references to undefined functions (like sqrt, cos, pthread_kill), for both configs CogUnixNoGLConfig and CogUnixConfig.
I was able to fix it and compile the VM by manually adding the parameters "-lm -ldl -lpthread" at the end of the link.txt. But only worked with CogUnixConfig (the NoGL config throws "redefinition of ‘struct glRenderer’" error).

Before that, I tried to add those flags through code, in the method:

CogUnixConfig >> setExtraTargetProperties: maker

but did't work.

Just to clarify, it works as long as I add those parameters in the link.txt. :)

Thanks!

--
Lucas.-

_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Reply | Threaded
Open this post in threaded view
|

Re: Problems while compiling CogVM

Igor Stasenko
On 14 June 2012 03:07, Lucas Mat <[hidden email]> wrote:

> Sorry my mail was a bit confusing.
>
> The errors were caused by references to undefined functions (like sqrt, cos,
> pthread_kill), for both configs CogUnixNoGLConfig and CogUnixConfig.
> I was able to fix it and compile the VM by manually adding the parameters
> "-lm -ldl -lpthread" at the end of the link.txt. But only worked with
> CogUnixConfig (the NoGL config throws "redefinition of ‘struct glRenderer’"
> error).
>
> Before that, I tried to add those flags through code, in the method:
>
> CogUnixConfig >> setExtraTargetProperties: maker
>
> but did't work.
>
> Just to clarify, it works as long as I add those parameters in the link.txt.
> :)
>
this is strange.. no manual fixing should be required.

> Thanks!
>
> --
> Lucas.-



--
Best regards,
Igor Stasenko.
_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners