Linux From Scratch
Linux From Scratch
Checking GCC 9.1.0 compatibility with Intel processors is important for your setup. Your laptop uses a 7th-gen Intel Core i5 (Kabylake) and you're currently using GCC 9.1.0. You're trying to compile with options like -march=kabylake, but you're encountering issues. It seems the newer GCC versions may not support all Intel architectures, especially newer generations like Kabylake. You might want to verify the supported architectures in your GCC installation or consider using a different compiler if needed. For your processor, Kabylake is supported, but compatibility with the latest GCC builds can vary.
This setup provides a simple foundation that covers the essentials, helping you understand typical Linux system construction. It doesn<|pad|> to deliver a result you can immediately apply. The design you're aiming for is likely Skylake-AX512, but as noted by @Chunchunmaru_ you can rely on the compiler to select the best options for your processor.
I understand LFS is quite basic, but I've used Xfce on a solid base system many times and I'm confident it can be set up easily. Plus, I don't want to give my PC to systemd—I really prefer Xfce and need full control over my setup.
Gentoo works with runit. If building causes issues, check out a YouTube tutorial.
Update the symlink for /sbin/init while ensuring the init system is fully set up.
Generally, optimization options would only change when there's a substantial departure from an older microarchitecture, be it a new instruction set or a latency/throughput change. Cannon Lake introduces the AVX512 extension, while Kaby Lake just isn't different enough from, I guess, Skylake, to get a different set of optimization parameters. You may ask the compiler itself for its opinion on the native architecture with `gcc -Q -march=native --help=target | grep march`.