Instructions for cross-compiling CPPUnit for PPC using nova crosscompiler v4 1 0-2 3 6

  • First set up the ups products area
    o ksu root
    o su products
    o cd /fnal/ups/prd/cppunit/v1_12_1
    o mkdir LinuxPPC-GCC_4_1_0
    o cd LinuxPPC-GCC_4_1_0
    o mkdir ups
    o cd ups
    o (create the cppunit.table)
  • Build a cross-compiled version of CPPUnit
    o cd /scratch/products/ppcinstall/
    o mkdir cppunit
    o cd cppunit
    o wget
    o tar -zxvf cppunit-1.12.1.tar.gz
    o cd cppunit-1.12.1
    o setup nova_crosscompiler -q powerpc-603
    o ./configure --prefix=/fnal/ups/prd/cppunit/v1_12_1/LinuxPPC-GCC_4_1_0 --host=ppc 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/cppunit/v1_12_1/LinuxPPC-GCC_4_1_0
    o ups declare -c -f LinuxPPC -q GCC_4_1_0 -r /fnal/ups/prd/cppunit/v1_12_1/LinuxPPC-GCC_4_1_0 -m cppunit.table cppunit v1_12_1