opensubscriber
   Find in this group all groups
 
Unknown more information…

f : fpc-pascal@lists.freepascal.org 28 May 2012 • 8:56PM -0400

[fpc-pascal] Cross compiling x86_64 on i386 Linux.
by Bruce Tulloch

REPLY TO AUTHOR
 
REPLY TO GROUP




Is it possible to cross-compile a Linux/x86_64 target on a Linux/i386
host? AFAICT it should be possible and I've almost got it working (using
Debian's gcc-4.4-multilib for start-up code) but the linker looks for
x86_64 libraries that aren't available on a i386 system.

I'm guessing that libraries for x86_64 do not exist on most i386
distributions (since one can't run x86_64 binaries on a i386 CPU).

Normally one would cross-compile a i386 target on a x86_64 host and use
the i386 compatibility libraries. I want to do it the other way around
(to be able to work on an Atom netbook that does not run x86_64).

Am I correct to assume that if I drag in the x86_64 libraries I need
from another x86_64 system, put them in a local directory and then
reference then using the -XR option I can make this setup work?

Many thanks, Bruce.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@list...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.