Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 714178 - sys-kernel/gentoo-sources-5.4.26+: undefined reference to `efi_mem_type'
Summary: sys-kernel/gentoo-sources-5.4.26+: undefined reference to `efi_mem_type'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 716430 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-03-24 14:28 UTC by Kim B. Sindalsen
Modified: 2020-04-06 09:40 UTC (History)
3 users (show)

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


Attachments
kernel config (.config,88.44 KB, text/plain)
2020-03-24 17:06 UTC, Kim B. Sindalsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kim B. Sindalsen 2020-03-24 14:28:48 UTC
Kernel 5.4.26 (and 27) threw the following link failure:

  CC      drivers/usb/storage/option_ms.o
  CC      drivers/usb/storage/usual-tables.o
  AR      drivers/tty/built-in.a
  AR      drivers/usb/storage/built-in.a
  AR      drivers/usb/built-in.a
  AR      drivers/built-in.a
  GEN     .version
  CHK     include/generated/compile.h
  LD      vmlinux.o
  MODPOST vmlinux.o
  MODINFO modules.builtin.modinfo
  LD      .tmp_vmlinux1
ld: arch/x86/mm/ioremap.o: in function `__ioremap_caller':
ioremap.c:(.text+0x37f): undefined reference to `efi_mem_type'
make: *** [Makefile:1076: vmlinux] Error 1

Seems like https://bugs.gentoo.org/713460 (for gentoo-sources-5.5.9)

Reproducible: Always
Comment 1 Kim B. Sindalsen 2020-03-24 14:36:16 UTC
Triggered by this kernel-config (which has been used via make oldconfig for my older 5.4-series).

http://dpaste.com/1XDHMHH
Comment 2 Jonas Stein gentoo-dev 2020-03-24 16:30:50 UTC
please *attach* all files. Logs and .config. Do not use pastebins.
Reopen the ticket afterwards.
Comment 3 Kim B. Sindalsen 2020-03-24 17:06:50 UTC
Created attachment 625294 [details]
kernel config

My 5.4.25-config triggering the issue at 5.4.26 and 5.4.27
Comment 4 Mike Pagano gentoo-dev 2020-03-24 17:12:18 UTC
Please reest with CONFIG_EFI set
Comment 5 Kim B. Sindalsen 2020-03-24 18:13:27 UTC
Do you mean editing .config and set CONFIG_EFI=n ?

That works.

Also building with upstream-patch from bug 713460 - https://bugs.gentoo.org/713460 works with CONFIG_EFI unset.

System is a non-EFI system.

Also trying CONFIG_EFI=y now - builds, though not sure of impact.
Comment 6 Mike Pagano gentoo-dev 2020-03-24 18:57:38 UTC
Ok, that's actually our patch, not upstream. I can include in in the next gentoo-sources 5.4
Comment 7 Mike Pagano gentoo-dev 2020-04-04 22:33:00 UTC
This patch is in the kernel series >= 5.4.29
Comment 8 Michael 'veremitz' Everitt 2020-04-06 09:40:25 UTC
*** Bug 716430 has been marked as a duplicate of this bug. ***