public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 10.0.1 20200506 build fails to compile linux kernel
@ 2020-05-06  4:44 Tetsuji Rai
  2020-05-06  7:19 ` Martin Liška
  0 siblings, 1 reply; 4+ messages in thread
From: Tetsuji Rai @ 2020-05-06  4:44 UTC (permalink / raw)
  To: gcc

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-06 12:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06  4:44 gcc 10.0.1 20200506 build fails to compile linux kernel Tetsuji Rai
2020-05-06  7:19 ` Martin Liška
2020-05-06 12:01   ` Tetsuji Rai
2020-05-06 12:28     ` Martin Liška

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).