<br><br><div class="gmail_quote">On Fri, Apr 22, 2011 at 1:34 PM, Stefan Marr <span dir="ltr">&lt;<a href="mailto:squeak@stefan-marr.de">squeak@stefan-marr.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Mariano:<br>
<br>
Here some feedback to your blog posts, since, well, I had several issues with it.<br>
<br>
So I did:<br>
<br>
$ wget --no-check-certificate <a href="http://www.pharo-project.org/pharo-download/unstable-core" target="_blank">http://www.pharo-project.org/pharo-download/unstable-core</a><br>
<br>
which gets me: PharoCore-1.3-13159<br>
<br>
Then opening a workspace:<br>
<br>
-----<br>
Deprecation raiseWarning: false.<br>
 Gofer new<br>
 squeaksource: &#39;MetacelloRepository&#39;;<br>
 package: &#39;ConfigurationOfCog&#39;;<br>
 load.<br>
<br>
(Smalltalk at: #ConfigurationOfCog) project latestVersion load.<br>
---<br>
<br>
Bye the way there is a typo on your blog: #latestVersion was originally #la_s_testVersion<br>
<br></blockquote><div><br>First, thanks a lot for the feedback, is really appreaciated. <br>I&#39;ve just updated that typo. <br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Executing the code results in a &#39;MessageNotUnderstood: AnObsoleteAutoStart class&gt;&gt;addLauncherFirst:&#39;<br>
<br></blockquote><div><br>Yes. This is because thelastes unstable PharoCore was really *unstable*, and hence the problem. This is why in the first post (&quot;Building the VM from scratch using Git and CMakeVMMaker&quot;) I say explicitly which pharo image to use (to avoid problems like this one). <br>
Pharo guys want to be sure that Hudson can always buid the VM, and if it doesn&#39;t (like in this case), be able to detect it and fix it ASAP.<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Ok, just commenting that out and continuing, I run into the next obstacles: No class comments, </blockquote><div><br>There are class comment. Not in all classes, but there are. And of course, you are welcome to help also. Just ask access and commit.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">and your blog posts also do not tell me whether I can just use a plain CocoaIOSCogConfig or whether I have to chose between the JIT or Stack variant. (That might be obvious for you, but it is not)<br>

<br></blockquote><div><br>In fact, I have explained that several times. Take into account that my blog is a sequence of posts. So...just reading a single post may not be enough, like in this case. <br>I wrote it here: <a href="http://marianopeck.wordpress.com/2011/04/02/departure-vm-introduction/">http://marianopeck.wordpress.com/2011/04/02/departure-vm-introduction/</a>  <br>
under the section &quot;Cog VM and current status&quot;<br>and here <span id="sample-permalink"><a href="http://marianopeck.wordpress.com/2011/04/16/">http://marianopeck.wordpress.com/2011/04/16/</a><span id="editable-post-name" title="Click to edit this part of the permalink">buildin</span></span>g-the-vm-second-part/<br>
under thesection &quot;Available CogVMs&quot; and &quot;CMakeVMaker available configurations&quot;<br><br>what was not clear in particular ?<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Ok, next problem:<br>
<br>
You customize the following properties:<br>
<br>
resourcesDir:&#39;/Users/mariano/Pharo/vm/git/cogVM2/blessed/macbuild/resources&#39;;<br>
outputDir: &#39;/Users/mariano/binaries/results&#39;;<br>
<br>
but they do not seem to exist.<br></blockquote><div><br>That was an example just to show that you can customize them and set the directories to whatever place you want. <br>I&#39;ve added a comment. Anyway, using the &quot;default&quot; behavior (copying the image to a subdirectory of /blessed), you should have not that problem. <br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Ok, lets continue without them.<br>
<br>
Still undecided what I want, I go with CocoaIOSCogConfig:<br>
<br>
CocoaIOSCogStackConfig new<br>
 srcDir: &#39;/tmp/make-squeak-vm/squeak-src&#39;;<br>
 platformsDir: &#39;/tmp/make-squeak-vm/from_squeak&#39;;<br>
 buildDir: &#39;/tmp/make-squeak-vm/build&#39;;<br>
 generateSources;<br>
 generate.<br>
<br>
That fails with a very inappropriate error: primCreateDirectory: failed.<br>
<br></blockquote><div><br>I am not sure why that problem. But this is something expected. In order to customize the paths, you may have such problems. <br>Again, if you don&#39;t want to face such problems use the default behavior. And if you find a problem, and have a solution, please submit it. <br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
*sigh* lets see what&#39;s going on:<br>
&gt;  self primCreateDirectory: (self fullNameFor: localFileName) asVmPathName<br>
 inspecting &#39;(self fullNameFor: localFileName) asVmPathName&#39; reveals &#39;/${topDir}&#39; *sigh*<br>
<br>
Ok, what ever, I will probably just have to choose the StackConfig then...<br>
<br>
And that of course fails too... because the platform directory was not existing.<br></blockquote><div><br>You should point platformsDir: to the platforms directory of the &quot;platform code&quot;. That is, in git for example /blessed/platforms  or in svn the same /trunk/platforms. <br>
I&#39;ve just added this piece of text &quot;The &quot;platformsDir&quot; <em>must</em>  map with &quot;platforms&quot; directory that we
 downloaded with Git, it cannot be choosed randomly. The same with the 
&quot;resourcesDir&quot; (which in fact is only for Mac). The rest of the 
directories (src, build and output) are not created by VMMaker nor Git. 
They are just directories that I have created by my own and I want to 
use them instead of the default.&quot; <br><br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
But it fails without reasonable error message and I think it should not fail, because you say it is not actually used, and a quick test reveals it does not matter whether the directory is empty or the actual code is there since the generated code is identical.<br>

<br></blockquote><div><br>Sorry, I did not understand.<br><br>Conclusion for your last problems: use the default/recommended approach:  copy your image to a subdirectory where you downloaded git. And all paths will be set automatically. The only thing you have to do is XXXConf generateWithSources.<br>
And, if you want to use specific paths, then send a clear mail to the mailing lsit, with a way to reproduce it and hopefully someone will fix it.  <br><br>Cheers<br><br>Mariano<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
<br>
Hope that helps ironing out some of the rough edges.<br>
<br>
<br>
Best regards<br>
<div><div></div><div class="h5">Stefan<br>
<br>
<br>
--<br>
Stefan Marr<br>
Software Languages Lab<br>
Vrije Universiteit Brussel<br>
Pleinlaan 2 / B-1050 Brussels / Belgium<br>
<a href="http://soft.vub.ac.be/%7Esmarr" target="_blank">http://soft.vub.ac.be/~smarr</a><br>
Phone: <a href="tel:%2B32%202%20629%202974" value="+3226292974">+32 2 629 2974</a><br>
Fax:   <a href="tel:%2B32%202%20629%203525" value="+3226293525">+32 2 629 3525</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>