You are not logged in.

#1 2018-08-28 15:38:50

alekstgrd
Member
Registered: 2018-07-18
Posts: 2

[SOLVED] not able to compile kernel

I am trying to compile a new kernel, following this: https://wiki.archlinux.org/index.php/Ke … mpilation/. When i try to write the make command i get this output:

[aleks@aleks linux-4.18.5]$ make
scripts/kconfig/conf  --syncconfig Kconfig
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
  HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  HOSTCC  scripts/basic/bin2c
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  UPD     include/config/kernel.release
  WRAP    arch/x86/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/x86/include/generated/uapi/asm/poll.h
  WRAP    arch/x86/include/generated/asm/dma-contiguous.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
  UPD     include/generated/uapi/linux/version.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  UPD     include/generated/bounds.h
/bin/sh: bc: command not found
make[1]: *** [Kbuild:42: include/generated/timeconst.h] Error 127
make: *** [Makefile:1081: prepare0] Error 2

I have tried many times now, with different settings, and I keep getting the same result, if I try with -j4, i still get the same error, but it continues to compile for a while, but i dont get the image file. I have used the (B) configuration from the wiki, first using localmodconfig, then gconfig.

I hope I included everything needed, if not please let me know. Thanks for any help on this.

Last edited by alekstgrd (2018-08-28 15:51:36)

Offline

#2 2018-08-28 15:48:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,720

Re: [SOLVED] not able to compile kernel

ewaller@turing/home/ewaller % pacman -Qo bc
/usr/bin/bc is owned by bc 1.07.1-1
ewaller@turing/home/ewaller %

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2018-08-28 15:48:33

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] not able to compile kernel

Install bc package from official repos. It is required to build kernel, and would be installed as makedepends if you build the kernel using makepkg.

Offline

#4 2018-08-28 15:49:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: [SOLVED] not able to compile kernel

alekstgrd wrote:

/bin/sh: bc: command not found

That's about as clear as an error message can be.  Install the dependencies - specifically bc for this error.

Note this is covered in the wiki page you linked to.

wiki wrote:

Install the core packages
Install the base-devel package group, which contains necessary packages such as make and gcc. It is also recommended to install the following packages, as listed in the default Arch kernel PKGBUILD: xmlto, kmod, inetutils, bc, libelf, git

Last edited by Trilby (2018-08-28 15:51:03)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#5 2018-08-28 15:51:09

alekstgrd
Member
Registered: 2018-07-18
Posts: 2

Re: [SOLVED] not able to compile kernel

Thanks everyone! I actually just figred out how stupid I have been right after making this post, makes me feel quite stupid, struggeling with this for two days.

Offline

Board footer

Powered by FluxBB