Of course, in addition to LFS, if you are willing to spend time
exploring, you can also consider referring to Gentoo's Crossdev script.
However, there is essentially no difference - LFS is just a template.
Obviously, its method is universal. You can arbitrarily select any part
of the compilation process, for example, the cross-compiler build
command - you only need to modify some parameters and refer to the
configure command help. If you want to use automated tools, you can also
use third-party tools to compile the cross-compilation environment
On Tue, 2023-11-14 at 21:00 +0800, 欧阳春晖 via Gcc-help wrote:
I think you should ensure that the compiler of your cross-compilation
environment meets the minimum requirements for compiling a
cross-compiler. The consequences of forcibly bypassing version detection
may be more errors. For the specific cross-compilation process, you can
refer to the Linux From Scratch documentation. description of.
No. Stop. I personally added the following note into LFS several years
ago:
The LFS book is not (and does not contain) a general tutorial to build a
cross- (or native) toolchain. Don't use the commands in the book for a
cross-toolchain for some purpose other than building LFS, unless you
really understand what you are doing.
It's just off-topic and annoying to ask all these questions about
building these ancient software via gcc-help. And it's also off-topic
with LFS. Please try to ask via a "retro-computing" forum instead.