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.
GNU 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. In addition, GNU UPC 4.7 also requires cloog-ppl package.


Linux x86_64 build
The following packages are required for building the UPC compiler:
Ubuntu 11.04 x64
libmpfr-dev, libmpc-dev, libgmp3-dev, libnuma-dev
SUSE 11.0 x64
libgmp10, libmpfr1, mpc-devel, libnuma-devel
Fedora 13/14/15 RHEL 5/6, CentOS 5/6 x86_64
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:
Ubuntu 11.04 x86_64
libc6-dev-i386
SUSE 11.0 x86_64
glibc-devel-32bit
Fedora 13/14/15, RHEL 5/6, CentOS 5/6 x86_64
glibc-devel.i686
Multilib support can be disabled with --disable-multilib configuration option.
Linux i686 build
The following packages are required for building the GNU UPC compiler on CentOS 5 i686: gmp-devel, mpfr-devel, libmpc-devel, numactl-devel
Mac OS X Snow Leopard 106 and Lion 10.7 build
To configure and build Intel x86_64 GNU UPC on Mac OS X platform you will need the following:

- Mac OS X Snow Leopard 10.6 or Lion 10.7 release
It should be possible to build GCC/UPC on earlier versions of Leopard or Tiger. - Xcode development tools
Development tools provide GCC compiler and other necessary tools for GNU UPC configure and build. Xcode can be downloaded from Apple's web site: http://developer.apple.com/tools/xcode/index.html - GMP, MPFR, and MPC libraries are required for building and running GNU UPC. They can be built from sources or installed via the port command that can be downloaded from http://www.macports.org/ (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.

Intel IA64 build
The following packages are required for building the GNU UPC compiler: gmp-devel, mpfr-devel, mpc-devel, libnuma-devel
Cray 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.








