[7b74537e] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[3a56f11] | 7 | <!ENTITY llvm-download-http "http://llvm.org/releases/&llvm-version;/llvm-&llvm-version;.src.tar.gz">
|
---|
[7b74537e] | 8 | <!ENTITY llvm-download-ftp " ">
|
---|
[3a56f11] | 9 | <!ENTITY llvm-md5sum "16eaa7679f84113f65b12760fdfe4ee1">
|
---|
| 10 | <!ENTITY llvm-size "10.6 MB">
|
---|
| 11 | <!ENTITY llvm-buildsize "670 MB">
|
---|
| 12 | <!ENTITY llvm-time "13.0 SBU (add about 7 SBU for clang)">
|
---|
[7b74537e] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="llvm" xreflabel="llvm-&llvm-version;">
|
---|
| 16 | <?dbhtml filename="llvm.html" ?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>LLVM-&llvm-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="llvm">
|
---|
| 26 | <primary sortas="a-LLVM">LLVM</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to LLVM</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>llvm</application> package contains a collection of
|
---|
[f36bebcd] | 33 | modular and reusable compiler and toolchain technologies. The Low Level
|
---|
| 34 | Virtual MAchine (LLVM) Core libraries provide a modern source- and
|
---|
| 35 | target-independent optimizer, along with code generation support for many
|
---|
| 36 | popular CPUs (as well as some less common ones!) These libraries are built
|
---|
| 37 | around a well specified code representation known as the LLVM intermediate
|
---|
| 38 | representation ("LLVM IR").</para>
|
---|
| 39 |
|
---|
| 40 | <para>The optional <application>clang</application> package provides a
|
---|
| 41 | new C, C++, Objective C and Objective C++ front-end for the LLVM compiler.</para>
|
---|
[7b74537e] | 42 |
|
---|
[4c77a949] | 43 | &lfs71_checked;
|
---|
[7b74537e] | 44 |
|
---|
| 45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 46 | <itemizedlist spacing="compact">
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (HTTP): <ulink url="&llvm-download-http;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download (FTP): <ulink url="&llvm-download-ftp;"/></para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download MD5 sum: &llvm-md5sum;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Download size: &llvm-size;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated disk space required: &llvm-buildsize;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Estimated build time: &llvm-time;</para>
|
---|
| 64 | </listitem>
|
---|
| 65 | </itemizedlist>
|
---|
| 66 |
|
---|
[f36bebcd] | 67 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 68 | <itemizedlist spacing='compact'>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>Optional package:
|
---|
[3a56f11] | 71 | <ulink url="http://llvm.org/releases/&llvm-version;/clang-&llvm-version;.src.tar.gz"/>
|
---|
[f36bebcd] | 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
[7b74537e] | 76 | <bridgehead renderas="sect3">LLVM Dependencies</bridgehead>
|
---|
| 77 |
|
---|
[f36bebcd] | 78 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 79 | <para role="recommended">
|
---|
| 80 | <xref linkend="libffi"/>
|
---|
| 81 | </para>
|
---|
| 82 |
|
---|
[7b74537e] | 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 84 | <para role="optional">
|
---|
[f36bebcd] | 85 | <xref linkend="doxygen"/> and
|
---|
| 86 | <xref linkend="graphviz"/>
|
---|
[7b74537e] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <para condition="html" role="usernotes">User Notes:
|
---|
| 90 | <ulink url="&blfs-wiki;/llvm"/></para>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of LLVM</title>
|
---|
| 96 |
|
---|
[f36bebcd] | 97 | <para>If you downloaded the optional <application>clang</application> package,
|
---|
| 98 | install it into the source tree:</para>
|
---|
| 99 |
|
---|
[3a56f11] | 100 | <screen><userinput>tar -xf ../clang-&llvm-version;.src.tar.gz -C tools &&
|
---|
| 101 | mv tools/clang-&llvm-version;.src tools/clang</userinput></screen>
|
---|
[f36bebcd] | 102 |
|
---|
[7b74537e] | 103 | <para>Install <application>llvm</application> by running the following
|
---|
| 104 | commands:</para>
|
---|
| 105 |
|
---|
[3a56f11] | 106 | <screen><userinput>CC=gcc \
|
---|
[f36bebcd] | 107 | CXX=g++ \
|
---|
| 108 | ./configure --prefix=/usr \
|
---|
| 109 | --libdir=/usr/lib/llvm \
|
---|
| 110 | --sysconfdir=/etc \
|
---|
| 111 | --enable-shared \
|
---|
| 112 | --enable-libffi \
|
---|
| 113 | --enable-targets=all \
|
---|
| 114 | --disable-expensive-checks \
|
---|
| 115 | --disable-debug-runtime \
|
---|
| 116 | --disable-assertions \
|
---|
| 117 | --enable-optimized &&
|
---|
| 118 |
|
---|
[7b74537e] | 119 | make</userinput></screen>
|
---|
| 120 |
|
---|
| 121 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 122 |
|
---|
| 123 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 124 |
|
---|
[f36bebcd] | 125 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[7b74537e] | 126 |
|
---|
| 127 | </sect2>
|
---|
[3a56f11] | 128 | <!--
|
---|
[7b74537e] | 129 | <sect2 role="commands">
|
---|
| 130 | <title>Command Explanations</title>
|
---|
| 131 |
|
---|
[f36bebcd] | 132 | <para><userinput>sed ... Makefile.config.in</userinput>: This fixes
|
---|
| 133 | installation directories.</para>
|
---|
[7b74537e] | 134 |
|
---|
[f36bebcd] | 135 | <para><userinput>sed ... Makefile.rules</userinput>: This fixes an insecure
|
---|
[3a56f11] | 136 | rpath that points to the build directory.</para>
|
---|
[7b74537e] | 137 |
|
---|
| 138 | </sect2>
|
---|
[3a56f11] | 139 | -->
|
---|
[7b74537e] | 140 | <sect2 role="content">
|
---|
| 141 | <title>Contents</title>
|
---|
| 142 |
|
---|
| 143 | <segmentedlist>
|
---|
| 144 | <segtitle>Installed Programs</segtitle>
|
---|
| 145 | <segtitle>Installed Libraries</segtitle>
|
---|
| 146 | <segtitle>Installed Directories</segtitle>
|
---|
| 147 |
|
---|
| 148 | <seglistitem>
|
---|
[f36bebcd] | 149 | <seg>clang, clang++, and numerous llvm-* build tools</seg>
|
---|
| 150 | <seg>numerous custom libraries to support llvm and clang programs</seg>
|
---|
| 151 | <seg>/usr/lib/{clang,llvm}, /usr/share/doc/llvm</seg>
|
---|
[7b74537e] | 152 | </seglistitem>
|
---|
| 153 | </segmentedlist>
|
---|
| 154 | <!--
|
---|
| 155 | <variablelist>
|
---|
| 156 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 157 | <?dbfo list-presentation="list"?>
|
---|
| 158 | <?dbhtml list-presentation="table"?>
|
---|
| 159 |
|
---|
| 160 | <varlistentry id="rep">
|
---|
| 161 | <term><command>rep</command></term>
|
---|
| 162 | <listitem>
|
---|
| 163 | <para>is the Lisp interpreter.</para>
|
---|
| 164 | <indexterm zone="llvm rep">
|
---|
| 165 | <primary sortas="b-rep">rep</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="llvm-lib">
|
---|
| 171 | <term><filename class='libraryfile'>llvm.so</filename></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para> contains the functions necessary for the Lisp interpreter.</para>
|
---|
| 174 | <indexterm zone="llvm llvm-lib">
|
---|
| 175 | <primary sortas="c-llvm">llvm.so</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | </variablelist>
|
---|
| 181 | -->
|
---|
| 182 | </sect2>
|
---|
| 183 |
|
---|
| 184 | </sect1>
|
---|
| 185 |
|
---|