You are not logged in.

#1 2010-04-19 07:40:29

joseywales72
Member
Registered: 2008-11-06
Posts: 5

Crossbuild packages from i686 to x86_64?

Hello all,

If this ever been asked before, I couldn't find it in any forum. If so, I'm sorry to bring it up again.

I use Archlinux as my main OS both at home and work. I use i686 at work, x86_64 at home. The problem is that I want to build packages for home(x86_64) on my work PC(i686). I looked for any useful switch in makepkg manual but no use. Then I tried to change the arch parameter in the PKGBUILD to only include a x86_64 architecture but it gives an error saying that this is not a 64 bit system or something like that..

Is there any hope for me to build packages for 64 bit on my 32 bit Arch installation?

Thank you very much in advance.
Anil

PS. Sorry for my probable mistakes, I'm not a native speaker.

Offline

#2 2010-04-19 10:02:58

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Crossbuild packages from i686 to x86_64?

You need a full-blown 64 bit toolchain. It's not as easy as telling makepkg to spit out packages for whatever architecture you have...

I suggest you read up on Cross-Linux From Scratch to see how it works; if you get lucky some Arch user might have a binary x86_64 toolchain for i686.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2010-04-19 10:36:40

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,427
Website

Re: Crossbuild packages from i686 to x86_64?

If your work PC is x86_64 compatible, you can install an x86_64 kernel on the i686 system and make an x86_64 chroot for package building.

Offline

#4 2010-04-21 13:33:01

joseywales72
Member
Registered: 2008-11-06
Posts: 5

Re: Crossbuild packages from i686 to x86_64?

Thank you for the answers... It seems that it would be easier if I download the sources and the PKGBUILD tarballs and copy them to a USB flash for home... or upgrade my work PC's Arch to Arch64...
Thanks again.
Anil

Offline

Board footer

Powered by FluxBB