Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 736824 - sys-boot/refind fails to build with gcc:10, upstream fix available
Summary: sys-boot/refind fails to build with gcc:10, upstream fix available
Status: RESOLVED DUPLICATE of bug 723244
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Stéphane Veyret
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-12 05:33 UTC by Yi Yang
Modified: 2020-08-12 19:57 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Yang 2020-08-12 05:33:26 UTC
All versions of sys-boot/refind fail to build with gcc-10 (tested with gcc-10.2.0-r1) in portage tree.

The upstream fix is available at:

https://sourceforge.net/p/refind/code/ci/e34a16301f425f273a67ed3abbc45840bc82d892/tree/Make.common?diff=a0a1e053fe1010cc5b05fbd31b970426aa94f400

It looks like easy to cherry-pick.

Also, from the debian bug tracker, the original author said:

> This change doesn't seem to negatively affect compilation on earlier
> versions of GCC (at least, not GCC 7.5.0, which is what my main
> development system uses); but AFAIK there's also no benefit to applying
> this change unless it's necessary, so I don't think there's a need to
> apply the patch unless rEFInd is being built on a system with GCC 10.

Reproducible: Always

Steps to Reproduce:
emerge sys-boot/refind while activating gcc:10
Actual Results:  
build failure due to "undefined reference to `memmove'"
Comment 1 Yi Yang 2020-08-12 05:34:02 UTC
Uh, the debian bug tracker mentioned is at:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957754
Comment 2 Yi Yang 2020-08-12 05:52:16 UTC
I created a variant ebuild that applies the one liner fix:

https://github.com/ahyangyi/ahyangyi-overlay/blob/master/sys-boot/refind/refind-0.12.0.ebuild
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2020-08-12 16:54:30 UTC

*** This bug has been marked as a duplicate of bug 723244 ***
Comment 4 Yi Yang 2020-08-12 19:57:31 UTC
My bad. I overlooked the existing issue as I was busy (re)installing my system.

Sorry for that!