Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
musl system gentoo-sources: undef reference to efi_mem_type
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Lloydz
n00b
n00b


Joined: 31 Aug 2019
Posts: 7
Location: Germany

PostPosted: Thu Apr 02, 2020 7:39 am    Post subject: musl system gentoo-sources: undef reference to efi_mem_type Reply with quote

Hello,

since a few days sys-kernel/gentoo-sources-5.4.28 is marked stable. Happy about that,
I compile the code, but it breaks after a while with an error (here an cutoff of the make command):

[...]
Code:
  CHK     include/generated/autoksyms.h
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  AR      init/built-in.a
  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+0x376): undefined reference to `efi_mem_type'
make: *** [Makefile:1076: vmlinux] Error 1

[...]

The System use musl Library rather than glibc, and coreboot as bios,
not efi. Therefore I disable efi in the kernel:

Code:
my_prompt: grep -i efi .config
# CONFIG_EFI is not set
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
CONFIG_EFI_EARLYCON=y
CONFIG_EFI_PARTITION=y
# CONFIG_CACHEFILES is not set

Previously of kernel 5.4.28, the system kernel version was 4.19.97, and
compiles fine.

At last emerge --info output:

Code:
my_prompt: emerge --info
Portage 2.3.89 (python 3.7.7-final-0, default/linux/amd64/17.0/musl/hardened, gcc-9.2.0, musl-1.1.24, 4.19.97-gentoo-apu2.5 x86_64)
=================================================================
System uname: Linux-4.19.97-gentoo-apu2.5-x86_64-AMD_GX-412TC_SOC-with-gentoo-2.6
KiB Mem:     4022380 total,   1470944 free
KiB Swap:    8388600 total,   8388600 free
Timestamp of repository gentoo: Wed, 01 Apr 2020 05:15:01 +0000
Head commit of repository gentoo: 5d249f9e36db15ff8476eaf879907069d08ea1d7
Head commit of repository musl: ed48c6b2683d81c2d4422cb1e5b78a4b66a68540

sh bash 5.0_p16
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p16::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r1::gentoo, 3.6.10::gentoo, 3.7.7::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::musl
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r3::musl
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/musl:            1.1.24::gentoo

END


any idea?


bye.

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24067
Location: here

PostPosted: Thu Apr 02, 2020 7:43 am    Post subject: Reply with quote

https://bugs.gentoo.org/714178
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Lloydz
n00b
n00b


Joined: 31 Aug 2019
Posts: 7
Location: Germany

PostPosted: Thu Apr 02, 2020 6:27 pm    Post subject: Reply with quote

Hi fedeliallalinea,

Problem is gone, with the workaround: I activate EFI and now I can compile the kernel.

Thank you!


bye.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum