This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to build on AMD64/Debian under x86 32bits chroot?
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Thu, 5 Jun 2008 23:09:44 +0200
- Subject: Re: How to build on AMD64/Debian under x86 32bits chroot?
- References: <4847E6AC.6080403@starynkevitch.net>
Basile STARYNKEVITCH writes:
> Hello All
>
> As (I imagine) many developers I have a 64 bits machine - running Debian
> (Sid) Linux AMD64.
>
> I want to test my MELT branch on x86 (32 bits). So I set up (using
> debootstrap) a x86 32 bits Debian/Lenny chroot-ed system (in /debian32)
> which has most of the *-dev packages installed.
>
> In this chroot-ed environment I am able to compile several software
> without issues. For example, I just compiled there the PPL.
>
> The point is that even after schroot the uname system call (& the uname
> command) still return x86_64 as the machine. I suppose there is no easy
> trick to circumvent this.
make sure that 'personality=linux32' is set for this chroot in
/etc/schroot/schroot.conf (or as suggested prefix the schroot command
with 'linux32' every time you enter the chroot).
Matthias