Re: [Vserver] mixed gcc versions

From: Michael S. Zick <mszick_at_morethan.org>
Date: Tue 19 Sep 2006 - 14:19:19 BST
Message-Id: <200609190819.19700.mszick@morethan.org>

On Tue September 19 2006 08:00, Chuck wrote:
> On Tuesday 19 September 2006 08:50, Michael S. Zick wrote:
> > On Tue September 19 2006 07:16, Chuck wrote:
> > > will a 32 bit guest compiled under gcc 3.4.6 run properly under a 64 bit
> host
> > > compiled using gcc 4.1.1?
> > >
> > > not positive of what is compatible and what is not.
> > >
> > > unfortunately i have not found a centos guest template done under 4.1.1
> > >
> > > have not looked yet at the centos64 to see if that is under 4.1.1
> > >
> >
> > Only the kernel is common between host and guest.
> >
> > Which means host and guest software needs to be built against
> > the same (or compatible) kernel headers.
> >
> > Plus the consideration that your question implies - the kernel
> > when compiled for 64-bit must still support 32-bit code.
> >
> > Not all brands of machine will support mixed size code.
> > For instance, Linux on pa-risc does not have a 64-bit userland,
> > regardless of the kernel being compiled for either 32-bit or 64-bit.
> >
>
> it would be a gentoo 64 bit host with 32bit emu enabled
>

If 32-bit emulation is enabled, it should be just fine.

You still haven't mentioned the processor type, but if 32-bit code
will run on the host, then 32-bit code will run in the guest.

> and a 32 bit or even
> possibly the 64bit centos guest.. all gentoo guests will be 64bit gcc 4.1.1
>
> i am just concerned about the centos since thats binary distribution.
>

You probably should not share the same copy of glibc host & guest.
It is always a "good idea" for glibc to be built with the same compiler
as the rest of userland code.

Running a different glibc in a vserver is not a problem, vservers are
good at doing things like that.

Mike
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Sep 19 14:20:42 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 19 Sep 2006 - 14:20:47 BST by hypermail 2.1.8