How to build on AMD64/Debian under x86 32bits chroot?
Matthias Klose
doko@cs.tu-berlin.de
Thu Jun 5 21:10:00 GMT 2008
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
More information about the Gcc
mailing list