This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to build on AMD64/Debian under x86 32bits chroot?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]