Project

General

Profile

Instructions for cross-compiling libiconv for PPC

libiconv is needed for installation of Xerces.

  • First set up the ups products area
    o ksu root
    o su products
    o cd /fnal/ups/prd/libiconv/v1_13_1
    o mkdir LinuxPPC-GCC_4_1_0
    o cd LinuxPPC-GCC_4_1_0
    o mkdir ups
    o cd ups
    o (create the libiconv.table)
  • Build a cross-compiled version of libiconv
    o cd /scratch/products/ppcinstall/
    o mkdir libiconv
    o cd libiconv
    o wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
    o tar -zxvf libiconv-1.13.1.tar.gz
    o cd libiconv-1.13.1
    o setup nova_crosscompiler -q powerpc-603
    o ./configure --prefix=/fnal/ups/prd/libiconv/v1_13_1/LinuxPPC-GCC_4_1_0 --host=powerpc-603-linux-gnu CXX=powerpc-603-linux-gnu-g++ CC=powerpc-603-linux-gnu-gcc >& configure.log &
    o make >& make.log &
    o make install
  • Declare the product
o cd /fnal/ups/prd/libiconv/v1_13_1/LinuxPPC-GCC_4_1_0
o ups declare -c -f LinuxPPC -q GCC_4_1_0 -r /fnal/ups/prd/libiconv/v1_13_1/LinuxPPC-GCC_4_1_0 -m libiconv.table libiconv v1_13_1