source: general/prog/llvm.xml@ ba291e0

10.0 10.1 11.0 11.1 11.2 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules plabs/python-mods qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since ba291e0 was ba291e0, checked in by Krejzi <krejzi@…>, 10 years ago

Mark some packages as 7.2 checked. Part 4 - Programming.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10552 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.9 KB
Line 
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;.src.tar.gz">
8 <!ENTITY llvm-download-ftp " ">
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)">
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 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>
42
43 &lfs72_checked;
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
67 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
68 <itemizedlist spacing='compact'>
69 <listitem>
70 <para>Optional package:
71 <ulink url="http://llvm.org/releases/&llvm-version;/clang-&llvm-version;.src.tar.gz"/>
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">LLVM Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Recommended</bridgehead>
79 <para role="recommended">
80 <xref linkend="libffi"/>
81 </para>
82
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="doxygen"/> and
86 <xref linkend="graphviz"/>
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
97 <para>If you downloaded the optional <application>clang</application> package,
98 install it into the source tree:</para>
99
100<screen><userinput>tar -xf ../clang-&llvm-version;.src.tar.gz -C tools &amp;&amp;
101mv tools/clang-&llvm-version;.src tools/clang</userinput></screen>
102
103 <para>Install <application>llvm</application> by running the following
104 commands:</para>
105
106<screen><userinput>CC=gcc \
107CXX=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 &amp;&amp;
118
119make</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
125<screen role="root"><userinput>make install</userinput></screen>
126
127 </sect2>
128<!--
129 <sect2 role="commands">
130 <title>Command Explanations</title>
131
132 <para><userinput>sed ... Makefile.config.in</userinput>: This fixes
133 installation directories.</para>
134
135 <para><userinput>sed ... Makefile.rules</userinput>: This fixes an insecure
136 rpath that points to the build directory.</para>
137
138 </sect2>
139-->
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>
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>
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
Note: See TracBrowser for help on using the repository browser.