%general-entities; ]> Build Flags We will need to setup target specific flags for the compiler and linkers. You can choose the appropriate BUILD32 and BUILD64 from the table at the bottom of the page. export BUILD32="[BUILD32 entries]" export BUILD64="[BUILD64 entries]" export GCCTARGET="[GCCTARGET entries]" You will need to set your host target triplet for 32 bit: export LFS_TARGET32="sparcv9-unknown-linux-gnu" Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our target, we will get some failures during our cross-compile: if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \ echo "Host and Target can't be the same." ; fi If the above test gave you "Host and Target can't be the same", you will need to change your LFS_HOST to a a different target triplet: export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`" Lets add the build flags to ~/.bashrc to prevent issues if we stop and come back later. echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc echo export GCCTARGET=\""${GCCTARGET}\"" >> ~/.bashrc echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bashrc echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc The following table gives the entires for different Sparc 64 capable processors. Pick the processor that matches your system. List of architectures, target triplets, and recommended book Processor BUILD32 BUILD64 GCCTARGET Ultrasparc and Ultrasparc2 -m32 -mcpu=ultrasparc -mtune=ultrasparc -m64 -mcpu=ultrasparc -mtune=ultrasparc -mcpu=ultrasparc -mtune=ultrasparc Ultrasparc3 -m32 -mcpu=ultrasparc3 -mtune=ultrasparc3 -m64 -mcpu=ultrasparc3 -mtune=ultrasparc3 -mcpu=ultrasparc3 -mtune=ultrasparc3