Changeset f36bebcd


Ignore:
Timestamp:
05/12/2012 07:33:22 PM (10 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 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, ken/refactor-virt, krejzi/svn, lazarus, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
5bcb329
Parents:
86f7fa0
Message:

Add clang to llvm.
Add a note to screen about changing tty gid values.

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

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    r86f7fa0 rf36bebcd  
    943943<!ENTITY gnash-version                "0.8.10">
    944944<!ENTITY gimp-version                 "2.8.0">
    945 <!ENTITY icedtea-web-version          "1.0.1">
     945<!ENTITY icedtea-web-version          "1.2">
    946946<!ENTITY inkscape-version             "0.48.2">
    947947<!ENTITY pan-version                  "0.133">
  • general/genutils/screen.xml

    r86f7fa0 rf36bebcd  
    108108    to the value used by LFS.</para>
    109109
     110    <note><para>Newer versions of LFS use the value 5 for the tty group.  If
     111    you are using the development version of LFS, change the pty-group option
     112    to 5.</para></note>
     113
    110114    <para><command>sed -i -e "s%/usr/local/etc/screenrc%/etc/screenrc%"
    111115    {etc,doc}/*</command>: This command corrects the configuration and
  • general/prog/llvm.xml

    r86f7fa0 rf36bebcd  
    1010  <!ENTITY llvm-size "9.9 MB">
    1111  <!ENTITY llvm-buildsize "265 MB">
    12   <!ENTITY llvm-time "13.2 SBU">
     12  <!ENTITY llvm-time "13.2 SBU (add about 7 SBU for clang)">
    1313]>
    1414
     
    3131
    3232    <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>
     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>
    3942
    4043    &lfs71_checked;
     
    6265    </itemizedlist>
    6366
     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;.tar.gz"/>
     72        </para>
     73      </listitem>
     74    </itemizedlist>
     75
    6476    <bridgehead renderas="sect3">LLVM Dependencies</bridgehead>
     77
     78    <bridgehead renderas="sect4">Recommended</bridgehead>
     79    <para role="recommended">
     80       <xref linkend="libffi"/>
     81    </para>
    6582
    6683    <bridgehead renderas="sect4">Optional</bridgehead>
    6784    <para role="optional">
    68        <xref linkend="doxygen"/>,
    69        <xref linkend="graphviz"/>, and
    70        <xref linkend="libffi"/>
     85       <xref linkend="doxygen"/> and
     86       <xref linkend="graphviz"/>
    7187    </para>
    7288
     
    7995    <title>Installation of LLVM</title>
    8096
     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-3.0.tar.gz -C tools &amp;&amp;
     101mv tools/clang-3.0.src tools/clang</userinput></screen>
     102
    81103    <para>Install <application>llvm</application> by running the following
    82104    commands:</para>
    83105
    84 <screen><userinput>touch tools/edis/EnhancedDisassembly.exports               &amp;&amp;
    85 ./configure --prefix=/opt/llvm                             &amp;&amp;
    86 find -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;
    91 sed -i 's#BUILD_ARCHIVE = 1#NO_&amp;#' Makefile.rules          &amp;&amp;
    92 sed -i 's#x)/docs#x)/share/doc#' Makefile.config           &amp;&amp;
     106<screen><userinput>touch tools/edis/EnhancedDisassembly.exports &amp;&amp;
     107
     108CFLAGS="$CFLAGS -fno-tree-pre"               &amp;&amp;
     109CXXFLAGS="$CXXFLAGS -fno-tree-pre"           &amp;&amp;
     110
     111sed -i -e 's:\$(PROJ_prefix)/etc/llvm:/etc/llvm:'                      \
     112       -e 's:\$(PROJ_prefix)/lib:$(PROJ_prefix)/lib/llvm:'             \
     113       -e 's:\$(PROJ_prefix)/docs/llvm:$(PROJ_prefix)/share/doc/llvm:' \
     114       Makefile.config.in  &amp;&amp;
     115
     116sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' Makefile.rules &amp;&amp;
     117
     118export CPPFLAGS="$CPPFLAGS $(pkg-config --cflags libffi)"                  &amp;&amp;
     119
     120CC=gcc                                 \
     121CXX=g++                                \
     122./configure --prefix=/usr              \
     123            --libdir=/usr/lib/llvm     \
     124            --sysconfdir=/etc          \
     125            --enable-shared            \
     126            --enable-libffi            \
     127            --enable-targets=all       \
     128            --disable-expensive-checks \
     129            --disable-debug-runtime    \
     130            --disable-assertions       \
     131            --enable-optimized        &amp;&amp;
     132
    93133make</userinput></screen>
    94134
     
    97137    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    98138
    99 <screen role="root"><userinput>make install                            &amp;&amp;
    100 echo "/opt/llvm/lib" >> /etc/ld.so.conf &amp;&amp;
    101 ldconfig                                &amp;&amp;
    102 echo "pathappend /usr/share/man MANPATH"      &gt;&gt; /etc/profile.d/extrapaths.sh &amp;&amp;
    103 echo "pathappend /opt/llvm/share/man MANPATH" &gt;&gt; /etc/profile.d/extrapaths.sh &amp;&amp;
    104 echo "pathappend /opt/llvm/bin"               &gt;&gt; /etc/profile.d/extrapaths.sh &amp;&amp;
    105 ln -svf /opt/llvm/share/doc /usr/share/doc/llvm-&llvm-version;</userinput></screen>
     139<screen role="root"><userinput>make install</userinput></screen>
    106140
    107141  </sect2>
     
    110144    <title>Command Explanations</title>
    111145
    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>
     146    <para><userinput>CFLAGS=... CXXFLAGS=...</userinput>:  Build without
     147    -ftree-pre as a workaround for clang segfaulting on x86_64 systems.</para>
     148
     149    <para><userinput>sed ... Makefile.config.in</userinput>: This fixes
     150    installation directories.</para>
     151
     152    <para><userinput>sed ... Makefile.rules</userinput>: This fixes an insecure
     153    rpath that points ot the build directory.</para>
    125154
    126155  </sect2>
     
    135164
    136165      <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>
     166        <seg>clang, clang++, and numerous llvm-* build tools</seg>
     167        <seg>numerous custom libraries to support llvm and clang programs</seg>
     168        <seg>/usr/lib/{clang,llvm}, /usr/share/doc/llvm</seg>
    140169      </seglistitem>
    141170    </segmentedlist>
  • introduction/welcome/changelog.xml

    r86f7fa0 rf36bebcd  
    4444
    4545    <listitem>
    46       <para>May 12th, 2012</para>
    47       <itemizedlist>
     46      <para>May 12rd, 2012</para>
     47      <itemizedlist>
     48        <listitem>
     49          <para>[bdubbs] - Add clang to llvm.</para>
     50        </listitem>
    4851        <listitem>
    4952          <para>[rthomsen] - Update to libdrm 2.4.34.</para>
  • xsoft/other/icedtea-web.xml

    r86f7fa0 rf36bebcd  
    7272    following commands:</para>
    7373
    74 <screen><userinput>sed 's@prefix)/man@mandir)@' \
    75     -i Makefile.in &amp;&amp;
    76 ./configure --prefix=${JAVA_HOME}/jre \
     74<screen><userinput>./configure --prefix=${JAVA_HOME}/jre    \
    7775            --with-jdk-home=${JAVA_HOME} \
    78             --disable-docs \
     76            --disable-docs               \
    7977            --mandir=${JAVA_HOME}/man &amp;&amp;
    8078make</userinput></screen>
    8179
    82 <!-- <para>To test the results, issue: <command>make test</command>.</para> -->
    8380    <para>This package does not come with a test suite.</para>
    8481
Note: See TracChangeset for help on using the changeset viewer.