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

Bug 723244

Summary: sys-boot/refind-0.12.0 : line_edit.c:(.text+<snip>): undefined reference to memmove
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Stéphane Veyret <sveyret>
Status: RESOLVED FIXED    
Severity: normal CC: ahyangyi, alecm, bkohler, fordfrog, johannes-schmidt, kratos661, kripton, lekto, proxy-maint, sam, silvio.gerli, weiping_xu
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/18426
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 706426    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
sys-boot:refind-0.12.0:20200515-133440.log
temp.tbz2
patch for compile with gcc 10

Description Toralf Förster gentoo-dev 2020-05-15 14:43:45 UTC
      -o refind_x64.so -leg -lmok -lEfiLib -lefi -lgnuefi /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/libgcc.a
x86_64-pc-linux-gnu-ld: line_edit.o: in function line_edit:
line_edit.c:(.text+0x41b): undefined reference to memmove
x86_64-pc-linux-gnu-ld: line_edit.c:(.text+0x4e2): undefined reference to memmove
make[1]: *** [Makefile:48: refind_x64.so] Error 1
make[1]: Leaving directory /var/tmp/portage/sys-boot/refind-0.12.0/work/refind-0.12.0/refind

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20200512-121505

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7 (fallback)
  [3]   python3.6 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.43.1
  [2]   rust-1.43.1 *
The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri 15 May 2020 01:05:27 PM UTC

emerge -qpvO sys-boot/refind
[ebuild  N    ] sys-boot/refind-0.12.0  USE="ext2 ext4 (gnuefi) iso9660 -btrfs (-custom-cflags) -doc -hfs -ntfs -reiserfs"
Comment 1 Toralf Förster gentoo-dev 2020-05-15 14:43:48 UTC
Created attachment 639336 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-15 14:43:51 UTC
Created attachment 639338 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-05-15 14:43:54 UTC
Created attachment 639340 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-05-15 14:43:57 UTC
Created attachment 639342 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-05-15 14:44:00 UTC
Created attachment 639344 [details]
sys-boot:refind-0.12.0:20200515-133440.log
Comment 6 Toralf Förster gentoo-dev 2020-05-15 14:44:03 UTC
Created attachment 639346 [details]
temp.tbz2
Comment 7 Xu Weiping 2020-06-03 03:32:26 UTC
The same problem.
A useful link: https://sourceforge.net/p/refind/code/ci/aa4d4b0367899b1932e866048e5767a13d0a6dd4/
Comment 9 Lineu Martins 2020-06-08 11:35:06 UTC
(In reply to Lineu Martins from comment #8)
> Created attachment 643932 [details, diff] [details, diff]
> patch for compile with gcc 10
> 
> fix from
> https://sourceforge.net/p/refind/code/ci/
> aa4d4b0367899b1932e866048e5767a13d0a6dd4/tree/NEWS.
> txt?diff=e34a16301f425f273a67ed3abbc45840bc82d892

previous link was wrong

https://sourceforge.net/p/refind/code/ci/e34a16301f425f273a67ed3abbc45840bc82d892/tree/Make.common?diff=a0a1e053fe1010cc5b05fbd31b970426aa94f400
Comment 10 Stéphane Veyret 2020-07-31 09:51:44 UTC
*** Bug 734926 has been marked as a duplicate of this bug. ***
Comment 11 Scott Ellis 2020-08-01 17:48:23 UTC
The patch resolves my issue on amd64 as well.
Comment 12 Ben Kohler gentoo-dev 2020-08-11 15:25:33 UTC
To the maintainer: do you intend to apply this patch or wait for a new upstream release?
Comment 13 Stéphane Veyret 2020-08-11 17:29:24 UTC
Sorry, I have no time for that, so will wait for next upstream release.
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2020-08-12 16:54:30 UTC
*** Bug 736824 has been marked as a duplicate of this bug. ***
Comment 15 Larry the Git Cow gentoo-dev 2020-12-07 07:36:33 UTC
The bug has been closed via the following commit(s):

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

commit 1aa0c940ee1fc5a5efc5800ee69f676e3710d24a
Author:     Theo Anderson <telans@posteo.de>
AuthorDate: 2020-11-27 10:51:00 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-12-07 07:30:20 +0000

    sys-boot/refind: add GCC 10 patch / custom-cflags fix
    
    Closes: https://bugs.gentoo.org/723244
    Package-Manager: Portage-3.0.10, Repoman-3.0.2
    Signed-off-by: Theo Anderson <telans@posteo.de>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 sys-boot/refind/files/refind-0.12.0-gcc10.patch | 11 +++++++++++
 sys-boot/refind/refind-0.12.0-r1.ebuild         | 12 ++++++++----
 2 files changed, 19 insertions(+), 4 deletions(-)