Re: Fwd: [Vm-dev] Fwd: Compiling a Squeak VM, for Pharo on Ubuntu 8.04 LTS Server (64bit)

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

Re: Fwd: [Vm-dev] Fwd: Compiling a Squeak VM, for Pharo on Ubuntu 8.04 LTS Server (64bit)

Dave Woodward


    Date: Fri, 7 Aug 2009 16:07:43 -0100
    From: Mariano Martinez Peck <[hidden email]>
    Subject: Re: [Pharo-project] Fwd: [Vm-dev] Fwd: Compiling a Squeak VM
    for Pharo on Ubuntu 8.04 LTS Server (64bit)
    To: [hidden email]
    Message-ID:
    <[hidden email]>
    Content-Type: text/plain; charset="iso-8859-1"

    On Fri, Aug 7, 2009 at 2:54 PM, Damien Cassou <[hidden email]>wrote:

     

>     > ---------- Forwarded message ----------
>     > From: David T. Lewis <[hidden email]>
>     > Date: Fri, Aug 7, 2009 at 5:39 PM
>     > Subject: Re: [Vm-dev] Fwd: [Pharo-project] Compiling a Squeak VM for
>     > Pharo on Ubuntu 8.04 LTS Server (64bit)
>     > To: Squeak Virtual Machine Development Discussion
>     > <[hidden email]>
>     >
>     >
>     >
>     > On Fri, Aug 07, 2009 at 01:14:21PM +0200, Damien Cassou wrote:
>        
>>     > >
>>     > > ---------- Forwarded message ----------
>>     > > From: Dave Woodward <[hidden email]>
>>     > > Date: Thu, Aug 6, 2009 at 7:10 PM
>>     > > Subject: [Pharo-project] Compiling a Squeak VM for Pharo on Ubuntu
>>     > > 8.04 LTS Server (64bit)
>>     > > To: [hidden email]
>>     > >
>>     > >
>>     > > I tried using the pre-compiled VM from the Pharo website to no avail.
>>     > > I'm not exactly sure what the problem is, but when running the
>>     > > pre-compiled Pharo VM, OR the pre-compiled Squeak 3.10-6 VM, they just
>>     > > quit with a "File not found" error. ?My only hunch regarding this is
>>     > > that they were compiled on 32bit Linuxes, and I'm using a 64bit Linux.
>>          
>     >
>     > A likely guess is that some 32-bit library needs to be installed on the
>     > Linux system in question. The Squeak 3.10-6 VM runs fine on my 64bit
>     > SuSE laptop.
>        


    yeah. Dave: could you please try:  sudo apt-get install ia32-libs

    best,

    Mariano


     

Mariano, I installed the ia32-libs package, and now the binary works
great!  Perhaps there should be a short sentence mentioning this in the
Readme file?  I suppose I should have known since I was on a 64bit
linux... but... I didn't!  Thanks again for everyone's help.

>     >
>        
>>     > > I'm using a bare-bones install of Ubuntu server, 8.04LTS 64bit. ?I'm
>>     > > using Slicehost.com for a virtual server to run a Seaside application
>>     > > (they use all 64bit *NIXs), and I'm switching from vanilla Squeak 3.9
>>     > > to Pharo.
>>     > >
>>     > > So, since the Squeak 3.10-6 VM didn't work either I decided to compile
>>     > > my own VM. ?This does not work out of the box on a vanilla Ubuntu
>>     > > Server 8.04 install, so here are the steps I took to successfully
>>     > > compile the VM from the 3.10-6 src files:
>>     > >
>>     > > (cd /Squeak-3.10-6/platforms/unix)
>>     > >
>>     > > Configure:
>>     > > ./config/configure --without-x --without-gl --without-quartz
>>          
>     > --without-npsqueak
>        
>>     > >
>>     > > NOTE: The configure command adds 2 entries to disable the RomePlugin.
>>     > > It looks like it first tests Freetype (not installed so adds an entry
>>     > > to disable RomePlugin), and then tests Cairo (not installed, so adds
>>     > > *another* entry to disable RomePlugin). ?I believe the autoconf files
>>     > > need to be fixed for this, but I leave it up to the squeak-dev folks
>>     > > to figure that out as I have no knowledge of autoconf.
>>     > >
>>     > > Make:
>>     > > make squeak ?(this will error)
>>     > >
>>     > > To fix the damage from the note above, I had to remove the duplicate
>>     > > entry for RomePlugin_exports on line 22 of disabledPlugins.c.
>>          
>     >
>     > Thats a problem of some sort in configure, but note also that RomePlugin
>     > will not work on 64-bit systems (Mantis 7344).
>     >
>     > Dave
>     >
>     >
>     >
>     >
>     > --
>     > Damien Cassou
>     > http://damiencassou.seasidehosting.st
>     >
>     > "Lambdas are relegated to relative obscurity until Java makes them
>     > popular by not having them." James Iry
>     >
>     > _______________________________________________
>     > Pharo-project mailing list
>     > [hidden email]
>     > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Dave Woodward
...................................................
www.futuremint.com
317.332.6438 | [hidden email]

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: [Vm-dev] Fwd: Compiling a Squeak VM, for Pharo on Ubuntu 8.04 LTS Server (64bit)

Mariano Martinez Peck


On Fri, Aug 7, 2009 at 5:10 PM, Dave Woodward <[hidden email]> wrote:


   Date: Fri, 7 Aug 2009 16:07:43 -0100
   From: Mariano Martinez Peck <[hidden email]>
   Subject: Re: [Pharo-project] Fwd: [Vm-dev] Fwd: Compiling a Squeak VM
       for     Pharo on Ubuntu 8.04 LTS Server (64bit)
   To: [hidden email]
   Message-ID:
       <[hidden email]>
   Content-Type: text/plain; charset="iso-8859-1"

   On Fri, Aug 7, 2009 at 2:54 PM, Damien Cassou <[hidden email]>wrote:



>     > ---------- Forwarded message ----------
>     > From: David T. Lewis <[hidden email]>
>     > Date: Fri, Aug 7, 2009 at 5:39 PM
>     > Subject: Re: [Vm-dev] Fwd: [Pharo-project] Compiling a Squeak VM for
>     > Pharo on Ubuntu 8.04 LTS Server (64bit)
>     > To: Squeak Virtual Machine Development Discussion
>     > <[hidden email]>
>     >
>     >
>     >
>     > On Fri, Aug 07, 2009 at 01:14:21PM +0200, Damien Cassou wrote:
>
>>     > >
>>     > > ---------- Forwarded message ----------
>>     > > From: Dave Woodward <[hidden email]>
>>     > > Date: Thu, Aug 6, 2009 at 7:10 PM
>>     > > Subject: [Pharo-project] Compiling a Squeak VM for Pharo on Ubuntu
>>     > > 8.04 LTS Server (64bit)
>>     > > To: [hidden email]
>>     > >
>>     > >
>>     > > I tried using the pre-compiled VM from the Pharo website to no avail.
>>     > > I'm not exactly sure what the problem is, but when running the
>>     > > pre-compiled Pharo VM, OR the pre-compiled Squeak 3.10-6 VM, they just
>>     > > quit with a "File not found" error. ?My only hunch regarding this is
>>     > > that they were compiled on 32bit Linuxes, and I'm using a 64bit Linux.
>>
>     >
>     > A likely guess is that some 32-bit library needs to be installed on the
>     > Linux system in question. The Squeak 3.10-6 VM runs fine on my 64bit
>     > SuSE laptop.
>


   yeah. Dave: could you please try:  sudo apt-get install ia32-libs

   best,

   Mariano




Mariano, I installed the ia32-libs package, and now the binary works
great!  Perhaps there should be a short sentence mentioning this in the
Readme file?  I suppose I should have known since I was on a 64bit
linux... but... I didn't!  Thanks again for everyone's help.

Excellent!!! Greate news.

Damien:  can we edit once again the readme file and put this?  Perhaps SOMETHING as this:

"
For 64 bits you have two options:
* Compile the VM by yourself
* Install 32-libs package from you OS. For example, in Ubuntu you can execute 'sudo apt-get install ia32-libs'
"

Anyone has a better message?

Cheers,

Mariano
 

>     >
>
>>     > > I'm using a bare-bones install of Ubuntu server, 8.04LTS 64bit. ?I'm
>>     > > using Slicehost.com for a virtual server to run a Seaside application
>>     > > (they use all 64bit *NIXs), and I'm switching from vanilla Squeak 3.9
>>     > > to Pharo.
>>     > >
>>     > > So, since the Squeak 3.10-6 VM didn't work either I decided to compile
>>     > > my own VM. ?This does not work out of the box on a vanilla Ubuntu
>>     > > Server 8.04 install, so here are the steps I took to successfully
>>     > > compile the VM from the 3.10-6 src files:
>>     > >
>>     > > (cd /Squeak-3.10-6/platforms/unix)
>>     > >
>>     > > Configure:
>>     > > ./config/configure --without-x --without-gl --without-quartz
>>
>     > --without-npsqueak
>
>>     > >
>>     > > NOTE: The configure command adds 2 entries to disable the RomePlugin.
>>     > > It looks like it first tests Freetype (not installed so adds an entry
>>     > > to disable RomePlugin), and then tests Cairo (not installed, so adds
>>     > > *another* entry to disable RomePlugin). ?I believe the autoconf files
>>     > > need to be fixed for this, but I leave it up to the squeak-dev folks
>>     > > to figure that out as I have no knowledge of autoconf.
>>     > >
>>     > > Make:
>>     > > make squeak ?(this will error)
>>     > >
>>     > > To fix the damage from the note above, I had to remove the duplicate
>>     > > entry for RomePlugin_exports on line 22 of disabledPlugins.c.
>>
>     >
>     > Thats a problem of some sort in configure, but note also that RomePlugin
>     > will not work on 64-bit systems (Mantis 7344).
>     >
>     > Dave
>     >
>     >
>     >
>     >
>     > --
>     > Damien Cassou
>     > http://damiencassou.seasidehosting.st
>     >
>     > "Lambdas are relegated to relative obscurity until Java makes them
>     > popular by not having them." James Iry
>     >
>     > _______________________________________________
>     > Pharo-project mailing list
>     > [hidden email]
>     > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Dave Woodward
...................................................
www.futuremint.com
317.332.6438 | [hidden email]

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: [Vm-dev] Fwd: Compiling a Squeak VM, for Pharo on Ubuntu 8.04 LTS Server (64bit)

Miguel Cobá
In reply to this post by Dave Woodward
El vie, 07-08-2009 a las 14:10 -0400, Dave Woodward escribió:
>

>
>     yeah. Dave: could you please try:  sudo apt-get install ia32-libs
>
>     best,
>
>     Mariano
>
>
>      
>
> Mariano, I installed the ia32-libs package, and now the binary works
> great!  Perhaps there should be a short sentence mentioning this in the
> Readme file?  I suppose I should have known since I was on a 64bit
> linux... but... I didn't!  Thanks again for everyone's help.

Congrats for that improvement but now you have a image that runs ok but
is isolated from the internet. The network isn't working on 64 bit
architecture, even with ia32-libs.

check:
http://code.google.com/p/pharo/issues/detail?id=794
http://code.google.com/p/pharo/issues/detail?id=961





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: [Vm-dev] Fwd: Compiling a Squeak VM, for Pharo on Ubuntu 8.04 LTS Server (64bit)

Mariano Martinez Peck


2009/8/7 Miguel Enrique Cobá Martinez <[hidden email]>
El vie, 07-08-2009 a las 14:10 -0400, Dave Woodward escribió:
>

>
>     yeah. Dave: could you please try:  sudo apt-get install ia32-libs
>
>     best,
>
>     Mariano
>
>
>
>
> Mariano, I installed the ia32-libs package, and now the binary works
> great!  Perhaps there should be a short sentence mentioning this in the
> Readme file?  I suppose I should have known since I was on a 64bit
> linux... but... I didn't!  Thanks again for everyone's help.

Congrats for that improvement but now you have a image that runs ok but
is isolated from the internet. The network isn't working on 64 bit
architecture, even with ia32-libs.

check:
http://code.google.com/p/pharo/issues/detail?id=794
http://code.google.com/p/pharo/issues/detail?id=961

Yes, but, those bugs are fixed if you compile the VM ?  I image they don't. So, it doesn't matter if it is with ia32-lib or if you compiled, they won't work.

However perhaps would be nice to have a place where to put the known problems with 64 bits. FFI doesn't work well with 64 neither.

Best,

Mariano

 





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: [Vm-dev] Fwd: Compiling a Squeak VM, for Pharo on Ubuntu 8.04 LTS Server (64bit)

Miguel Cobá
In reply to this post by Mariano Martinez Peck

>        
>        
>         Mariano, I installed the ia32-libs package, and now the binary
>         works
>         great!  Perhaps there should be a short sentence mentioning
>         this in the
>         Readme file?  I suppose I should have known since I was on a
>         64bit
>         linux... but... I didn't!  Thanks again for everyone's help.
>
> Excellent!!! Greate news.
>
> Damien:  can we edit once again the readme file and put this?  Perhaps
> SOMETHING as this:
>
> "
> For 64 bits you have two options:
> * Compile the VM by yourself
> * Install 32-libs package from you OS. For example, in Ubuntu you can
> execute 'sudo apt-get install ia32-libs'
> "
>
> Anyone has a better message?

In my Debian GNU/Linux 5 (lenny) amd64 I always used the squeak vm
installed from the Debian repos. That vm was already for 64 bits (I
didn't had ia32-libs installed) and everything worked ok.
Maybe another option would be to ask José Luis Redrejo to rebuild a vm
for amd64 and:

1. upload it to debian/ubuntu repos to cover the users that use that
OSes, they only had to download an image and not the vm.
2. upload it to the squeak and pharo sites and put a link to download a
vm for x86 and other for amd64.
3. Generate two zips, one for ia32 and other for amd64 and the user
selects the correct one.
4. put the message that you propose in the zip as a fallback.

What do you think?



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: [Vm-dev] Fwd: Compiling a Squeak VM, for Pharo on Ubuntu 8.04 LTS Server (64bit)

Mariano Martinez Peck


2009/8/7 Miguel Enrique Cobá Martinez <[hidden email]>

>
>
>         Mariano, I installed the ia32-libs package, and now the binary
>         works
>         great!  Perhaps there should be a short sentence mentioning
>         this in the
>         Readme file?  I suppose I should have known since I was on a
>         64bit
>         linux... but... I didn't!  Thanks again for everyone's help.
>
> Excellent!!! Greate news.
>
> Damien:  can we edit once again the readme file and put this?  Perhaps
> SOMETHING as this:
>
> "
> For 64 bits you have two options:
> * Compile the VM by yourself
> * Install 32-libs package from you OS. For example, in Ubuntu you can
> execute 'sudo apt-get install ia32-libs'
> "
>
> Anyone has a better message?

In my Debian GNU/Linux 5 (lenny) amd64 I always used the squeak vm
installed from the Debian repos. That vm was already for 64 bits (I
didn't had ia32-libs installed) and everything worked ok.
Maybe another option would be to ask José Luis Redrejo to rebuild a vm
for amd64 and:

is there a difference between Intel 64 bits and amd64 ? I mean, if you compile for one, you cannot use that binaries for the other ?
 


1. upload it to debian/ubuntu repos to cover the users that use that
OSes, they only had to download an image and not the vm.
2. upload it to the squeak and pharo sites and put a link to download a
vm for x86 and other for amd64.
3. Generate two zips, one for ia32 and other for amd64 and the user
selects the correct one.
4. put the message that you propose in the zip as a fallback.

What do you think?

Remember it has to be the latest VM code because of the closures.

All of this would be REALLY nice. Pharo and Squeak support for Linux is poor.

Can you take it ? ahaha

I have Linux, but 32 bits ;)

Best,

Mariano
 




_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: [Vm-dev] Fwd: Compiling a Squeak VM, for Pharo on Ubuntu 8.04 LTS Server (64bit)

Miguel Cobá

>        
>
> is there a difference between Intel 64 bits and amd64 ? I mean, if you
> compile for one, you cannot use that binaries for the other ?
>  


No, they are the same. The same vm can run on intel and amd cpus in 64
bit mode.




_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: [Vm-dev] Fwd: Compiling a Squeak VM, for Pharo on Ubuntu 8.04 LTS Server (64bit)

Damien Cassou
In reply to this post by Mariano Martinez Peck
2009/8/7 Mariano Martinez Peck <[hidden email]>:
> Damien:  can we edit once again the readme file and put this?

Done in the new release VM: 0.15.2d

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project