<br><br><div class="gmail_quote">On Wed, Jul 14, 2010 at 10:22 AM, Chris Muller <span dir="ltr">&lt;<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I followed these instructions to the letter, and get the same result I<br>
got a few weeks ago.  I posted a question then, but no responses.  May<br>
I try again?<br></blockquote><div><br></div><div>Chris, I believe I replied suggesting you step though the dynamic loading code to get more information.</div><div>I think everything starts from loadModules in platforms/unix/vm/sqUnixMain.c.</div>
<div>I suggest you rerun the configure command to eliminate all optimization (including deleting any -fomit-frame-pointer) and then step from loadModules and see why you don&#39;t get to a functional dlopen call in platforms/unix/vm/sqUnixExternalPrims.c.</div>
<div><br></div><div>HTH</div><div>Eliot</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Everything seems to go just fine throughout these build instructions.<br>
For the final step, I put it in /usr/local/lib.<br>
<br>
    make install prefix=/usr/local/lib/squeak<br>
<br>
and I made sure /usr/local/lib/squeak exists before doing the make install.<br>
<br>
The make install appears to work fine, and I am able to see squeak -version:<br>
<br>
$ squeak -version<br>
3.9-7 #1 Wed Jul 14 12:07:56 CDT 2010 gcc 4.3.3<br>
Croquet Closure Cog VM [CoInterpreter VMMaker-oscog.20]<br>
Linux chrisT60p 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59<br>
UTC 2009 i686 GNU/Linux<br>
plugin path: /opt/4dst/thirdparty/squeak/lib/squeak/3.9-7/ [default:<br>
/opt/4dst/thirdparty/squeak/lib/squeak/3.9-7/]<br>
<br>
However, when I try to launch an image:<br>
<br>
  squeak my.image<br>
<br>
The image does not launch and I get the following:<br>
<br>
    could not find display driver vm-display-X11; either:<br>
      - check that /usr/local/lib/squeak/3.9-7//vm-display-X11.so<br>
exists, or<br>
      - use the &#39;-plugins &lt;path&gt;&#39; option to tell me where it is, or<br>
      - remove DISPLAY from your environment.<br>
<br>
notice the double-slash in reference to the plugins location.  Perhaps<br>
that&#39;s the problem, but what&#39;s the correct solution?<br>
<br>
Any advice is greatly appreciated..<br>
<font color="#888888"><br>
 - Chris<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On Tue, Jul 13, 2010 at 4:04 PM, Levente Uzonyi &lt;<a href="mailto:leves@elte.hu">leves@elte.hu</a>&gt; wrote:<br>
&gt; On Tue, 13 Jul 2010, Rob Withers wrote:<br>
&gt;<br>
&gt;&gt; Thanks Levente.  Unfortunately it did not work:<br>
&gt;&gt;<br>
&gt;&gt; ./lib/squeak/3.9-7/squeak: /lib/libc.so.6: version `GLIBC_2.11&#39; not found<br>
&gt;&gt; (required by ./lib/squeak/3.9-7/squeak)<br>
&gt;<br>
&gt; Seems like you have to build it yourself. Fortunately it&#39;s very easy, since<br>
&gt; Eliot commits the generated sources to the svn repo. So you can build a<br>
&gt; CogVM/StackVM without VMMaker. Here is how:<br>
&gt;<br>
&gt; &quot;How to build the Cog Croquet VM on Unix<br>
&gt; -------------------------------<br>
&gt; 1. Install the tools (gcc, X11-devel, etc (e.g. libpng, libX11 &amp; libxt<br>
&gt; source))<br>
&gt; 2. Check out the following sources from svn (if you haven&#39;t already - if<br>
&gt; you&#39;re<br>
&gt;   reading this in unixbuild its likely you&#39;ve already got the sources)<br>
&gt;     svn co <a href="http://www.squeakvm.org/svn/squeak/branches/Cog/platforms" target="_blank">http://www.squeakvm.org/svn/squeak/branches/Cog/platforms</a><br>
&gt;     svn co <a href="http://www.squeakvm.org/svn/squeak/branches/Cog/src" target="_blank">http://www.squeakvm.org/svn/squeak/branches/Cog/src</a><br>
&gt;     svn co <a href="http://www.squeakvm.org/svn/squeak/branches/Cog/unixbuild" target="_blank">http://www.squeakvm.org/svn/squeak/branches/Cog/unixbuild</a><br>
&gt; 3. Open a shell, cd into the unixbuild/bld directory and execute<br>
&gt;     ../../platforms/unix/config/configure CFLAGS=&quot;-g -O2 -msse2<br>
&gt; -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0&quot;<br>
&gt; LIBS=-lpthread<br>
&gt;     make install prefix=WhereYouWantTheVmToGo<br>
&gt; 4. At the end of it you&#39;ll get a new VM in the path provided via -prefix&quot;<br>
&gt;<br>
&gt;<br>
&gt; Levente<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Rob<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt; From: Levente Uzonyi &lt;<a href="mailto:leves@elte.hu">leves@elte.hu</a>&gt;<br>
&gt;&gt; To: The general-purpose Squeak developers list<br>
&gt;&gt; &lt;<a href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</a>&gt;<br>
&gt;&gt; Sent: Tue, July 13, 2010 3:21:43 PM<br>
&gt;&gt; Subject: Re: Cog on linux (was: Re: [squeak-dev] Re: UI lockup in Squeak<br>
&gt;&gt; 4.1)<br>
&gt;&gt;<br>
&gt;&gt; On Tue, 13 Jul 2010, Rob Withers wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; --------------------------------------------------<br>
&gt;&gt;&gt; From: &quot;Levente Uzonyi&quot; &lt;<a href="mailto:leves@elte.hu">leves@elte.hu</a>&gt;<br>
&gt;&gt;&gt; Sent: Tuesday, July 13, 2010 12:46 PM<br>
&gt;&gt;&gt; To: &quot;The general-purpose Squeak developers list&quot;<br>
&gt;&gt;&gt; &lt;<a href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</a>&gt;<br>
&gt;&gt;&gt; Subject: Cog on linux (was: Re: [squeak-dev] Re: UI lockup in Squeak 4.1)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Tue, 13 Jul 2010, Rob Withers wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; --------------------------------------------------<br>
&gt;&gt;&gt;&gt;&gt; From: &quot;Andreas Raab&quot; &lt;<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt; Sent: Tuesday, July 13, 2010 11:29 AM<br>
&gt;&gt;&gt;&gt;&gt; To: &quot;The general-purpose Squeak developers list&quot;<br>
&gt;&gt;&gt;&gt;&gt; &lt;<a href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt; Subject: [squeak-dev] Re: UI lockup in Squeak 4.1<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; On 7/13/2010 6:39 AM, Rob Withers wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; The low-space watcher is running, at least before the problem starts.<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; do eventually run out of memory, but the uninterruptable state<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; happens<br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt; before this.<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; In which case you want to do the following:<br>
&gt;&gt;&gt;&gt;&gt;&gt; * Launch your app and wait until it&#39;s in the &quot;growing state&quot;<br>
&gt;&gt;&gt;&gt;&gt;&gt; * Hit F2 and from the VM&#39;s preference menu choose &quot;Debug&quot; and then<br>
&gt;&gt;&gt;&gt;&gt;&gt; &quot;Print all processes&quot;<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; This will dump a list of all the call stacks of all processes. One of<br>
&gt;&gt;&gt;&gt;&gt;&gt; them is the culprit consuming memory and you&#39;ll probably be able to tell<br>
&gt;&gt;&gt;&gt;&gt;&gt; quickly from just looking at it (if not, you can email the output here but<br>
&gt;&gt;&gt;&gt;&gt;&gt; it typically takes a domain expert to understand what&#39;s going wrong).<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Thanks for this pointer, Andreas.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; This time it was a Cog VM which spasmed, which I use for my client<br>
&gt;&gt;&gt;&gt;&gt; (Squeak 4.1 for server for use with linux vm - I have no ability to compile<br>
&gt;&gt;&gt;&gt;&gt; a linux Cog vm:  would love if someone posted one that could be launched<br>
&gt;&gt;&gt;&gt;&gt; headless for my webhost).<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Cog works, but i think you&#39;re trying to use the -headless switch, which<br>
&gt;&gt;&gt;&gt; (is deprecated) and tells the vm to use the X11 display, but with no window.<br>
&gt;&gt;&gt;&gt; Servers usually don&#39;t have X11, so it won&#39;t work. You better use<br>
&gt;&gt;&gt;&gt; -vm-display-null (and -vm-sound-null). Try squeak --help for further useful<br>
&gt;&gt;&gt;&gt; options (like tuning Cog).<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I am trying to use the -headless switch.  Good to know it is deprecated.<br>
&gt;&gt;&gt;  So you happen to have a Cog for linux binary (version 17 - 20), which I<br>
&gt;&gt;&gt; could use?<br>
&gt;&gt;<br>
&gt;&gt; I have one, but I&#39;m not sure it will work on your server. You can find it<br>
&gt;&gt; here: <a href="http://leves.web.elte.hu/squeak/cog17.tar.gz" target="_blank">http://leves.web.elte.hu/squeak/cog17.tar.gz</a> . It&#39;s built on ubuntu<br>
&gt;&gt; 10.04 and is optimized for core2.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Levente<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt; Rob<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Levente<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; It started running at 100% and I did your F2 -&gt; Debug Options -&gt; Print<br>
&gt;&gt;&gt;&gt;&gt; all processes.  It started dumping a LOT to the Debug Console, then it<br>
&gt;&gt;&gt;&gt;&gt; froze, still at 100%, but no increase in memory now and it went (Not<br>
&gt;&gt;&gt;&gt;&gt; Responding) and greyed out the window.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Luckily, I was able to see enough of the stack that was causing<br>
&gt;&gt;&gt;&gt;&gt; problems. It is infinitely looping in this method:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; LanguageEnvironment class&gt;&gt;#localeID: localeID<br>
&gt;&gt;&gt;&gt;&gt; ^self knownEnvironments at: localeID ifAbsent: [self localeID:<br>
&gt;&gt;&gt;&gt;&gt; (LocaleID isoLanguage: &#39;en&#39;)]<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; This has nothing to do with my code, except I must be calling something<br>
&gt;&gt;&gt;&gt;&gt; that enters this loop.  It happens in both Cog (Windows) and Squeak4.1<br>
&gt;&gt;&gt;&gt;&gt; (Linux &lt;headless&gt; and Windows).<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Not sure how to fix this.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Rob<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Cheers,<br>
&gt;&gt;&gt;&gt;&gt;&gt;  - Andreas<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br>