LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-12-2019, 05:52 AM   #1
Arden97
LQ Newbie
 
Registered: Sep 2019
Posts: 2

Rep: Reputation: Disabled
Compilation error with 5.2.14


Good day!

Recently, I got an interest in the Linux kernel, so I took the latest stable version (5.2.14) from kernel.org and tried to compile it with the default configuration. After running
Code:
make mrproper && make defconfig && make
i get an error:
Code:
/bin/sh: kernels/linux-5.2.14: No such file or directory
make: *** [Makefile:1726: tools/objtool] Error 127
I use Arch Linux and I have all the necessary tools described on archwiki installed.
Can someone help me? What am i doing wrong?
 
Old 09-13-2019, 08:04 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,572

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
It looks like you haven't started in a full linux kernel install. Here's what the top source directory should look like
Code:
bash-5.0$ ls /usr/src/linux-4.19.59
COPYING        Kbuild	 MAINTAINERS  arch   config-4.19.59  firmware  init    lib  samples   sound  virt
CREDITS        Kconfig	 Makefile     block  crypto	     fs        ipc     mm   scripts   tools
Documentation  LICENSES  README       certs  drivers	     include   kernel  net  security  usr
bash-5.0$ du -sh
916M	.
There's been a kernel made in that, so it's bigger than usual. But it's a several hundred megs, and they never get smaller. cd to /usr/src/linuv-5.2.14, and try there.
 
1 members found this post helpful.
Old 09-14-2019, 07:14 AM   #3
Arden97
LQ Newbie
 
Registered: Sep 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
It looks like you haven't started in a full linux kernel install. Here's what the top source directory should look like
Code:
bash-5.0$ ls /usr/src/linux-4.19.59
COPYING        Kbuild	 MAINTAINERS  arch   config-4.19.59  firmware  init    lib  samples   sound  virt
CREDITS        Kconfig	 Makefile     block  crypto	     fs        ipc     mm   scripts   tools
Documentation  LICENSES  README       certs  drivers	     include   kernel  net  security  usr
bash-5.0$ du -sh
916M	.
There's been a kernel made in that, so it's bigger than usual. But it's a several hundred megs, and they never get smaller. cd to /usr/src/linuv-5.2.14, and try there.
That helped. I wonder, why than the majority of tutorials on the Internet describe the kernel compilation in the home directory?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Graphical Compilation/ IDE Compilation monika.2dec Ubuntu 4 08-22-2012 06:53 PM
compilation error : /tmp/cczC6Kc3.s:7368: Error: unknown pseudo-op: `.ltorg' nankie Red Hat 0 08-19-2008 10:15 AM
Error during the compilation of Prozilla. How to correct the recursive error? deepumnit Linux - Software 1 01-10-2008 11:02 AM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
Sqwebmail compilation error ... [maildirsearchC.o] Error 1 boogie_maan Linux - Software 0 10-26-2002 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration