Compiling a kernel from kernel-5.17.0-0.rc2.20220204gitdcb85f85fa6f.86.fc36.src.rpm fails if warnings as errors is turned on

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm on rawhide with latest updates, except for some that have package
version conflicts.  But, the latest gcc and glibc packages.

First, when I was configuring, (make menuconfig), even though it
said that sysfb and sysfb-simplefb were in /drivers/firmware, they
weren't there. They took the setting from the last 5.16 kernel config
that I used as a template.

Then, when I tried to compile the 5.17 kernel from
kernel-5.17.0-0.rc2.20220204gitdcb85f85fa6f.86.fc36.src.rpm
it failed because I had warnings as errors, and the kernel warned about
ssh version being deprecated for openssl 3. e.g.
scripts/sign-file.c: In function 'read_private_key':
scripts/sign-file.c:142:17: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  142 |                 ENGINE_load_builtin_engines();
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~

There were also warnings about an infinite recursion error on the
header files because of memcmp, memcpy and memset.  This is puzzling to
me since the kernel compiled just fine in koji. Did it use different
header files? And aren't all header files protected from being read
more than once?  Or are Fedora kernels compiled with warnings as errors
turned off? e.g.
./include/linux/fortify-string.h:269:16: note: in expansion of macro '__underlying_memcmp'
  269 |         return __underlying_memcmp(p, q, size);
      |                ^~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/string.h:253,
                 from ./include/linux/bitmap.h:11,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:22,
                 from ./arch/x86/include/asm/timex.h:5,
                 from ./include/linux/timex.h:65,
                 from ./include/linux/time32.h:13,
                 from ./include/linux/time.h:60,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:13,
                 from init/do_mounts.c:2:
./include/linux/fortify-string.h: In function 'strncpy':
./include/linux/fortify-string.h:51:24: warning: infinite recursion detected [-Winfinite-recursion]
   51 | __FORTIFY_INLINE char *strncpy(char *p, const char *q, __kernel_size_t size)
      |                        ^~~~~~~

When I turned off warnings as errors, the kernel compiled successfully.
This is not a problem in the 5.16 series, they compile cleanly with
warnings as errors turned on.

Anyway, I am attaching the error output from the attempt with warnings
as errors.


_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux