Add more info about kernel requirements for multilib

This commit is contained in:
Thomas Trepl (Moody) 2021-11-09 14:43:34 +01:00
parent a150e73825
commit 384c707b7f
2 changed files with 36 additions and 8 deletions

View File

@ -173,18 +173,17 @@ File systems --->
</para>
<screen arch="ml_32">Binary Emulations ---&gt;
[*] IA32 Emulation
&lt;M&gt; IA32 a.out support
[*] IA32 Emulation [CONFIG_IA32_EMULATION]
&lt;M&gt; IA32 a.out support [CONFIG_IA32_AOUT]
</screen>
<screen arch="ml_x32">Binary Emulations ---&gt;
[*] x32 ABI for 64-bit mode
[*] x32 ABI for 64-bit mode [CONFIG_X86_X32]
</screen>
<screen arch="ml_all">Binary Emulations ---&gt;
[*] IA32 Emulation
&lt;M&gt; IA32 a.out support
[*] x32 ABI for 64-bit mode
[*] IA32 Emulation [CONFIG_IA32_EMULATION]
&lt;M&gt; IA32 a.out support [CONFIG_IA32_AOUT]
[*] x32 ABI for 64-bit mode [CONFIG_X86_X32]
</screen>
</note>
<variablelist>

View File

@ -85,7 +85,36 @@
<para>Continue only if you and your system meets the following
requirements:
<itemizedlist>
<listitem><para>you have a x86_64 compatible machine</para></listitem>
<listitem>
<para>you have a x86_64 compatible machine</para>
<note><para>
If you have access to the kernel config for your system,
you will need to have
<parameter>CONFIG_IA32_EMULATION=y</parameter>
set in order to build for <parameter>m32</parameter> and
<parameter>CONFIG_X86_X32=y</parameter> set in order to
build for <parameter>mx32</parameter>.
</para>
<para>
If you do not have access to the kernel config for your system,
you may be able to test for compatability by running the
following commands:
</para>
<screen><userinput>echo 'int main(){}' &gt; dummy.c
gcc -m32 dummy.c
./a.out
gcc -mx32 dummy.c
./a.out</userinput></screen>
<para>
If either of the <command>./a.out</command> commands results in an
"Exec format error" message, then you do not have a system kernel
capable of building for that architecture within LFS, and so you
should probably look to build an LFS system without Multilib, but
with the required kernel capabilities, and use that to build a
Multilib system.
</para></note>
</listitem>
<listitem><para>you already have some experience with LFS</para></listitem>
<listitem><para>you have a need for 32-bit support</para></listitem>
</itemizedlist>