Changes between Version 2 and Version 3 of ccafebgp
- Timestamp:
- 11/06/09 16:51:39 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ccafebgp
v2 v3 9 9 ==== Building cca-spec-babel ==== 10 10 11 Check cca-spec-babel out from the repository, configure, and build. For reference, I used the following:11 Check cca-spec-babel out from the repository, and configure: 12 12 13 13 {{{ … … 19 19 }}} 20 20 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) 21 Then 'make clean all install'. Done! 22 22 23 23 ==== Building ccaffeine ==== 24 24 25 Building ccaffeine will not work out of the box. 25 Building 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. 26 26 27 1. '''Edit $CCAFE_SRC/config/shlib.m4''': 27 1. '''Edit $CCA_INSTALL_DIR/share/cca-spec-babel-$(SPEC_VER)-babel-$(BABEL_VER) files''' 28 29 In 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 31 CCA_Babel_Vars.sh: CCASPEC_GENSCLCCA_SH=$CCA_INSTALL_DIRl/bin/genSCLCCA.sh_0_8_6_b_1.5.0/genSCLCCA.sh 32 MakeIncl_CCA_Babel_Vars: CCASPEC_GENSCLCCA_SH=$CCA_INSTALL_DIR/bin/genSCLCCA.sh_0_8_6_b_1.5.0/genSCLCCA.sh 33 34 where $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 {{{ 37 cd $CCA_INSTALL_DIR/share 38 find . -name *Vars* -exec sed -i1 \ 39 -e "s|^CCASPEC_GENSCLCCA_SH=.*|CCASPEC_GENSCLCCA_SH='$CCA_INSTALL_DIRl/bin/genSCLCCA.sh'|g" {} \; -print 40 }}} 41 42 2. '''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 44 3. '''Edit $CCAFE_SRC/config/shlib.m4''': 28 45 29 46 {{{ … … 52 69 This prevents the '-rdynamic' flag, which is not compatible with xlC, from being passed to the linker. 53 70 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.71 4. '''Run 'aclocal && autoconf''''. 55 72 56 3. '''Run 'aclocal && autoconf''''. 57 58 4. Configure: 73 5. Configure: 59 74 60 75 {{{ … … 63 78 --with-babel-python LDFLAGS="-qnostaticlink" --host=powerpc-bgp-linux-gnu \ 64 79 --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 66 84 }}} 67 85 68 5. Build, and install.86 6. Build, and install.