I've been trying to build Linux kernel with gcc 10 since Fedora 32 was released, but keep failing. The kernel (5.6.8 x86_64) builds fine, but doesn't boot/work at all.
Today I tried with gcc version 10.0.1 20200506 downloaded via git (commit dcfafc02782d0cffcb62e99365b5adbcfe51c1b9), but it failed to boot today also. I use encrypted hard disks (luks), but even the initial passphrase window doesn't show up. So it doesn't have boot log on the disk and can't analyze it at all. I also tried to build the same kernel with the same configuration with gcc-9.3.0 built with the same configuration and this kernel works perfectly. And I also use kernel command line "debug." kernel built with gcc-10.1-RC doesn't say anything from the start (boot from grub2), while that built with gcc-9.3.0 gives what it is doing. So I guess it's a bug of gcc-10. The configuration I used to build gcc-10.0.1 is as follows. I just modified Fedora's gcc configuration (installation directory, available languages, and disabling 32bit capability.) and as a matter of course, I built gcc as "make bootstrap -j10". -----my gcc configuration------ $ gcc-10 -v Using built-in specs. COLLECT_GCC=gcc-10 COLLECT_LTO_WRAPPER=/opt/data/local/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none Target: x86_64-redhat-linux Configured with: ../configure --prefix=/opt/data/local --enable-bootstrap --enable-languages=c --enable-shared --enable-threads=posix --enable-checking=release --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --build=x86_64-redhat-linux --program-suffix=-10 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.0.1 20200506 (prerelease) (GCC) ----------------------------- I wonder how Fedora project built its own kernel. I can't build custom kernel with it. What's wrong with 10.1-RC or how can I report my problem? Thanks in advance! -Tetsuji Rai