llvm.org GIT mirror llvm / d918b7e
The Ada front-end from the LLVM 2.2 release cannot be build with GNAT GPL 2006, only with GNAT GPL 2005. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49529 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 11 years ago
1 changed file(s) with 9 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
9191 systems without some work.

9292
  • The build requires having a compiler that supports Ada, C and C++.

  • 9393 The Ada front-end is written in Ada so an Ada compiler is needed to
    94 build it. Appropriate Ada compilers are gcc-4.2 (or earlier) or the
    95 2006 GNAT GPL Edition
    96 (or earlier). As a general rule, the Ada compiler used for the
    97 build must not be more recent than the Ada compiler it is building.
    98 This is why the build fails with gcc-4.3 and the 2007 GNAT GPL Edition.
    94 build it. Compilers known to work with the
    95 LLVM 2.2 release
    96 are gcc-4.2 and the
    97 2005 GNAT GPL Edition.
    98 LLVM from subversion
    99 also works with the
    100 2006 and 2007 GNAT GPL Editions.
    99101 The LLVM parts of llvm-gcc are written in C++ so a C++ compiler is
    100102 needed to build them. The rest of gcc is written in C.
    101103 Some linux distributions provide a version of gcc that supports all
    102104 three languages (the Ada part often comes as an add-on package to
    103105 the rest of gcc). Otherwise it is possible to combine two versions
    104106 of gcc, one that supports Ada and C (such as the
    105 2006 GNAT GPL Edition)
    107 2005 GNAT GPL Edition)
    106108 and another which supports C++, see below.

    107109
  • Because the Ada front-end is experimental, it is wise to build the

  • 108 compiler with checking enabled. This causes it to run slower, but
    110 compiler with checking enabled. This causes it to run much slower, but
    109111 helps catch mistakes in the compiler (please report any problems using
    110112 LLVM bugzilla).

    111113