source: general/prog/llvm.xml@ a197d82

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a197d82 was a197d82, checked in by Andrew Benton <andy@…>, 12 years ago

spacing

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9109 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;.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 &amp;&amp;
85./configure --prefix=/opt/llvm &amp;&amp;
86find -name Makefile -exec \
87 sed -i -r -e '/^LIBRARYNAME/a SHARED_LIBRARY = 1' \
88 -e 's#BUILD_ARCHIVE :*= 1#NO_&amp;#' \
89 -e '/^USEDLIBS/s# ([A-Za-z]*).a# -l\1#g' \
90 -e 's#^USEDLIBS#LDFLAGS#' {} \; &amp;&amp;
91sed -i 's#BUILD_ARCHIVE = 1#NO_&amp;#' Makefile.rules &amp;&amp;
92sed -i 's#x)/docs#x)/share/doc#' Makefile.config &amp;&amp;
93make</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 &amp;&amp;
100echo "/opt/llvm/lib" >> /etc/ld.so.conf &amp;&amp;
101ldconfig &amp;&amp;
102echo "pathappend /usr/share/man MANPATH" &gt;&gt; /etc/profile.d/extrapaths.sh &amp;&amp;
103echo "pathappend /opt/llvm/share/man MANPATH" &gt;&gt; /etc/profile.d/extrapaths.sh &amp;&amp;
104echo "pathappend /opt/llvm/bin" &gt;&gt; /etc/profile.d/extrapaths.sh &amp;&amp;
105ln -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 ..." &gt;&gt;
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
Note: See TracBrowser for help on using the repository browser.