Project

General

Profile

Instructions for cross-compiling Xerces-C++ 301 for PPC using nova crosscompiler v4 1 2-2 3 6

(S. Kasahara, May 11, 2010)

  • First set up the ups products area
    o ksu root
    o su products
    o cd /fnal/ups/prd/xerces_c/v3_0_1
    o mkdir LinuxPPC-GCC_4_1_2
    o cd LinuxPPC-GCC_4_1_2
    o mkdir ups
    o cd ups
    o (create the xerces_c.table)
  • Build a cross-compiled version of Xerces-C++
    o cd /scratch/products/ppcinstall/xerces_c/xerces-c-3.0.1
    o mkdir GCC_4_1_2
    o cd GCC_4_1_2
    o wget http://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.0.1.tar.gz
    o tar -zxvf xerces-c-3.0.1.tar.gz
    o cd xerces-c-3.0.1
    o setup icu4c v4_4_rc1 -f LinuxPPC -q GCC_4_1_2
    o setup nova_crosscompiler v4_1_2-2_3_6 -q powerpc-603
    o ./configure --prefix=/fnal/ups/prd/xerces_c/v3_0_1/LinuxPPC-GCC_4_1_2 --enable-transcoder-icu --host=powerpc-603-linux-gnu CXX=powerpc-603-linux-gnu-g++ CC=powerpc-603-linux-gnu-gcc --with-icu=/fnal/ups/prd/icu4c/v4_4_rc1/LinuxPPC-GCC_4_1_2 --disable-netaccessor-curl >& configure.log &
    o gmake >& gmake.log &
    o gmake install
  • Declare the product
    o cd /fnal/ups/prd/xerces_c/v3_0_1/LinuxPPC-GCC_4_1_2
    o ups declare -c -f LinuxPPC -q GCC_4_1_2 -r /fnal/ups/prd/xerces_c/v3_0_1/LinuxPPC-GCC_4_1_2 -m xerces_c.table xerces_c v3_0_1