You are not logged in.

#1 2010-03-16 13:43:11

brenix
Member
From: California
Registered: 2008-03-05
Posts: 185

[Solved] Cross-compiling: Compiling on 64-bit for a 32-bit computer?

I know this can be done, but I cant find a good relevant wiki, topic, or guide regarding this topic. I basically want to compile the kernel26-ck package for a 32-bit kernel from a 64-bit machine since the 32-bit machine takes forever to compile. I guess I have a few things that come to mind:

1. Are there package prerequisites?
2. Is there any configuration required?
3. Can I build the package using makepkg still?

Any suggestions or links would help! Thanks

Last edited by brenix (2010-03-17 03:16:25)

Offline

#2 2010-03-16 22:12:48

brenix
Member
From: California
Registered: 2008-03-05
Posts: 185

Re: [Solved] Cross-compiling: Compiling on 64-bit for a 32-bit computer?

Ok, well I'm a bit further after following this guide to setup a 32-bit chroot environment. I'm assuming I can then compile the kernel as if it were in a 32-bit environment, but whenever starting to compile the package, it comes back stating "Build failed" with no other errors. Anyone?

Offline

#3 2010-03-16 22:34:29

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

Re: [Solved] Cross-compiling: Compiling on 64-bit for a 32-bit computer?

You need a multilib environment, I'm not sure if a 32 bit chroot can compensate for that. I do know Arch's x86_64 branch is not multilib though.


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

Offline

#4 2010-03-16 22:35:12

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,355

Re: [Solved] Cross-compiling: Compiling on 64-bit for a 32-bit computer?

What exactly did you follow from that guide? Are you running schroot -p?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2010-03-17 01:01:16

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [Solved] Cross-compiling: Compiling on 64-bit for a 32-bit computer?

32-bit chroot will work fine, BUT be sure to run "linux32 schroot -p" rather than just "schroot -p" in order to get the build process to detect a 32-bit rather than 64-bit host.

Offline

#6 2010-03-17 03:12:20

brenix
Member
From: California
Registered: 2008-03-05
Posts: 185

Re: [Solved] Cross-compiling: Compiling on 64-bit for a 32-bit computer?

tavianator wrote:

32-bit chroot will work fine, BUT be sure to run "linux32 schroot -p" rather than just "schroot -p" in order to get the build process to detect a 32-bit rather than 64-bit host.

That's exactly what I needed to do. By running "linux32 schroot -p -- bash", it chrooted me into arch32 and I was able to compile the kernel. Thanks guys!

Last edited by brenix (2010-03-17 04:31:38)

Offline

Board footer

Powered by FluxBB