aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/gcc.xml')
-rw-r--r--chapter06/gcc.xml12
1 files changed, 10 insertions, 2 deletions
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml
index 4c42955d1..8abe79376 100644
--- a/chapter06/gcc.xml
+++ b/chapter06/gcc.xml
@@ -152,7 +152,7 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
<ulink url="https://gcc.gnu.org/ml/gcc-testresults/"/>.</para>
<para>Six tests related to get_time are known to fail. These are
- apparantly related to the en_HK locale.</para>
+ apparently related to the en_HK locale.</para>
<para>Two tests named lookup.cc and reverse.cc in experimental/net
are known to fail in LFS chroot environment because they require
@@ -177,7 +177,15 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
<para>Install the package and remove an unneeded directory:</para>
<screen><userinput remap="install">make install
-rm -rf /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include-fixed/bits/</userinput></screen>
+rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/</userinput></screen>
+
+ <para>The GCC build directory is owned by <systemitem class="username">
+ nobody</systemitem> now and the ownership of the installed header
+ directory (and its content) will be incorrect. Change the ownership to
+ <systemitem class="username">root</systemitem> user and group:</para>
+
+<screen><userinput remap="install">chown -v -R root:root \
+ /usr/lib/gcc/*linux-gnu/&gcc-version;/include{,-fixed}</userinput></screen>
<para>Create a symlink required by the <ulink
url="https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s09.html">FHS</ulink>