Instructions for cross-compiling CPPUnit 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/cppunit/v1_12_1
    o mkdir LinuxPPC-GCC_4_1_2
    o cd LinuxPPC-GCC_4_1_2
    o mkdir ups
    o cd ups
    o (create the cppunit.table)
  • Build a cross-compiled version of CPPUnit
    o cd /scratch/products/ppcinstall/cppunit
    o mkdir GCC_4_1_2
    o cd GCC_4_1_2
    o wget
    o tar -zxvf cppunit-1.12.1.tar.gz
    o cd cppunit-1.12.1
    o setup nova-crosscompiler v4_1_2-2_3_6 -q powerpc-603
    o ./configure --prefix=/fnal/ups/prd/cppunit/v1_12_1/LinuxPPC-GCC_4_1_2 --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/cppunit/v1_12_1/LinuxPPC-GCC_4_1_2
    o ups declare -c -f LinuxPPC -q GCC_4_1_2 -r /fnal/ups/prd/cppunit/v1_12_1/LinuxPPC-GCC_4_1_2 -m cppunit.table cppunit v1_12_1