The Linux Anthology
From My Experiences to You

So I’ve decided I wanted to build a cross compiler on x86_64 install of Linux (RHEL 5) and have run into nothing but old-arse documents except for the Fine folks at Linux From Scratch where I find they have documentation on the process, but it requires some of their patches/setup to make it happen. So I’m attempting to make it so that you can do it from scratch without any outside scripts/etc.

(Work in progress)

This will be for building 32-bit SPARC code on an x86_64 system:

Compile Binutils for Cross Compilation
tar jxvf binutils-*.tar.bz2
mkdir binutils-build
cd binutils-build
AR=ar AS=as ../binutils-2*/configure --prefix=/opt/cross-compiler --host=x86_64 --target=sparc-linux --with-lib-path=/cross-compiler/lib --disable-nls --enable-shared
make configuration-host
make
make check
make install


Build GMP as prereq for gcc


Build MPFR as prereq for gcc


Build MCP as prereq for gcc


Post Comment

You have to login to answer.


Powered by Wordpress
Theme © 2005 - 2009 FrederikM.de
BlueMod is a modification of the blueblog_DE Theme by Oliver Wunder