You are not logged in.

#1 2010-03-26 10:33:04

dammannj
Member
Registered: 2009-01-28
Posts: 44

How to cross-compile?

Hello,

I have two PCs running Arch: An Intel Celeron (Core) 420 running Arch 64, and an AMD Geode LX800 (an Alix machine, http://pcengines.ch/alix2d3.htm ) running http://archlinux-i586.org/ .
I'd like to build packages for the Geode, which is i586 compatible, using the Celeron.
If possible I'd like to make use of makepkg/abs/makeworld.
But I'm a little confused about the requirements to do this.

What do I have to set up on the Celeron?
What are CARCH and CHOST?
Is gcc only able to compile code for the platform it was compiled for? If yes...why? (I'd like to know some technical details)

Any pointers to any documents answering these questions would be greatly appreciated, as well as direct answers smile

Thanks
Julian

Offline

#2 2010-03-26 14:20:21

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: How to cross-compile?

Did you use the installation media or installing from existing installation for installing i586? /offtopic

Offline

#3 2010-03-26 14:35:08

dammannj
Member
Registered: 2009-01-28
Posts: 44

Re: How to cross-compile?

I used the installation media, though I used a card reader to install to the cf card, configured the system for serial, network etc, then I inserted it into the Alix.

Offline

#4 2010-03-26 20:15:37

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: How to cross-compile?

Cool, I tried using the install media directly to my gecko edubook (google it) but that failed, maybe it would work your way.

Offline

Board footer

Powered by FluxBB