Changeset 98e7ac4 for chapter06


Ignore:
Timestamp:
12/18/2016 03:14:26 PM (7 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
ed3be61
Parents:
be3d9f3
Message:

Update toolchain sanity checks to use values for x86_64.

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

Location:
chapter06
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter06/adjusting.xml

    rbe3d9f3 r98e7ac4  
    5151  platform-specific differences in dynamic linker name):</para>
    5252
    53 <screen os="c"><computeroutput>[Requesting program interpreter: /lib/ld-linux.so.2]</computeroutput></screen>
     53<screen os="c"><computeroutput>[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]</computeroutput></screen>
    5454
    5555  <para>Note that <filename class="directory">/lib</filename> is now
    5656  the prefix of our dynamic linker.</para>
    5757
    58   <note><para>On 64-bit systems the interpreter should be
    59   /lib64/ld-linux-x86-64.so.2.</para></note>
     58  <note><para>On 32-bit systems the interpreter should be
     59  /lib/ld-linux.so.2.</para></note>
    6060
    6161  <para os="d">Now make sure that we're setup to use the correct start files:</para>
     
    6565  <para os="f">The output of the last command should be:</para>
    6666
    67 <screen><computeroutput>/usr/lib/crt1.o succeeded
    68 /usr/lib/crti.o succeeded
    69 /usr/lib/crtn.o succeeded</computeroutput></screen>
    70 
    71    <note><para>On 64-bit systems, the path above will be
    72    /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib64/.  This
    73    reduces to /usr/lib64 and /usr/lib64 is a symlink that points to
    74    /usr/lib.</para></note>
     67<screen><computeroutput>/usr/lib/../lib/crt1.o succeeded
     68/usr/lib/../lib/crti.o succeeded
     69/usr/lib/../lib/crtn.o succeeded</computeroutput></screen>
    7570
    7671  <para os="g">Verify that the compiler is searching for the correct header
     
    9287
    9388<screen><computeroutput>SEARCH_DIR("/usr/lib")
    94 SEARCH_DIR("/lib");</computeroutput></screen>
     89SEARCH_DIR("/lib")</computeroutput></screen>
    9590
    9691  <para os="l">Next make sure that we're using the correct libc:</para>
     
    9893<screen os="m"><userinput>grep "/lib.*/libc.so.6 " dummy.log</userinput></screen>
    9994
    100   <para os="n">The output of the last command (allowing for a lib64 directory
    101   on 64-bit hosts) should be:</para>
     95  <para os="n">The output of the last command should be:</para>
    10296
    10397<screen os="o"><computeroutput>attempt to open /lib/libc.so.6 succeeded</computeroutput></screen>
     
    107101<screen os="q"><userinput>grep found dummy.log</userinput></screen>
    108102
    109   <para os="r"> The output of the last command should be (allowing for
    110   platform-specific differences in dynamic linker name and a lib64 directory on
    111   64-bit hosts):</para>
     103  <para os="r">The output of the last command should be (allowing for
     104  platform-specific differences in dynamic linker name):</para>
    112105
    113 <screen os="s"><computeroutput>found ld-linux.so.2 at /lib/ld-linux.so.2</computeroutput></screen>
     106<screen os="s"><computeroutput>found ld-linux-x86-64.so.2 at /lib/ld-linux-x86-64.so.2</computeroutput></screen>
    114107
    115108  <para os="t">If the output does not appear as shown above or is not received
  • chapter06/gcc.xml

    rbe3d9f3 r98e7ac4  
    121121
    122122    <para>Results can be compared with those located at <ulink
    123     url="&test-results;"/> and <ulink url="http://gcc.gnu.org/ml/gcc-testresults/"/>.</para>
     123    url="&test-results;"/> and
     124    <ulink url="http://gcc.gnu.org/ml/gcc-testresults/"/>.</para>
    124125
    125126    <para>A few unexpected failures cannot always be avoided. The GCC developers
     
    180181    xpointer="xpointer(//*[@os='f'])"/>
    181182
    182 <screen><computeroutput>/usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/../../../crt1.o succeeded
    183 /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/../../../crti.o succeeded
    184 /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/../../../crtn.o succeeded</computeroutput></screen>
     183<screen><computeroutput>/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crt1.o succeeded
     184/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crti.o succeeded
     185/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crtn.o succeeded</computeroutput></screen>
    185186
    186187  <para>Depending on your machine architecture, the above may differ slightly,
     
    202203
    203204<screen><computeroutput>#include &lt;...&gt; search starts here:
    204  /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include
     205 /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include
    205206 /usr/local/include
    206  /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include-fixed
     207 /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include-fixed
    207208 /usr/include</computeroutput></screen>
    208209
     
    226227    href="adjusting.xml"
    227228    xpointer="xpointer(//*[@os='k'])"/>
     229
     230<screen><computeroutput>SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
     231SEARCH_DIR("/usr/local/lib64")
     232SEARCH_DIR("/lib64")
     233SEARCH_DIR("/usr/lib64")
     234SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
     235SEARCH_DIR("/usr/local/lib")
     236SEARCH_DIR("/lib")
     237SEARCH_DIR("/usr/lib");</computeroutput></screen>
     238
     239   <para>A 32-bit system may see a few different directories. For example, here
     240   is the output from an i686 machine:</para>
    228241
    229242<screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32")
     
    236249SEARCH_DIR("/usr/lib");</computeroutput></screen>
    237250
    238    <para>A 64-bit system may see a few different directories. For example, here
    239    is the output from an x86_64 machine:</para>
    240 
    241 <screen><computeroutput>SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib64")
    242 SEARCH_DIR("/usr/local/lib64")
    243 SEARCH_DIR("/lib64")
    244 SEARCH_DIR("/usr/lib64")
    245 SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib")
    246 SEARCH_DIR("/usr/local/lib")
    247 SEARCH_DIR("/lib")
    248 SEARCH_DIR("/usr/lib");</computeroutput></screen>
    249 
    250251    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    251252    href="adjusting.xml"
Note: See TracChangeset for help on using the changeset viewer.