The following page provides guidelines for configuring GNU UPC on various processors and machines. As GNU UPC is built as an extension of GCC please check the GCC prerequisites for your machine.

noteGNU UPC 4.5 and higher requires the GMP, MPFR, and MPC libraries to build and install. If those libraries are installed in non-standard areas (e.g. /usr/include, /usr/lib), their position must be specified on the configuration line with "--with-gmp", "--with-mpfr", and "--with-mpc" configuration switches. For more information on how to build these libraries please visit our prerequisites FAQ on the subject.


Linux build

The following packages are required for building the UPC compiler:

Ubuntu 12.04 x64
libgmp3-dev, libmpfr-dev, libmpc-dev, libnuma-dev

SUSE 11.4 x86_64
gmp-devel, mpfr-devel, mpc-devel, libnuma-devel

Fedora 15/16/17/18, RHEL 6, CentOS 6 x86_64
gmp-devel, mpfr-devel, libmpc-devel, numactl-devel

CentOS 6 i686
gmp-devel, mpfr-devel, libmpc-devel, numactl-devel

By default, all x86_64 targets enable multilib support. For build to succeed the following packages are also required:

SUSE 11.4 x86_64
glibc-devel-32bit (and gcc-32bit for opensuse 12)

Fedora 15/16/17/18, RHEL 6, CentOS 6 x86_64

Multilib support can be disabled with --disable-multilib configuration option.

Mac OS X Yosemiti 10.10 build

To configure and build Intel x86_64 GNU UPC on Mac OS X platform you will need the following:


  • Mac OS X Yosemiti 10.10 release
    It should be possible to build GCC/UPC on earlier versions of Mac OS X.
  • GMP, MPFR, and MPC libraries are required forbuilding and running GNU UPC. They can be built from sources or installed via the port command that can be downloaded from (use the command "port install gmp mpfr libmpc" to install required libraries). By default, port installs packages under the /opt/local directory, and the following switches mast be specified on the GNU UPC configuration line "--with-gmp=/opt/local --with-mfpr=/opt/local --with-mpc=/opt/local" if configured and built from sources. If binary release is used, GMP, MPFR, and MPC libraries must be installed under the /opt/local directory.

Required packages are: gmp, mpfr, libmpc.

cray-logoCray XT3/4/5 build

GNU UPC  supports the Catamount and CNL  computing nodes and is designed to work with Berkeley UPCR runtime. GNU UPC is not available in traditional software module form.

  • Make sure GNU tools are used to compile GNU UPC source code
    module unload PrgEnv-pgi
    module add PrgEnv-gnu
  • Make sure default login node gcc is used to rebuild GNU UPC source code
    setenv CC /usr/bin/gcc        (csh shells)
    CC=/usr/bin/gcc ; export CC   (bourne shells

Installing Berkeley's runtime for XT3/4/5

Berkeley's runtime is required for GNU UPC. Download the latest release of the Berkeley UPC runtime. Please review the INSTALL document for an overall description of the installation process. Check the section "GCC UPC BINARY COMPILER SUPPORT" for particulars in choosing the GNU UPC compiler as a back-end UPCR compiler.

Please review docs/README.CrayXT that comes with the latest Berkeley's runtime for Cray XT.

Go to top