SST Quick Start Guide for MacOS X using MacPorts

Building SST using MacPorts tools on MacOS X

With the release of Xcode 5, Apple has fully deprecated the GNU compilers that were supplied with previous versions of Xcode. Apple has instead chosen to promote the CLANG/LLVM compiler toolset for all future development. Unfortunately, certain elements of SST are incompatible with CLANG/LLVM. Until SST becomes fully compatible with the CLANG/LLVM, this guide presents an interim solution for Mac OS X users who have migrated to Xcode 5 who wish to use SST.

Quick-Start Guide for OSX 10.9 Mavericks, 10.10 Yosemite, 10.11 El Capitan

Using MacPorts With OSX, you have a choice of compilers to use. GCC, or the Apple-supplied Clang compiler.

NOTE: MacPorts provides ports of software packages that are constantly changing, these instructions are a description of the process for specific versions. These ports may have different names and versions in the future.

Note: Installing MacPorts may require require root/superuser privileges.

  1. Using the Apple App Store, install Xcode 6 and command line tools.
    1. Using the Apple App Store, install Xcode 6
    2. Run Xcode 6
    3. From within Xcode 6, select the “Xcode -> Preferences” pull-down
    4. In the pop-up window, click on “Downloads”
    5. Select the down-arrow icon in “Components -> Command Line Tools” to download and install.
  2. Install MacPorts
  3. Choose a compiler toolchain
port install libtool automake autoconf boost
port select --set mpi openmpi-mp-fortran
port select --set python python27
port install libtool automake autoconf 
port install gcc48
port install boost +gcc48  configure.compiler=macports-gcc-4.8  
port select --set gcc mp-gcc48
port select --set mpi openmpi-gcc48-fortran
port select --set python python27

The above commands will satisfy all the dependencies for a base install of SST. From here, configure and install SST as normal.