| 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 |
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.





