CAPSL Gelato | Advancing Linux Itanium HP Open64 at SourceForge Tsinghua University University of Delaware

Installing Open64 3.0

Build the compiler Suite - directly from source


If you choose to build the compiler suite from the source tar ball, follow the steps outlined below.

1. Prerequisites


In order to compile Open64 successfully, your system should meet the following requirements:
  • Linux/IA64 OS
    Open64 as well as its variants have been successfully built on many Unix variants and Unix-like systems. This release has only been tested extensively on IA64 architectures running Linux operating systems. If you are going to build it on any platform other than Linux/IA64, you may need to make some minior changes to the source code.

  • GNU Compiler Collection
    Currently, GCC 3.2.x through 3.4.x are supported.

  • Intel Fortran Compiler (optional)
    The Fortran front-end executable is available in *BOTH* source and binary packages. If you are going to build the front-end by yourself, the Intel Fortran Compiler should be installed properly prior to the build. A free version for noncommercial use is available from Intel


2. Build Steps


Follow these steps to build the compiler:

Step 1. Expand the source tarball
After that, the whole source hierarchy will be in directory rooted at open64-3.0/. Change working directory to open64-3.0/.


Step 2. Build the compiler components by simply invoking command:
make -f Make.native.
If you want to build a debuggable compiler, use this command instead:
make BUILD_OPTIMIZE=DEBUG -f Make.native

Developers may find this command handy in building individual component, say wopt.so:
make BUILD_OPTIMIZE=DEBUG wopt.so -f Make.native


Step 3. (optional):
If you want to build the Fortran front-end by yourself, read section 3. Build Fortran Front-End for the details. The pre-built executable is provided in the source package. Normally, you don't need to build one. If you decide to use the pre-built front-end executable, simply skip this step.

Step 4.
Set environment varialbe TOOLROOT to anywhere you have write permission.

Step 5.
Call 'make install -f Make.native' or 'INSTALL.native' to install all compiler components and archives.

The C, C++, Fortran compilers are now avilable in folder $TOOLROOT/usr/bin/ They are opencc, openCC, openf90 respectively.


3. Build Fortran Front-End


The Fortran front-end executable for IA64 system is provided in both binary and source packages. Normally, you need *NOT* to build it by yourself.

If you are going to build one, make sure the Intel Fortran Compiler suite is installed properly as mentioned above.

Currently, the path(s) for Intel's Fortran Compiler are hardwired in source file 'kpro64/linux/make/gcommondefs'. You probably need to change variable 'F90' (line 102) and 'F90_RTLIBS'(line 103) in that file to reflect your setup.

If everything is ready, use this command to bulid the front-end:
make mfef95 -f Make.native

4 Some Notes on Build


  • The compiler is built with flag '-Werror' which treats warnings as error.
    If the build process terminates due to warnings, you can get around this with:
    make ... ERROR_ON_WARNINGS="" ...
    i.e. simply repeat the make process with ERROR_ON_WARNINGS="".

  • GNU Make utility version 3.81 is shipped with many of the latest Linux distributions. Building the compiler suite with it may cause some weird complaints pertaining to dependent files don't exist (they are actually  there). You can ignore those complaits, and repeat the make command to continue.