source: chapter05/binutils-pass2.xml@ 1375d26

Last change on this file since 1375d26 was 1375d26, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (chapter05/*.xml) RELAX NG validation fixes

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4385 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-tools-binutils-pass2" role="wrap">
8<title>Binutils-&binutils-version; - Pass 2</title>
9<?dbhtml filename="binutils-pass2.html"?>
10
11<indexterm zone="ch-tools-binutils-pass2">
12<primary sortas="a-Binutils">Binutils</primary>
13<secondary>tools, pass 2</secondary></indexterm>
14
15<section role="package"><title/>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>1.5 SBU</seg><seg>108 MB</seg></seglistitem>
21</segmentedlist>
22
23</section>
24
25<section role="installation">
26<title>Re-installation of Binutils</title>
27
28<para>Create a separate build directory again:</para>
29
30<screen><userinput>mkdir ../binutils-build
31cd ../binutils-build</userinput></screen>
32
33<para>Now prepare Binutils for compilation:</para>
34
35<screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
36 --enable-shared --with-lib-path=/tools/lib</userinput></screen>
37
38<para>The meaning of the new configure option:</para>
39
40<variablelist>
41<varlistentry>
42<term><parameter>--with-lib-path=/tools/lib</parameter></term>
43<listitem><para>This tells the configure script to specify the library search path
44during the compilation of Binutils, resulting in <parameter>/tools/lib</parameter>
45to be passed to the linker. This prevents the linker from searching through library
46directories on the host.</para></listitem>
47</varlistentry>
48</variablelist>
49
50<para>Before starting to build Binutils, remember to unset any environment
51variables that override the default optimization flags.</para>
52
53<para>Compile the package:</para>
54
55<screen><userinput>make</userinput></screen>
56
57<para>Compilation is now complete. As discussed earlier, running the test suite
58isn't mandatory for the temporary tools here in this chapter. If you do want to
59run the Binutils test suite though, the following command will do so:</para>
60
61<screen><userinput>make -k check</userinput></screen>
62
63<para>Except for a few known failures, the binutils tests should all pass. The
64exceptions to this rule are as follows:</para>
65
66<screen><computeroutput>* 5 FAIL (unexpected failure) for visibility
67* 1 FAIL for selective4
68* 1 FAIL for selective5</computeroutput></screen>
69
70<!--
71
72<para>There should be no unexpected failures here, expected failures are fine.
73Unfortunately, there is no easy way to view the test results summary like there
74was for the GCC package. However, if a failure occurs here, it should be easy
75to spot. The output shown will contain something like:</para>
76
77<blockquote><screen><computeroutput>make[1]: *** [check-binutils] Error 2</computeroutput></screen></blockquote>
78
79-->
80
81<para>And install the package:</para>
82
83<screen><userinput>make install</userinput></screen>
84
85<para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in the next
86chapter:</para>
87
88<screen><userinput>make -C ld clean
89make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen>
90
91
92<warning><para><emphasis>Do not yet remove</emphasis> the Binutils source and
93build directories. You will need these directories again in the next chapter
94in the state they are in now.</para></warning>
95
96
97</section>
98
99<section role="content"><title/>
100<para>The details on this package are found in <xref linkend="contents-binutils"/>.</para>
101</section>
102
103</section>
Note: See TracBrowser for help on using the repository browser.