LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-24-2020, 08:44 PM   #1
ccf
LQ Newbie
 
Registered: Sep 2020
Posts: 1

Rep: Reputation: Disabled
Try to compile linux kernel but make failed.


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
 
Old 09-25-2020, 01:12 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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.
 
Old 09-25-2020, 05:53 PM   #3
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Try to compile a program(SparForte, not mine), and compile can't see a command which IS In path ! AoiHana Linux - Software 4 02-10-2016 07:17 AM
Cogl-1.10.4 make check failed and compile Clutter-1.10.8 failed kcynice Linux From Scratch 0 08-09-2012 12:27 AM
MAKE BZIMAGE doesn't work when i try to compile and install new linux kernel baronobeefdip Linux - General 8 07-20-2010 04:41 PM
Want to try a new distro but don't know which one to try. swalker23 Linux - Newbie 10 07-02-2009 08:16 PM
Debian can't find the "make" command when I try to compile my onboard NIC driver JSR_tuxbox Linux - Newbie 30 06-29-2007 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration