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 |
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! -- Mariano http://marianopeck.wordpress.com _______________________________________________ VM-beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners |
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. Lucas.- _______________________________________________ VM-beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners |
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 |
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 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?
Excellent. Because it is *really* important that you download the exact version I say of everything hahhaaha :)
-- Mariano http://marianopeck.wordpress.com _______________________________________________ VM-beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners |
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]>
_______________________________________________ VM-beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners |
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 |
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 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 |
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. > :) > > Thanks! > > -- > Lucas.- -- Best regards, Igor Stasenko. _______________________________________________ VM-beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners |
Free forum by Nabble | Edit this page |