| Article Index |
|---|
| GCC UPC Prerequisites |
| Linux x86_64 |
| Linux x86 |
| Mac OS X x86 |
| Linux ia64 |
| SGI Irix mips |
| Cray XT3/4 |
| Cray T3E |
| All Pages |
The following page provides guidelines for configuring GCC UPC on various processors and machines. As GCC UPC is built as an extension of GCC please check GCC prerequisites for your machine.

To configure, build, and install x86_64 GCC UPC please follow instructions on our configuration page.
To configure, build, and install x86 GCC UPC please follow instructions on our configuration page.
To configure and build Intel x86 GCC UPC on Mac OS X platform you will need the following:
- Mac OS X Leopard 10.5.7+ release
OR Snow Leopard 10.6 release
The latest binary release of GCC/UPC compiler was built on Leopard, version 10.5.7. 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 GCC/UPC configure and build. Xcode can be downloaded from Apple's web site: http://developer.apple.com/tools/xcode/index.html - GMP and MPFR libraries are required for building and running GCC/UPC. They can be built from sources (preferred option) or installed via port command that can be downloaded from http://www.macports.org/ (use "port install gmp mpfr" command to install required libraries). By default, port installs packages under /opt/local directory, and the following switches mast be specified on the GCC/UPC configuration line "--with-gmp=/opt/local --with-mfpr=/opt/local" if configured and built from sources. If binary release is used, GMP and MPFR libraries must be installed under /opt/local directory.
To configure, build, and install ia64 GCC UPC please follow instructions on our configuration page.
Before attempting to build the GCC UPC compiler, we recommend that you first build and install the versions of the GNU tools listed below:
- GNU C Compiler (version 3.3.2)
- GNU patch (version 2.5.4)
- GNU make (version 3.79.1)
- Bison (version 1.875)
- gperf (version 2.7.2)
The tool version numbers shown are the versions of the tools that were used to initially develop the compiler and runtime. You should be able to safely use later versions of the GNU tools.
We recommend that you use a recent version of patch because versions earlier than 2.5.4 do not support the set time/date option, which is required to properly establish source file dependencies.
Configure and build tool-set for GCC UPC 4.3.4 compiler
Configuring and building of GCC UPC 4.3.4 on SGI IRIX machine is a bit complicated by the fact that gmp and mpfr packages are required and must be built from sources. Here is the process we used to install the 64-bit mode only tool-set.
- Install your bootstrap binary version of GNU GCC
We used SGI's freeware site (http://freeware.sgi.com/) to download GCC 3.3. The best would be if you can find a newer version of the compiler. - Also install GNU binutils package as GCC UPC uses GNU assembler for optimal performance. We also used SGI's freware site for this package.
- Select a place where you plan to install tools (e.g. /usr/local)
- Download, configure, and build GCC 4.2 compiler
- Download from ftp.gnu.org/gnu/gcc area
- Configure with the following options
--with-as=/usr/local/bin/gas \
--without-gnu-ld --with-ld=/bin/ld \
--enable-languages=c --disable-c-mbchar \
--with-abi=64 - Make (make -j6) and install your compiler
- Download, configure, and build gmp and mpfr packages
- Download gmp from http://gmp.gnu.org. We used version 4.3.1 for our build.
- Configure with the following options
ABI=64
- Make and install
- Download mpfr from http://www.mpfr.com/. We used version 2.4.1 for our build.
- Configure with the following options
ABI=mode64
- Make and install
It is quite possible that some of the steps can be skipped (e.g. don't build 4.2 compiler and use 3.3 version for all compilations).
In addition, our tool-set is also built with static libraries so there is no need to adjust link library path if gmp/mpfr libraries are not located in /usr/lib area.
NOTE 1: GCC UPC is not available in traditional software module form.
- Make sure GNU tools are used to compile GCC UPC source code
module unload PrgEnv-pgi
module add PrgEnv-gnu - Make sure default login node gcc is used to rebuild GCC 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
Berkeley's runtime is required for GCC 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 GCC UPC compiler as a back-end UPCR compiler.
Please review README.CrayXT3 that comes with the latest Berkeley's runtime for Cray XT3.
- CC Compiler (version 6.6.0.2)
- CLD Linker (version 3.0.0.20)
- Cray open source package
- Cray mpp package
The tool version numbers shown are the versions of the tools that were used to initially develop the compiler and runtime. You should be able to safely use later versions of the those tools.





