Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 933080

Summary: sys-boot/gnu-efi-3.0.18-r2 - console.c:84:68: error: passing argument 2 of 'ConOut->OutputString' from incompatible pointer type [-Wincompatible-pointer-types]
Product: Gentoo Linux Reporter: ktoupt
Component: Current packagesAssignee: Viorel Munteanu <ceamac>
Status: RESOLVED FIXED    
Severity: normal CC: ktoupt
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/38263
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 938012    
Bug Blocks: 870412    
Attachments: build.log
emerge --info

Description ktoupt 2024-05-28 19:03:28 UTC
Created attachment 894565 [details]
build.log

[ebuild  N    ] sys-boot/gnu-efi-3.0.18-r1  USE="(-custom-cflags)"

This is probably because of GCC 14, so it should probably block on c99-porting?

There are a lot of these incompatible pointers in this code base...
Comment 1 ktoupt 2024-05-28 19:03:55 UTC
Created attachment 894566 [details]
emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-06-27 08:53:30 UTC
tinderbox_musl has reproduced this issue with version 3.0.18-r2 - Updating summary.
Comment 3 Viorel Munteanu gentoo-dev 2024-08-02 04:45:45 UTC
This happens on musl.  On glibc if can be built with both gcc 14 and gcc 15.
Comment 4 Larry the Git Cow gentoo-dev 2024-08-26 04:34:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4a94ba86475049c1806eb81fe28200ee3020a59

commit c4a94ba86475049c1806eb81fe28200ee3020a59
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-08-23 14:39:13 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-08-26 04:28:37 +0000

    sys-boot/gnu-efi: Fix compilation on musl amd64
    
    On amd64, musl typedefs wchar_t to int, conflicting with -fshort-wchar.
    Also, /usr/include is searched before the compiler provided include
    directory.
    As a workaround, use -nostdinc and switch them around.
    
    Closes: https://bugs.gentoo.org/933080
    Bug: https://bugs.gentoo.org/938012
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 sys-boot/gnu-efi/gnu-efi-3.0.18-r4.ebuild | 128 ++++++++++++++++++++++++++++++
 1 file changed, 128 insertions(+)