Osx 108 builds

Revision as of 21:58, 3 April 2017 by MarkMiller (talk | contribs)

Here are the steps involved in building OSX release on the LLNL SQA Lab machine

  1. If you have not already done so, get an account on the OSX machine in the SQA lab
    • You will probably have to request the account directly with Jim Reus, Rena Echeverria-Thomason and probably Garry Schmere
    • Be sure to request an account with admin. privileges
    • The account is a local-access account only, but its fine if you wanna use the same info as your AD credentials
    • Rena or whoever does the work has to physically walk to where the machine is in the SQA lab and add the account
    • Its best that you also confirm your access to the machine by logging into directly while in the SQA lab
    • Once you have an account, you can push and pull stuff to/from it from a machine outside the SQA lab. However, the machine itself cannot see any network outside of the tiny SQA lab network.
  2. To access the machine, you go through a proxy machine and specify a magic port number
    • ssh -l <username> -p 7922 stubb.llnl.gov
  3. It is best to work from a tagged version of the release instead of from the release candidate branch. So, make sure the release manager has already tagged the release. In the examples below, we are using 2.12.1 as the version number which is part of the 2.12RC branch.
  4. You will need to scp to following items the OSX machine
    1. All the third party libraries needed for this release (at least the libs that will be enabled for the OSX build)
      • This assumes you have not already built them for a previous related release
      • svn co http://visit.ilight.com/svn/visit/tags/2.12.1/third_party
      • cd third_party; scp *.tar.gz -P 7922 <username>@stubb.llnl.gov:<target-dir>
    2. The VisIt source code itself
      • svn co http://visit.ilight.com/svn/visit/tags/2.12.1/src 2.12.1_src
      • cd 2.12.1_src
      • svn info
        • Take note of the SVN revision number
      • ./src/svn_bin/visit-dist visit2.12.1
      • this will produce a visit2.12.1.tar.gz tarball
      • scp visit2.12.1.tar.gz -P 7922 <username>@stubb.llnl.gov:<target_dir>
  5. Setup the masonry stuff
    • If this is the first time you are using masonry here, you will need to also get GNU Fortran, Boost and MPI compiler wrappers set up
      • get gfortran here, http://prdownloads.sourceforge.net/hpc/gfortran-4.7-bin.tar.gz?download
        • Copy and untar the gfortran-4.7 tarball in a convenient place (I just did it into /Users/miller86/VisIt)
          • That will create a bin dir the with gfortran executable all ready for use.
      • Copy and build the boost tarball
        • Untar it and cd to its source dir
        • ./bootstrap.sh --prefix=path/to/installation/prefix
        • ./b2 install
    • Set up your path so that it has gfortran and mpi compiler wrappers
      • export PATH=$PATH::/Users/miller86/VisIt/gfortran-4.7/usr/local/bin:/Users/miller86/VisIt/mpich/3.0.1/i386-apple-darwin12_gcc-4.2/bin