Author: pierre
Date: Tue Sep 13 09:56:10 2016
New Revision: 17757
Log:
Fix LLVM and mesa instructions for LLVM-3.9
Modified:
trunk/BOOK/general/prog/llvm.xml
trunk/BOOK/x/installing/mesa.xml
Modified: trunk/BOOK/general/prog/llvm.xml
==============================================================================
--- trunk/BOOK/general/prog/llvm.xml Sun Sep 11 16:53:45 2016 (r17756)
+++ trunk/BOOK/general/prog/llvm.xml Tue Sep 13 09:56:10 2016 (r17757)
@@ -207,7 +207,7 @@
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DLLVM_ENABLE_FFI=ON \
-DCMAKE_BUILD_TYPE=Release \
- -DBUILD_SHARED_LIBS=ON \
+ -DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
-Wno-dev .. &&
make</userinput></screen>
@@ -217,9 +217,6 @@
to generate the html documentation and manual pages, issue the
following commands:
</para>
-<!-- The following command still works but let's try the next one
-<screen><userinput>make -C ../docs -f Makefile.sphinx man</userinput></screen>
--->
<screen><userinput>cmake -DLLVM_ENABLE_SPHINX=ON \
-DSPHINX_WARNINGS_AS_ERRORS=OFF \
-Wno-dev .. &&
@@ -242,29 +239,6 @@
<screen role="root"><userinput>make install</userinput></screen>
-<!-- version 3.8.0: Clang-analyser is built and installed by default
- <para>
- If you had <xref linkend="python2"/> installed and you have
- built <application>Clang</application>, install the
- <application>Clang Analyzer</application> by running the
- following command as the
- <systemitem class="username">root</systemitem> user:
- </para>
-
-<screen role="root"><userinput>install -v -dm755 /usr/lib/clang-analyzer
&&
-
-for prog in scan-build scan-view
-do
- cp -rfv ../tools/clang/tools/$prog /usr/lib/clang-analyzer/ &&
- ln -sfv ../lib/clang-analyzer/$prog/$prog /usr/bin/
-done
-unset prog &&
-
-ln -sfv /usr/bin/clang \
- /usr/lib/clang-analyzer/scan-build/ &&
-mv -v /usr/lib/clang-analyzer/scan-build/scan-build.1 \
- /usr/share/man/man1/</userinput></screen>
--->
<para>
If you have built the documentation, install it by running the
following command as the <systemitem class="username">root</systemitem>
@@ -289,12 +263,6 @@
<sect2 role="commands">
<title>Command Explanations</title>
-<!--
- <para>
- <command>sed -e ... Makefile.config.in</command>: This sed fixes
- location of the installed documentation.
- </para>
--->
<para>
<parameter>-DLLVM_ENABLE-FFI=ON</parameter>: This switch enables
<application>LLVM</application> to use
@@ -303,6 +271,12 @@
</para>
<para>
+ <parameter>-DLLVM_BUILD_LLVM_DYLIB=ON</parameter>: builds libraries as
+ static and links all of them into an unique shared one. This is the
+ recommended way of building a shared library.
+ </para>
+
+ <para>
<parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch enables
compiler optimizations in order to speed up the code and reduce its size.
It also disables some compile checks, not necessary on a production
@@ -310,12 +284,6 @@
</para>
<para>
- <parameter>-DBUILD_SHARED_LIBS=ON</parameter>: This switch enables
- building all the <application>LLVM</application> libraries as shared
- libraries instead of static.
- </para>
-
- <para>
<parameter>-DLLVM_TARGETS_TO_BUILD="host;AMDGPU"</parameter>: This
switch enables building for the same target as the host, and also for
the r600 AMD GPU used by the Mesa r600 and radeonsi drivers. Default is
@@ -325,9 +293,16 @@
</para>
<para>
- <option>-DLLVM_BUILD_LLVM_DYLIB=ON</option>: if used instead of
- <parameter>-DBUILD_SHARED_LIBS=ON</parameter>, builds libraries as
- static and links all of them into an unique shared one.
+ <option>-DLLVM_LINK_LLVM_DYLIB=ON</option>: Used in conjunction with
+ <parameter>-DLLVM_BUILD_LLVM_DYLIB=ON</parameter>, this switch enables
+ linking the tools against the shared library instead of the static ones.
+ </para>
+
+ <para>
+ <option>-DBUILD_SHARED_LIBS=ON</option>: if used instead of
+ <parameter>-DLLVM_BUILD_LLVM_DYLIB=ON</parameter>, builds all the
+ <application>LLVM</application> libraries (about 60) as shared
+ libraries instead of static.
</para>
<para>
@@ -362,8 +337,8 @@
scan-build, scan-view, verify-uselistorder, and yaml2obj
</seg>
<seg>
- BugpointPasses.so, libclang*.so (21 libraries), libLLVM*.so (53
- libraries), libLTO.so, and LLVMHello.so
+ BugpointPasses.so, LLVMHello.so, libLLVM.so, libLLVM*.a (57
+ libraries), libLTO.so, libclang.so and libclang*.a (24 libraries)
</seg>
<seg>
/usr/include/{clang,clang-c,llvm,llvm-c},
Modified: trunk/BOOK/x/installing/mesa.xml
==============================================================================
--- trunk/BOOK/x/installing/mesa.xml Sun Sep 11 16:53:45 2016 (r17756)
+++ trunk/BOOK/x/installing/mesa.xml Tue Sep 13 09:56:10 2016 (r17757)
@@ -104,15 +104,17 @@
<xref linkend="llvm"/> (required for Gallium3D r300, r600 and radeonsi
drivers and also for llvmpipe which is intended to be the fastest of the
three sw rasterizers, see
- <ulink url="http://www.mesa3d.org/faq.html#part3"/>)
+ <ulink url="http://www.mesa3d.org/systems.html"/>)
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<xref linkend="libgcrypt"/>,
<xref linkend="nettle"/>,
- (<xref linkend="wayland"/> required for <xref linkend='plasma5-build'/>
- <phrase revision="systemd"> and for
<application>GNOME</application></phrase>),
+ (<xref linkend="wayland"/> required for
+ <xref linkend='plasma5-build'/><phrase revision="systemd">,</phrase>
+ <phrase revision="sysv">and</phrase>
+ <xref linkend='lxqt'/><phrase revision="systemd">, and GNOME</phrase>),
<ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
(provides more than 300 extra demos to test
<application>Mesa</application>; this includes the same programs
@@ -156,12 +158,16 @@
</para>
<note>
- <para>Add wayland to the <option>--with-egl-platforms</option> option
- below if you plan on building <xref linkend='plasma5-build'/>
- <phrase revision="systemd">or GNOME</phrase>.</para>
+ <para>
+ Add wayland to the <parameter>--with-egl-platforms</parameter> switch
+ below if you plan on building
+ <xref linkend='plasma5-build'/><phrase revision="systemd">,</phrase>
+ <phrase revision="sysv">or</phrase>
+ <xref linkend='lxqt'/><phrase revision="systemd">, or GNOME</phrase>.
+ </para>
</note>
-<screen><userinput>GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast,swr"
&&
+<screen><userinput>GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" &&
sed -i "/pthread-stubs/d" configure.ac &&
sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh &&
@@ -290,6 +296,8 @@
will need to remove r300, r600, radeonsi, and swr from the list if you
did
not install <application>elfutils</application> and
<application>LLVM</application> with the r600/amdgpu and host backends.
+ Note that swr is in an early development stage, and the BLFS team does
+ not recommend building it.
</para>
<para>
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page