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 |
|
---|
7 | <!ENTITY llvm-download-http "http://llvm.org/releases/&llvm-version;/llvm-&llvm-version;.tar.gz">
|
---|
8 | <!ENTITY llvm-download-ftp " ">
|
---|
9 | <!ENTITY llvm-md5sum "a8e5f5f1c1adebae7b4a654c376a6005">
|
---|
10 | <!ENTITY llvm-size "9.9 MB">
|
---|
11 | <!ENTITY llvm-buildsize "265 MB">
|
---|
12 | <!ENTITY llvm-time "13.2 SBU">
|
---|
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
|
---|
33 | modular and reusable compiler and toolchain technologies. The LLVM Core
|
---|
34 | libraries provide a modern source- and target-independent optimizer, along
|
---|
35 | with code generation support for many popular CPUs (as well as some less
|
---|
36 | common ones!) These libraries are built around a well specified code
|
---|
37 | representation known as the LLVM intermediate representation ("LLVM
|
---|
38 | IR").</para>
|
---|
39 |
|
---|
40 | &lfs70_checked;
|
---|
41 |
|
---|
42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
43 | <itemizedlist spacing="compact">
|
---|
44 | <listitem>
|
---|
45 | <para>Download (HTTP): <ulink url="&llvm-download-http;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download (FTP): <ulink url="&llvm-download-ftp;"/></para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download MD5 sum: &llvm-md5sum;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Download size: &llvm-size;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated disk space required: &llvm-buildsize;</para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>Estimated build time: &llvm-time;</para>
|
---|
61 | </listitem>
|
---|
62 | </itemizedlist>
|
---|
63 |
|
---|
64 | <bridgehead renderas="sect3">LLVM Dependencies</bridgehead>
|
---|
65 |
|
---|
66 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
67 | <para role="optional">
|
---|
68 | <xref linkend="doxygen"/>,
|
---|
69 | <xref linkend="graphviz"/>, and
|
---|
70 | <xref linkend="libffi"/>
|
---|
71 | </para>
|
---|
72 |
|
---|
73 | <para condition="html" role="usernotes">User Notes:
|
---|
74 | <ulink url="&blfs-wiki;/llvm"/></para>
|
---|
75 |
|
---|
76 | </sect2>
|
---|
77 |
|
---|
78 | <sect2 role="installation">
|
---|
79 | <title>Installation of LLVM</title>
|
---|
80 |
|
---|
81 | <para>Install <application>llvm</application> by running the following
|
---|
82 | commands:</para>
|
---|
83 |
|
---|
84 | <screen><userinput>touch tools/edis/EnhancedDisassembly.exports &&
|
---|
85 | ./configure --prefix=/opt/llvm &&
|
---|
86 | find -name Makefile -exec \
|
---|
87 | sed -i -r -e '/^LIBRARYNAME/a SHARED_LIBRARY = 1' \
|
---|
88 | -e 's#BUILD_ARCHIVE :*= 1#NO_&#' \
|
---|
89 | -e '/^USEDLIBS/s# ([A-Za-z]*).a# -l\1#g' \
|
---|
90 | -e 's#^USEDLIBS#LDFLAGS#' {} \; &&
|
---|
91 | sed -i 's#BUILD_ARCHIVE = 1#NO_&#' Makefile.rules &&
|
---|
92 | sed -i 's#x)/docs#x)/share/doc#' Makefile.config &&
|
---|
93 | make</userinput></screen>
|
---|
94 |
|
---|
95 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
96 |
|
---|
97 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
98 |
|
---|
99 | <screen role="root"><userinput>make install &&
|
---|
100 | echo "/opt/llvm/lib" >> /etc/ld.so.conf &&
|
---|
101 | ldconfig &&
|
---|
102 | echo "pathappend /usr/share/man MANPATH" >> /etc/profile.d/extrapaths.sh &&
|
---|
103 | echo "pathappend /opt/llvm/share/man MANPATH" >> /etc/profile.d/extrapaths.sh &&
|
---|
104 | echo "pathappend /opt/llvm/bin" >> /etc/profile.d/extrapaths.sh &&
|
---|
105 | ln -svf /opt/llvm/share/doc /usr/share/doc/llvm-&llvm-version;</userinput></screen>
|
---|
106 |
|
---|
107 | </sect2>
|
---|
108 |
|
---|
109 | <sect2 role="commands">
|
---|
110 | <title>Command Explanations</title>
|
---|
111 |
|
---|
112 | <para><parameter>--prefix=/opt/llvm</parameter>: This package has a large
|
---|
113 | number of libraries and executables. This option keeps them
|
---|
114 | separate.</para>
|
---|
115 |
|
---|
116 | <para><userinput>find -name Makefile -exec sed ...</userinput>: This
|
---|
117 | command ensures that dynamic libraries are built.</para>
|
---|
118 |
|
---|
119 | <para><userinput>sed ... Makefile.rules</userinput>: This
|
---|
120 | command disables building static libraries.</para>
|
---|
121 |
|
---|
122 | <para><userinput>echo "pathappend ..." >>
|
---|
123 | /etc/profile.d/extrapaths.sh</userinput>: Set up the user paths properly to
|
---|
124 | find the program executables and man pages.</para>
|
---|
125 |
|
---|
126 | </sect2>
|
---|
127 |
|
---|
128 | <sect2 role="content">
|
---|
129 | <title>Contents</title>
|
---|
130 |
|
---|
131 | <segmentedlist>
|
---|
132 | <segtitle>Installed Programs</segtitle>
|
---|
133 | <segtitle>Installed Libraries</segtitle>
|
---|
134 | <segtitle>Installed Directories</segtitle>
|
---|
135 |
|
---|
136 | <seglistitem>
|
---|
137 | <seg>numerous programs installed in /opt/llvm/bin</seg>
|
---|
138 | <seg>numerous libraries installed in /opt/llvm/lib</seg>
|
---|
139 | <seg>/opt/llvm</seg>
|
---|
140 | </seglistitem>
|
---|
141 | </segmentedlist>
|
---|
142 | <!--
|
---|
143 | <variablelist>
|
---|
144 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
145 | <?dbfo list-presentation="list"?>
|
---|
146 | <?dbhtml list-presentation="table"?>
|
---|
147 |
|
---|
148 | <varlistentry id="rep">
|
---|
149 | <term><command>rep</command></term>
|
---|
150 | <listitem>
|
---|
151 | <para>is the Lisp interpreter.</para>
|
---|
152 | <indexterm zone="llvm rep">
|
---|
153 | <primary sortas="b-rep">rep</primary>
|
---|
154 | </indexterm>
|
---|
155 | </listitem>
|
---|
156 | </varlistentry>
|
---|
157 |
|
---|
158 | <varlistentry id="llvm-lib">
|
---|
159 | <term><filename class='libraryfile'>llvm.so</filename></term>
|
---|
160 | <listitem>
|
---|
161 | <para> contains the functions necessary for the Lisp interpreter.</para>
|
---|
162 | <indexterm zone="llvm llvm-lib">
|
---|
163 | <primary sortas="c-llvm">llvm.so</primary>
|
---|
164 | </indexterm>
|
---|
165 | </listitem>
|
---|
166 | </varlistentry>
|
---|
167 |
|
---|
168 | </variablelist>
|
---|
169 | -->
|
---|
170 | </sect2>
|
---|
171 |
|
---|
172 | </sect1>
|
---|
173 |
|
---|