Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 810907 - sys-boot/refind-0.13.2 fails to compile with >=sys-boot/gnu-efi-3.0.14 (DevicePathUtilities.h:229:3: error: conflicting types for ‘EFI_DEVICE_PATH_UTILITIES_PROTOCOL’; have ‘struct <anonymous>’)
Summary: sys-boot/refind-0.13.2 fails to compile with >=sys-boot/gnu-efi-3.0.14 (Devic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Stéphane Veyret
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-08-29 09:57 UTC by Agostino Sarubbo
Modified: 2021-11-19 10:30 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,50.41 KB, text/plain)
2021-08-29 09:57 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-08-29 09:57:31 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-boot/refind-0.13.2 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-08-29 09:57:34 UTC
Created attachment 736639 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-08-29 09:57:35 UTC
Possible context of error(s):

DevicePathUtilities.h:229:3: error: conflicting types for ‘EFI_DEVICE_PATH_UTILITIES_PROTOCOL’; have ‘struct <anonymous>’
Comment 3 Mike Gilbert gentoo-dev 2021-08-29 17:24:54 UTC
Likely related to sys-boot/gnu-efi-3.0.14.
Comment 4 Phil Rigby 2021-11-15 05:42:59 UTC
Confirmed... i have this exact same issue.  Based on Mike's comment, I downgraded gnu-efi to 3.0.12 and refind was able to install.
Comment 6 timemars 2021-11-18 12:36:14 UTC
(In reply to Sam James from comment #5)
> Does https://sources.debian.org/patches/refind/0.13.2-1/gnu-efi.patch/ help?

Confirmed the patch fixes the issue.
Comment 7 Larry the Git Cow gentoo-dev 2021-11-19 10:25:12 UTC
The bug has been closed via the following commit(s):

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

commit a53c6c338d72c8ddd2e517c69bbd901afe5a367d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-19 10:24:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-19 10:25:05 +0000

    sys-boot/refind: fix build with gnu-efi-3.0.14
    
    Seems to build fine with older versions too.
    
    Closes: https://bugs.gentoo.org/810907
    Signed-off-by: Sam James <sam@gentoo.org>

 .../refind/files/refind-0.13.2-gnuefi-3.0.14.patch | 51 ++++++++++++++++++++++
 sys-boot/refind/refind-0.13.2.ebuild               |  4 ++
 2 files changed, 55 insertions(+)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-19 10:29:48 UTC
(In reply to timemars from comment #6)
> (In reply to Sam James from comment #5)
> > Does https://sources.debian.org/patches/refind/0.13.2-1/gnu-efi.patch/ help?
> 
> Confirmed the patch fixes the issue.

Thank you!