[SOLVED] Try to compile linux kernel but make failed.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After clone linux-stable.git, I do the following things.
Code:
cd linux
git checkout v4.4
cp /boot/config-`uname -r` .config
make oldconfig
// and press enter to accept default value
make clean
make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-1.0
And get following error:
Code:
CC [M] arch/arm64/crypto/sha1-ce-glue.o
cc1: sorry, unimplemented: code model ‘large’ with -fPIC
scripts/Makefile.build:258: recipe for target 'arch/arm64/crypto/sha1-ce-glue.o' failed
make[3]: *** [arch/arm64/crypto/sha1-ce-glue.o] Error 1
Makefile:943: recipe for target 'arch/arm64/crypto' failed
make[2]: *** [arch/arm64/crypto] Error 2
make[2]: *** Waiting for unfinished jobs....
CC arch/arm64/kvm/reset.o
CC arch/arm64/kvm/sys_regs.o
CC arch/arm64/kvm/sys_regs_generic_v8.o
CC arch/arm64/kvm/../../../virt/kvm/arm/vgic.o
CC arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.o
CC arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2-emul.o
AS arch/arm64/kvm/vgic-v2-switch.o
CC arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3.o
CC arch/arm64/kvm/../../../virt/kvm/arm/vgic-v3-emul.o
AS arch/arm64/kvm/vgic-v3-switch.o
CC arch/arm64/kvm/../../../virt/kvm/arm/arch_timer.o
LD arch/arm64/kvm/kvm.o
LD arch/arm64/kvm/built-in.o
scripts/package/Makefile:91: recipe for target 'deb-pkg' failed
make[1]: *** [deb-pkg] Error 2
Makefile:1231: recipe for target 'deb-pkg' failed
make: *** [deb-pkg] Error 2
Distribution: Ubuntu based stuff for the most part
Posts: 1,173
Rep:
A google of the error lead me to this link: https://unix.stackexchange.com/quest...deb-pkg-failed
Looks like the deb-pkg command is out dated and you should use the newer kernel-package package to build a .deb with.
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008
Rep:
1) install first (with slight modifications per distro which you did not specify)
apt-get install libncurses5-dev libncursesw5-dev, dpkg-dev, libssl-dev, bison, flex, fakeroot,pkg-dev, qt5-default (for xconfig if you want to use it), libelf-dev, pkg-config (pkgconf newer), module-assistant, build-essential
2) create .config /kernel/source/.config
3) run form /kernel/source/
make -j9 deb-pkg LOCALVERSION=-my_kernel_name KDEB_PKGVERSION=$(make kernelversion)-1
-jX (number of CPU +1)
4) install kernel
dpkg -i /path/to_kernel_build_packages/*.deb
5) reboot
works in debian, MXLinux, Devuan, antiX and whaterver alse debian (assuming that distro is not too old)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.