<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" 
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT size=2 face=Arial>Eliot,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I am on 8 of these puppies.&nbsp; I'll try -m32 in 
the CFLAGS and let you know....after my doc appt.&nbsp;&nbsp; Rob</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>processor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
7<BR>vendor_id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : GenuineIntel<BR>cpu 
family&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
6<BR>model&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
15<BR>model name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : Intel(R) Xeon(R) 
CPU&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; E5335&nbsp; @ 
2.00GHz<BR>stepping&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 7<BR>cpu 
MHz&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 2000.252<BR>cache 
size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 4096 KB<BR>physical 
id&nbsp;&nbsp;&nbsp;&nbsp; : 
1<BR>siblings&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 4<BR>core 
id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 3<BR>cpu 
cores&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
4<BR>apicid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 7<BR>initial 
apicid&nbsp; : 
7<BR>fpu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
: yes<BR>fpu_exception&nbsp;&nbsp; : yes<BR>cpuid level&nbsp;&nbsp;&nbsp;&nbsp; 

10<BR>wp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
: yes<BR>flags&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : fpu 
vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts 
acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs 
bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx tm2 ssse3 cx16 xtpr pdcm 
dca lahf_lm tpr_shadow<BR>bogomips&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
3999.45<BR>clflush size&nbsp;&nbsp;&nbsp; : 64<BR>cache_alignment : 
64<BR>address sizes&nbsp;&nbsp; : 36 bits physical, 48 bits virtual<BR>power 
management:<BR></FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=eliot.miranda@gmail.com 
href="mailto:eliot.miranda@gmail.com">Eliot Miranda</A> </DIV>
<DIV><B>Sent:</B> Thursday, July 15, 2010 2:52 PM</DIV>
<DIV><B>To:</B> <A title=vm-dev@lists.squeakfoundation.org 
href="mailto:vm-dev@lists.squeakfoundation.org">Squeak Virtual Machine 
Development Discussion</A> </DIV>
<DIV><B>Subject:</B> Re: [Vm-dev] Cog on linux</DIV></DIV></DIV>
<DIV><BR></DIV>
<P>
<HR>

<P></P><BR><BR>
<DIV class=gmail_quote>On Thu, Jul 15, 2010 at 5:57 AM, Rob Withers <SPAN 
dir=ltr>&lt;<A 
href="mailto:reefedjib@yahoo.com">reefedjib@yahoo.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote><BR>Linux version 2.6.33-5.19.BHsmp (<A 
  href="mailto:kernel@bluehost.com" target=_blank>kernel@bluehost.com</A>) (gcc 
  version 4.1.2 2008070 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 (Red Hat 4.1.2-48))<BR><BR>I have 
  attached the error from make 
  install...<BR><BR>/home1/vawhigso/public_html/squeakelib/Cog/platforms/unix/vm/sqUnixHeartbeat.c:161:3: 
  error: #error "no high res clock defined"<BR></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>If you look at the code the error is pointing you at:</DIV>
<DIV><BR></DIV>
<DIV><FONT class=Apple-style-span face="'comic sans ms', sans-serif">#if 
defined(__GNUC__) &amp;&amp; ( defined(i386) || defined(__i386) || 
defined(__i386__) &nbsp;\</FONT></DIV>
<DIV><FONT class=Apple-style-span 
face="'comic sans ms', sans-serif">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;|| defined(i486) || defined(__i486) || defined (__i486__) \</FONT></DIV>
<DIV><FONT class=Apple-style-span 
face="'comic sans ms', sans-serif">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;|| defined(intel) || defined(x86) || defined(i86pc) )</FONT></DIV>
<DIV><FONT class=Apple-style-span 
face="'comic sans ms', sans-serif">&nbsp;&nbsp; &nbsp;__asm__ __volatile__ 
("rdtsc" : "=A"(value));</FONT></DIV>
<DIV><FONT class=Apple-style-span 
face="'comic sans ms', sans-serif">#else</FONT></DIV>
<DIV><FONT class=Apple-style-span face="'comic sans ms', sans-serif"># error "no 
high res clock defined"</FONT></DIV>
<DIV><FONT class=Apple-style-span 
face="'comic sans ms', sans-serif">#endif</FONT></DIV>
<DIV><BR></DIV>
<DIV>you'll see the system expects an x86. &nbsp;Are you on an x86-64? &nbsp;If 
so you need to specify something like -m32 in the CFLAGS and/or supply a flag 
with te same semantics to configure.</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>HTH</DIV>
<DIV>Eliot</DIV>
<DIV><BR></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote><BR>Rob<BR><BR><BR><BR>--------------------------------------------------<BR>From: 
  "Frank Shearar" &lt;<A href="mailto:frank.shearar@angband.za.org" 
  target=_blank>frank.shearar@angband.za.org</A>&gt;<BR>Sent: Thursday, July 15, 
  2010 8:30 AM<BR>To: &lt;<A href="mailto:vm-dev@lists.squeakfoundation.org" 
  target=_blank>vm-dev@lists.squeakfoundation.org</A>&gt;<BR>Subject: Cog on 
  FreeBSD (Re: [Vm-dev] Re: [squeak-dev] Re: Cog on linux)<BR><BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote><BR></BLOCKQUOTE><BR><BR><BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>On 2010/07/14 23:29, Levente Uzonyi wrote:<BR>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
    class=gmail_quote><BR>On Wed, 14 Jul 2010, Frank Shearar wrote:<BR><BR>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>On 2010/07/13 23:04, Levente Uzonyi wrote:<BR>
        <BLOCKQUOTE 
        style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
        class=gmail_quote>On Tue, 13 Jul 2010, Rob Withers wrote:<BR><BR>
          <BLOCKQUOTE 
          style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
          class=gmail_quote>Thanks Levente. Unfortunately it did not 
            work:<BR><BR>./lib/squeak/3.9-7/squeak: /lib/libc.so.6: version 
            `GLIBC_2.11' not<BR>found (required by 
          ./lib/squeak/3.9-7/squeak)<BR></BLOCKQUOTE><BR>Seems like you have to 
          build it yourself. Fortunately it's very easy,<BR>since Eliot commits 
          the generated sources to the svn repo. So you can<BR>build a 
          CogVM/StackVM without VMMaker. Here is how:<BR><BR>"How to build the 
          Cog Croquet VM on Unix<BR>-------------------------------<BR>1. 
          Install the tools (gcc, X11-devel, etc (e.g. libpng, libX11 &amp; 
          libxt<BR>source))<BR>2. Check out the following sources from svn (if 
          you haven't already - if<BR>you're<BR>reading this in unixbuild its 
          likely you've already got the sources)<BR>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>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>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>3. 
          Open a shell, cd into the unixbuild/bld directory and 
          execute<BR>../../platforms/unix/config/configure CFLAGS="-g -O2 
          -msse2<BR>-D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 
          -DNO_VM_PROFILE=1<BR>-DCOGMTVM=0" LIBS=-lpthread<BR>make install 
          prefix=WhereYouWantTheVmToGo<BR>4. At the end of it you'll get a new 
          VM in the path provided via<BR>-prefix"<BR></BLOCKQUOTE><BR>Are there 
        any additional requirements like gcc version, for instance?<BR><BR>I ask 
        because I get errors on the above instructions, on FreeBSD 
        6.4,<BR>running gcc 3.4.6. I can attach configure's output and whatnot, 
        if<BR>you're interested.<BR></BLOCKQUOTE><BR>If configure failed, then 
      please attach the output and continue this<BR>thread on the vm-dev 
      list.<BR></BLOCKQUOTE><BR>I didn't expect the instructions to work, since 
    FreeBSD isn't Linux. So<BR>having said that, I've attached the output from 
    configure (which looks<BR>fine, to my untrained eye) and the output from 
    make install (which<BR>generates errors).<BR><BR>That first error:<BR><BR>In 
    file included from 
    /usr/home/frank/temp/src/vm/gcc3x-cointerp.c:21:<BR>/usr/include/malloc.h:3:2: 
    error: #error "&lt;malloc.h&gt; has been replaced<BR>by 
    &lt;stdlib.h&gt;"<BR><BR>is probably the culprit, I 
    suppose?<BR><BR>frank<BR><BR>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
    class=gmail_quote><BR><BR>Levente<BR><BR>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote><BR>frank<BR><BR>
        <BLOCKQUOTE 
        style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
        class=gmail_quote>Levente<BR><BR>
          <BLOCKQUOTE 
          style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
          class=gmail_quote><BR>Rob<BR><BR><BR><BR>________________________________<BR>From: 
            Levente Uzonyi &lt;<A href="mailto:leves@elte.hu" 
            target=_blank>leves@elte.hu</A>&gt;<BR>To: The general-purpose 
            Squeak developers list<BR>&lt;<A 
            href="mailto:squeak-dev@lists.squeakfoundation.org" 
            target=_blank>squeak-dev@lists.squeakfoundation.org</A>&gt;<BR>Sent: 
            Tue, July 13, 2010 3:21:43 PM<BR>Subject: Re: Cog on linux (was: Re: 
            [squeak-dev] Re: UI lockup in<BR>Squeak 4.1)<BR><BR>On Tue, 13 Jul 
            2010, Rob Withers wrote:<BR><BR>
            <BLOCKQUOTE 
            style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
            class=gmail_quote>--------------------------------------------------<BR>From: 
              "Levente Uzonyi" &lt;<A href="mailto:leves@elte.hu" 
              target=_blank>leves@elte.hu</A>&gt;<BR>Sent: Tuesday, July 13, 
              2010 12:46 PM<BR>To: "The general-purpose Squeak developers 
              list"<BR>&lt;<A 
              href="mailto:squeak-dev@lists.squeakfoundation.org" 
              target=_blank>squeak-dev@lists.squeakfoundation.org</A>&gt;<BR>Subject: 
              Cog on linux (was: Re: [squeak-dev] Re: UI lockup in 
              Squeak<BR>4.1)<BR><BR>
              <BLOCKQUOTE 
              style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
              class=gmail_quote>On Tue, 13 Jul 2010, Rob Withers 
wrote:<BR><BR>
                <BLOCKQUOTE 
                style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
                class=gmail_quote><BR>--------------------------------------------------<BR>From: 
                  "Andreas Raab" &lt;<A href="mailto:andreas.raab@gmx.de" 
                  target=_blank>andreas.raab@gmx.de</A>&gt;<BR>Sent: Tuesday, 
                  July 13, 2010 11:29 AM<BR>To: "The general-purpose Squeak 
                  developers list"<BR>&lt;<A 
                  href="mailto:squeak-dev@lists.squeakfoundation.org" 
                  target=_blank>squeak-dev@lists.squeakfoundation.org</A>&gt;<BR>Subject: 
                  [squeak-dev] Re: UI lockup in Squeak 4.1<BR><BR>
                  <BLOCKQUOTE 
                  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
                  class=gmail_quote>On 7/13/2010 6:39 AM, Rob Withers 
                    wrote:<BR>
                    <BLOCKQUOTE 
                    style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
                    class=gmail_quote>The low-space watcher is running, at 
                      least before the problem<BR>starts. I<BR>do eventually run 
                      out of memory, but the uninterruptable 
                      state<BR>happens<BR>before this.<BR></BLOCKQUOTE><BR>In 
                    which case you want to do the following:<BR>* Launch your 
                    app and wait until it's in the "growing state"<BR>* Hit F2 
                    and from the VM's preference menu choose "Debug" and 
                    then<BR>"Print all processes"<BR><BR>This will dump a list 
                    of all the call stacks of all processes. One<BR>of them is 
                    the culprit consuming memory and you'll probably be<BR>able 
                    to tell quickly from just looking at it (if not, you 
                    can<BR>email the output here but it typically takes a domain 
                    expert to<BR>understand what's going 
                  wrong).<BR><BR></BLOCKQUOTE><BR>Thanks for this pointer, 
                  Andreas.<BR><BR>This time it was a Cog VM which spasmed, which 
                  I use for my client<BR>(Squeak 4.1 for server for use with 
                  linux vm - I have no ability to<BR>compile a linux Cog vm: 
                  would love if someone posted one that could<BR>be launched 
                  headless for my webhost).<BR></BLOCKQUOTE><BR>Cog works, but i 
                think you're trying to use the -headless switch,<BR>which (is 
                deprecated) and tells the vm to use the X11 display, but<BR>with 
                no window. Servers usually don't have X11, so it won't 
                work.<BR>You better use -vm-display-null (and -vm-sound-null). 
                Try squeak<BR>--help for further useful options (like tuning 
                Cog).<BR><BR></BLOCKQUOTE><BR>I am trying to use the -headless 
              switch. Good to know it is<BR>deprecated. So you happen to have a 
              Cog for linux binary (version 17<BR>- 20), which I could 
            use?<BR></BLOCKQUOTE><BR>I have one, but I'm not sure it will work 
            on your server. You can find<BR>it 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's built on<BR>ubuntu 10.04 and is optimized for 
            core2.<BR><BR><BR>Levente<BR><BR>
            <BLOCKQUOTE 
            style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
            class=gmail_quote><BR>Thanks,<BR>Rob<BR><BR>
              <BLOCKQUOTE 
              style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
              class=gmail_quote><BR>Levente<BR><BR>
                <BLOCKQUOTE 
                style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
                class=gmail_quote><BR>It started running at 100% and I did 
                  your F2 -&gt; Debug Options -&gt;<BR>Print all processes. It 
                  started dumping a LOT to the Debug Console,<BR>then it froze, 
                  still at 100%, but no increase in memory now and it<BR>went 
                  (Not Responding) and greyed out the window.<BR><BR>Luckily, I 
                  was able to see enough of the stack that was 
                  causing<BR>problems. It is infinitely looping in this 
                  method:<BR><BR>LanguageEnvironment class&gt;&gt;#localeID: 
                  localeID<BR>^self knownEnvironments at: localeID ifAbsent: 
                  [self localeID:<BR>(LocaleID isoLanguage: 'en')]<BR><BR>This 
                  has nothing to do with my code, except I must be 
                  calling<BR>something that enters this loop. It happens in both 
                  Cog (Windows)<BR>and Squeak4.1 (Linux &lt;headless&gt; and 
                  Windows).<BR><BR>Not sure how to fix this.<BR><BR>Rob<BR><BR>
                  <BLOCKQUOTE 
                  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
                  class=gmail_quote>Cheers,<BR>- 
                  Andreas<BR><BR></BLOCKQUOTE><BR><BR></BLOCKQUOTE><BR></BLOCKQUOTE><BR><BR></BLOCKQUOTE></BLOCKQUOTE><BR><BR><BR></BLOCKQUOTE><BR><BR><BR></BLOCKQUOTE><BR><BR></BLOCKQUOTE><BR></BLOCKQUOTE><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>