2 | | ==== (Notes by Boyana Norris [mailto:[email protected]]) ==== |
| 2 | |
| 3 | ==== Current build instructions (Notes by Stephen Tramer [mailto:[email protected]]) ==== |
| 4 | |
| 5 | It is strongly recommended that you make a directory on /scratch to perform your build in. Boyana mentions in her notes below that configure/make takes a long time; this is because of the slow disk access to $HOME on login nodes for surveyor. Configure and builds proceed much faster on /scratch. |
| 6 | |
| 7 | These notes very closely follow Boyana's, but some of her fixes have now been patched into the code. For the full details of what has been modified in order to support BG/P, please see below. |
| 8 | |
| 9 | These instructions will enable support for all languages except java (irrelevant on BG/P, since it doesn't have java). Throughout $BABEL_SRC will refer to your local babel source copy and $BABEL_INSTALL to the directory where babel will be installed. Please be aware that this build process has been tested only in the development branch, for the proposed babel 1.5.0. |
| 10 | |
| 11 | 1. Build a local version of libxml2. There is a version available at /home/tramer (and one in /home/norris/cca), compiled for use with applications being compiled for BG/P. However, it is recommended that you roll your own to become familiar with some issues with cross-compiling using the GNU autotools. However, if you do this, you will need to run the $BABEL_SRC/contrb/libtool_fix.sh script to patch up the generated libtool files. |
| 12 | |
| 13 | 2. Configure the project: |
| 14 | |
| 15 | {{{ |
| 16 | $BABEL_SRC/configure CPP="gcc -E" CC=mpixlc CXX=mpixlcxx FC=mpixlf2003 F77=mpixlf77 --with-bindc --prefix=$BABEL_INSTALL \ |
| 17 | --host=powerpc-bgp-linux-gnu --target=powerpc64-ibm-bgp --without-sidlx --with-gcc=no \ |
| 18 | --enable-python=/bgsys/drivers/ppcfloor/gnu-linux/bin/python target_alias=powerpc64-ibm-bgp \ |
| 19 | --with-libxml2=$LIBXML2_LOCATION --without-libparsifal LDFLAGS="-G -qnostaticlink" host_alias=powerpc-bgp-linux-gnu |
| 20 | }}} |
| 21 | |
| 22 | If the configure fails, run aclocal, autoconf, and automake in both $BABEL_SRC and $BABEL_SRC/runtime. Note that you will need autoconf 2.64 and automake 1.10.x; these are not available on the login machines and you will have to build them yourself (but do not need to port them to BG/P; they will only be used for building). |
| 23 | |
| 24 | If your configure fails, please look at Boyana's instructions below and examine your output to determine where the mistake could be. |
| 25 | |
| 26 | 3. Run $BABEL_SRC/contrib/libtool_fix.sh in the $BABEL_SRC directory. This will patch your libtool files so that they are compatible with the BG/P compilers. '''Do not skip this step. If step 4 fails, make sure you have done this.''' |
| 27 | |
| 28 | 4. 'make clean all install' |
| 29 | |
| 30 | If your make fails, please look at Boyana's instructions below and examine your output to determine where the mistake could be. |
| 31 | |
| 32 | ==== Old build instructions (Notes by Boyana Norris [mailto:[email protected]]) ==== |