From b57e7488feebed4d91e99c254739343d12de2bf3 Mon Sep 17 00:00:00 2001
From: Duncan Sands There are some complications however: The only platform for which the Ada front-end is known to build is
32 bit intel x86 running linux. It is unlikely to build for other
- systems without some work.
-
The build requires having a compiler that supports Ada, C and C++. The Ada front-end is written in Ada so an Ada compiler is needed to build it. The LLVM parts of llvm-gcc are written in C++ so a C++ compiler is needed to build them. The rest of gcc is written in C. @@ -99,15 +99,15 @@ top-level README.LLVM file, adding ",ada" to EXTRALANGS, for example: the rest of gcc). Otherwise it is possible to combine two versions of gcc, one that supports Ada and C (such as GNAT GPL Edition) and another - which supports C++, see below.
Supposing appropriate compilers are available, llvm-gcc with Ada support can be built using the following recipe:
Download the LLVM source + and unpack it:
wget http://llvm.org/releases/2.2/llvm-2.2.tar.gz @@ -115,17 +115,17 @@ tar xzf llvm-2.2.tar.gz mv llvm-2.2 llvm
or check out the + latest version from subversion:
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
Download the llvm-gcc-4.2 source - and unpack it: + and unpack it:
wget http://llvm.org/releases/2.2/llvm-gcc4.2-2.2.source.tar.gz @@ -133,16 +133,16 @@ tar xzf llvm-gcc4.2-2.2.source.tar.gz mv llvm-gcc4.2-2.2.source llvm-gcc-4.2
or check out the + latest version from subversion:
svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk llvm-gcc-4.2
Make a build directory llvm-objects for llvm and make it the + current directory:
mkdir llvm-objects @@ -150,36 +150,36 @@ cd llvm-objects
Configure LLVM (here it is configured to install into /usr/local):
../llvm/configure --prefix=/usr/local
If you have a multi-compiler setup and the C++ compiler is not the + default, then you can configure like this:
CXX=PATH_TO_C++_COMPILER ../llvm/configure --prefix=/usr/local
Build LLVM:
make
Install LLVM (optional):
make install
Make a build directory llvm-gcc-4.2-objects for llvm-gcc and make it the + current directory:
@@ -189,15 +189,15 @@ cd llvm-gcc-4.2-objects
Configure llvm-gcc (here it is configured to install into /usr/local). Additional languages can be appended to the --enable-languages switch, - for example --enable-languages=ada,c,c++. + for example --enable-languages=ada,c,c++.
../llvm-gcc-4.2/configure --prefix=/usr/local --enable-languages=ada,c --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-shared --disable-bootstrap --disable-multilib
If you have a multi-compiler setup, then you can configure like this:
@@ -207,7 +207,7 @@ export CXX=PATH_TO_C++_COMPILER
Build and install the compiler:
make -- cgit v1.1