Bug 2044656
Summary: | gcc-12 causes grub2 build failure on ppc64le | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Robbie Harwood <rharwood> |
Component: | grub2 | Assignee: | Javier Martinez Canillas <fmartine> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | aoliva, arjun.is, codonell, dj, dmalcolm, fmartine, fweimer, jakub, jwakely, law, lkundrak, mcermak, mfabian, mpolacek, msebor, nickc, pfrankli, pgnet.dev, pjones, rharwood, rth, sipoyare |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | ppc64le | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-01-27 14:52:09 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2045456 |
Description
Robbie Harwood
2022-01-24 22:02:43 UTC
That looks like either a glibc issue or the package redefining some macros glibc relies on. gnulib has a copy of <sys/cdefs.h>, and it overrides the system version completely in some cases. grub2 needs to update its copy. This gnulib commit looks relevant: commit 776af40e09b476a41073131a90022572f448c189 Author: Paul Eggert <eggert.edu> Date: Tue Jan 5 13:12:39 2021 -0800 libc-config: merge from glibc Use a better way of keeping glibc <sys/cdefs.h> and gnulib lib/cdefs.h mostly in sync, by using lib/cdefs.h only on platforms where <sys/cdefs.h> does not work well enough for Gnulib. * lib/cdefs.h: Go back to using _SYS_CDEFS_H rather than _GL_DEFS_H as an include guard. (__THROW, __THROWNL, __NTH, __NTHNL): Define to noexcept for C++11 and later. (__glibc_objsize, __glibc_objsize0): New, for _FORTIFY_SOURCE=3. (__warndecl): Remove. (__attribute_copy__): New macro, for GCC 9 support. (__LDBL_REDIR, __LDBL_REDIR_DECL, __LDBL_REDIR1) (__LDBL_REDIR1_DECL, __LDBL_REDIR1_NTH, __REDIRECT_NTH_LDBL) (__REDIRECT_LDBL, __LDBL_REDIR_NTH): Redirections for IEEE long double on powerpc64le. (__LDBL_REDIR2_DECL): New macro. (__attr_access): New macro, for GCC 10 bounds checking. (__attribute_returns_twice__): New macro, for setjmp etc. * lib/libc-config.h: Include <cdefs.h> only if __glibc_likely is undefined. The following changes apply only if __glibc_likely is not defined. (__LDBL_REDIR2_DECL, __attr_access, __attribute_returns_twice__) (__glibc_clang_has_attribute, __glibc_clang_has_extension) (__glibc_objsize, __glibc_objsize0): Undef these new (or newer) <cdefs.h> macros. (__P, __PMT, __always_inline): Do not undef, since cdefs.h does that. (__glibc_likely): Do not undef, since this is inside ifndef __glibc_likely. (__warndecl): Do not undef; no longer defined. Of course what gnulib is doing is completely invalid and undefined, but it is what it is. Thanks for looking. Really dislike gnulib... *** This bug has been marked as a duplicate of bug 2045456 *** |