- Timestamp:
- 03/31/2021 10:41:36 AM (3 years ago)
- Branches:
- ml-11.0, multilib
- Children:
- 9c31d62
- Parents:
- d7f58cc
- git-author:
- Thomas Trepl <thomas@…> (10/04/2019 07:22:53 PM)
- git-committer:
- Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:36 AM)
- Location:
- chapter06
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/attr.xml
rd7f58cc r0aaf6a31 119 119 <para>Prepare Attr for compilation:</para> 120 120 121 <screen><userinput remap="configure"> 122 CC="gcc -mx32" ./configure \ 121 <screen><userinput remap="configure">CC="gcc -mx32" ./configure \ 123 122 --prefix=/usr \ 124 123 --disable-static \ -
chapter06/createfiles.xml
rd7f58cc r0aaf6a31 47 47 ln -sv bash /bin/sh</userinput></screen> 48 48 49 <screen arch="ml_32,ml_x32,ml_all"><userinput arch="ml_32,ml_all"> 50 ln -sv /tools/lib32/libgcc_s.so{,.1} /usr/lib32 51 ln -sv /tools/lib32/libstdc++.{a,so{,.6}} /usr/lib32 52 </userinput> 53 <userinput arch="ml_x32,ml_all"> 54 ln -sv /tools/libx32/libgcc_s.so{,.1} /usr/libx32 49 <para arch="ml_32,ml_x32,ml_all">32-bit builds also require these links:</para> 50 51 <screen arch="ml_32,ml_x32,ml_all"><userinput arch="ml_32,ml_all">ln -sv /tools/lib32/libgcc_s.so{,.1} /usr/lib32 52 ln -sv /tools/lib32/libstdc++.{a,so{,.6}} /usr/lib32</userinput></screen> 53 54 <para arch="ml_x32,ml_all">x32-bit builds also require these links:</para> 55 56 <screen arch="ml_x32,ml_all"><userinput arch="ml_x32,ml_all">ln -sv /tools/libx32/libgcc_s.so{,.1} /usr/libx32 55 57 ln -sv /tools/libx32/libstdc++.{a,so{,.6}} /usr/libx32 56 ln -sv /usr/libx32 / 57 </userinput></screen> 58 ln -sv /usr/libx32 /</userinput></screen> 58 59 59 60 <!--for lib in blkid lzma mount uuid -
chapter06/file.xml
rd7f58cc r0aaf6a31 99 99 <para>Prepare File for compilation:</para> 100 100 101 <screen><userinput remap="configure"> 102 CC="gcc -mx32" ./configure \ 101 <screen><userinput remap="configure">CC="gcc -mx32" ./configure \ 103 102 --prefix=/usr \ 104 103 --libdir=/usr/libx32 \ -
chapter06/libtool.xml
rd7f58cc r0aaf6a31 110 110 <para>Prepare Libtool for compilation:</para> 111 111 112 <screen><userinput remap="configure"> 113 CC="gcc -mx32" ./configure \ 112 <screen><userinput remap="configure">CC="gcc -mx32" ./configure \ 114 113 --prefix=/usr \ 115 114 --libdir=/usr/libx32 \ -
chapter06/linux-headers.xml
rd7f58cc r0aaf6a31 54 54 55 55 <para>Now extract the user-visible kernel headers from the source. 56 They are placed in an intermediate local directory and copied to the needed 57 location because the extraction process removes any existing files in 58 the target directory. There are also some hidden files used by 59 the kernel developers and not needed by LFS that are removed from 60 the intermediate directory.</para> 61 62 <screen><userinput remap="make">make INSTALL_HDR_PATH=dest headers_install 63 find dest/include \( -name .install -o -name ..install.cmd \) -delete 64 </userinput><userinput remap="install">cp -rv dest/include/* /usr/include</userinput></screen> 56 The recommended make target <quote>headers_install</quote> cannot be 57 used, because it requires <application>rsync</application>, which is 58 not available in <filename class="directory">/tools</filename>. The 59 headers are first placed in <filename class="directory">./usr</filename>, 60 then some files used by the kernel developers are removed, then 61 the files are copied to their final location.</para> 62 63 <screen><userinput remap="make">make headers 64 find usr/include -name '.*' -delete 65 rm usr/include/Makefile 66 </userinput><userinput remap="install">cp -rv usr/include/* /usr/include</userinput></screen> 65 67 66 68 </sect2> -
chapter06/python.xml
rd7f58cc r0aaf6a31 84 84 <screen><userinput remap="make">make</userinput></screen> 85 85 86 <para>The test suite requires TK and andX Windows session and cannot86 <para>The test suite requires TK and X Windows session and cannot 87 87 be run until Python 3 is reinstalled in BLFS.</para> 88 88 -
chapter06/systemd.xml
rd7f58cc r0aaf6a31 41 41 <title>Installation of systemd</title> 42 42 43 <para>First, apply a patch to fix issues with systemd-networkd on Linux 5.2+44 kernels, as well as with AMD Ryzen CPUs:</para>45 46 <screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;- networkd_and_rdrand_fixes-1.patch</userinput></screen>43 <para>First, apply a patch to fix various bugs since the release 44 of systemd-243.</para> 45 46 <screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-consolidated_fixes-1.patch</userinput></screen> 47 47 48 48 <para>Create a symlink to work around missing xsltproc:</para> … … 71 71 <screen><userinput remap="pre">sed -i 's/GROUP="render", //' rules/50-udev-default.rules.in</userinput></screen> 72 72 73 <!-- EDITORS NOTE: At the next systemd release, see if the CFLAGS can be removed. -->74 75 73 <para>Prepare systemd for compilation:</para> 76 74 … … 80 78 PKG_CONFIG_PATH="/usr/lib/pkgconfig:/tools/lib/pkgconfig" \ 81 79 LANG=en_US.UTF-8 \ 82 CFLAGS+="-Wno-format-overflow" \83 80 meson --prefix=/usr \ 84 81 --sysconfdir=/etc \ … … 208 205 <screen><userinput remap="adjust">systemd-machine-id-setup</userinput></screen> 209 206 210 <para>Remove symbolic links to Util-Linux libraries:</para> 207 <para>Setup the basic target structure:</para> 208 209 <screen><userinput remap="adjust">systemctl preset-all</userinput></screen> 210 211 <para>Disable a service that is known to cause problems with systems that 212 use a network configuration other than what is provided by 213 systemd-networkd:</para> 214 <!-- Observed halting startup with dhcpcd handling the primary NIC --> 215 216 <screen><userinput remap="adjust">systemctl disable systemd-time-wait-sync.service</userinput></screen> 217 218 <para>Prevent systemd from resetting the maximum PID value which causes 219 some problems with packages and units in BLFS:</para> 220 <!-- FCRON in particular --> 221 222 <screen><userinput remap="adjust">rm -f /etc/sysctl.d/50-pid-max.conf</userinput></screen> 223 224 <para>Cleanup symbolic links to Util-Linux libraries:</para> 211 225 212 226 <screen><userinput remap="adjust">rm -fv /usr/lib/lib{blkid,uuid,mount}.so*</userinput></screen> -
chapter06/xz.xml
rd7f58cc r0aaf6a31 109 109 <para>Prepare Xz for compilation:</para> 110 110 111 <screen><userinput remap="configure"> 112 CC="gcc -mx32" ./configure \ 111 <screen><userinput remap="configure">CC="gcc -mx32" ./configure \ 113 112 --prefix=/usr \ 114 113 --disable-static \
Note:
See TracChangeset
for help on using the changeset viewer.