Changes between Version 2 and Version 3 of ccafebgp


Ignore:
Timestamp:
11/06/09 16:51:39 (13 years ago)
Author:
tramer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ccafebgp

    v2 v3  
    99==== Building cca-spec-babel ==== 
    1010 
    11 Check cca-spec-babel out from the repository, configure, and build.  For reference, I used the following: 
     11Check cca-spec-babel out from the repository, and configure: 
    1212 
    1313{{{ 
     
    1919}}} 
    2020 
    21 Now, you'll need to edit some of the files generated by cca-spec-babel by hand.  Edit $CCA_INSTALL_DIR/bin/genSCLCCA.sh to refer to the proper babel libtool (edit the libtool variable definition to point to $CCA_INSTALL_DIR/bin/powerpc64-ibm-bgp-babel-libtool) 
     21Then 'make clean all install'.  Done! 
    2222 
    2323==== Building ccaffeine ==== 
    2424 
    25 Building ccaffeine will not work out of the box. 
     25Building ccaffeine will not work out of the box.  You need to edit some parts of the cca-spec-babel install and also some of the makefiles for ccaffeine itself. 
    2626 
    27 1. '''Edit $CCAFE_SRC/config/shlib.m4''': 
     271. '''Edit $CCA_INSTALL_DIR/share/cca-spec-babel-$(SPEC_VER)-babel-$(BABEL_VER) files''' 
     28 
     29In most cases, SPEC_VER will be 0_8_6 and BABEL_VER will be 1.5.0, and that's what will be used in this example.  You'll need to edit two files: 
     30 
     31CCA_Babel_Vars.sh: CCASPEC_GENSCLCCA_SH=$CCA_INSTALL_DIRl/bin/genSCLCCA.sh_0_8_6_b_1.5.0/genSCLCCA.sh 
     32MakeIncl_CCA_Babel_Vars: CCASPEC_GENSCLCCA_SH=$CCA_INSTALL_DIR/bin/genSCLCCA.sh_0_8_6_b_1.5.0/genSCLCCA.sh 
     33 
     34where $CCA_INSTALL_DIR refers to the value that you used when configuring - it's not an actual variable in these files.  This should work since genSCLCCA.sh is a symbolic link to the "right" genSCLCCA.sh, which is prefixed with the system type it was compiled for and suffixed with version numbers.  A quick way to do this is with sed: 
     35 
     36{{{ 
     37cd $CCA_INSTALL_DIR/share 
     38find . -name *Vars* -exec sed -i1 \ 
     39  -e "s|^CCASPEC_GENSCLCCA_SH=.*|CCASPEC_GENSCLCCA_SH='$CCA_INSTALL_DIRl/bin/genSCLCCA.sh'|g" {} \; -print 
     40}}} 
     41 
     422. '''Remove all instances of -Wall flags.'''  '-Wall' is not compatible with the IBM C++ compilers.  You will need to edit $CCAFE_SRC/cxx/Makefile.Rules.in and $CCAFE_SRC/cxx/gnu/getopt/Makefile.in. 
     43 
     443. '''Edit $CCAFE_SRC/config/shlib.m4''': 
    2845 
    2946{{{ 
     
    5269This prevents the '-rdynamic' flag, which is not compatible with xlC, from being passed to the linker. 
    5370 
    54 2. '''Remove all instances of -Wall flags.'''  '-Wall' is not compatible with xlC.  You will need to edit $CCAFE_SRC/cxx/Makefile.Rules.in and $CCAFE_SRC/cxx/gnu/getopt/Makefile.in. 
     714. '''Run 'aclocal && autoconf''''. 
    5572 
    56 3. '''Run 'aclocal && autoconf''''. 
    57  
    58 4. Configure: 
     735. Configure: 
    5974 
    6075{{{ 
     
    6378  --with-babel-python LDFLAGS="-qnostaticlink" --host=powerpc-bgp-linux-gnu \ 
    6479  --target=powerpc64-ibm-bgp target_alias=powerpc64-ibm-bgp --prefix=$CCA_INSTALL_DIR \ 
    65   --with-boost=/home/norris/soft/boost-1_38_0/include/boost-1_38 
     80  --with-boost=/home/norris/soft/boost-1_38_0/include/boost-1_38 \ 
     81  --with-xml2-config=/gpfs/home/projects/ccatools/libxml2/bin/xml2-config \ 
     82  --with-xml2-includes=-I/gpfs/home/projects/ccatools/libxml2/include/libxml2 \ 
     83  --with-xml2-libs=-L/gpfs/home/projects/ccatools/libxml2/lib 
    6684}}} 
    6785 
    68 5. Build, and install. 
     866. Build, and install.