[aur-general] problems with x86_64 build machine?

Hyperair hyperair at gmail.com
Fri May 23 10:18:50 EDT 2008


Firmicus wrote:
> Aaron Griffin a écrit :
>> On Mon, May 19, 2008 at 9:17 AM, Mateusz Herych <heniekk at gmail.com>
>> wrote:
>>  
>>>> But is the converse possible? Can I build x86_64 pkgs from inside
>>>> Arch32
>>>> by chrooting to my arch64 partition?
>>>>       
>>>  It's not possible. You can't chroot to a x86_64 system, from a 32bit
>>> system.
>>>     
>>
>>   
> NB: I have a 64bit environment running Arch32, with a core Arch64
> installed in another partition mounted as /mnt/arch64
> 
>> Um, sure you can, if your hardware runs 64bit. I *think* there are
>> some issues with kernel modules, but if you use 'linux64' in addition
>> to chroot, all your bases should be covered
>>   
> I tried this:
> mount --bind /dev /mnt/arch64/dev
> mount --bind /dev/pts /mnt/arch64/dev/pts
> mount --bind /dev/shm /mnt/arch64/dev/shm
> mount -t proc none /mnt/arch64/proc
> mount -t sysfs none /mnt/arch64/sys
> linux64 chroot /mnt/arch64
> 
> but the latter does not work: I get
> "chroot: cannot run command `/bin/bash': Exec format error"
> 
> Any idea? Or is it really impossible to do this as Mateusz was saying?
> 
> Thanks
> F
> 
> 
I believe it's impossible. 64bit system can run 32bit executables, but
not vice versa. A 64bit root would have 64bit executables, so a 32bit
system cannot run them.

You probably could use Qemu for it though. If you're willing to spare
the processing power and RAM needed for emulation.

-- 
Hyperair

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://archlinux.org/pipermail/aur-general/attachments/20080523/918e1feb/attachment.pgp>


More information about the aur-general mailing list