LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-22-2018, 05:26 AM   #1
PalmCivetMenace
LQ Newbie
 
Registered: May 2018
Posts: 6

Rep: Reputation: Disabled
Error when I "make" linux-4.15.3


I get the following error when I go into the linux-4.15.3 directory
and try to "make" it.

Code:
In file included from arch/x86/decode.c:23:0:
arch/x86/lib/inat.c: In function 'inat_get_opcode_attribute':
arch/x86/lib/inat.c:29:9: error: 'inat_primary_table' undeclared (first use in this function)
  return inat_primary_table[opcode];
         ^~~~~~~~~~~~~~~~~~
arch/x86/lib/inat.c:29:9: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/lib/inat.c: In function 'inat_get_escape_attribute':
arch/x86/lib/inat.c:48:10: error: 'inat_escape_tables' undeclared (first use in this function); did you mean 'inat_escape_id'?
  table = inat_escape_tables[n][0];
          ^~~~~~~~~~~~~~~~~~
          inat_escape_id
arch/x86/lib/inat.c:44:6: error: variable 'n' set but not used [-Werror=unused-but-set-variable]
  int n;
      ^
arch/x86/lib/inat.c: In function 'inat_get_group_attribute':
arch/x86/lib/inat.c:67:10: error: 'inat_group_tables' undeclared (first use in this function); did you mean 'inat_group_id'?
  table = inat_group_tables[n][0];
          ^~~~~~~~~~~~~~~~~
          inat_group_id
arch/x86/lib/inat.c:63:6: error: variable 'n' set but not used [-Werror=unused-but-set-variable]
  int n;
      ^
arch/x86/lib/inat.c: In function 'inat_get_avx_attribute':
arch/x86/lib/inat.c:86:10: error: 'inat_avx_tables' undeclared (first use in this function)
  table = inat_avx_tables[vex_m][0];
          ^~~~~~~~~~~~~~~
In file included from arch/x86/decode.c:23:0:
arch/x86/lib/inat.c: In function 'inat_get_opcode_attribute':
arch/x86/lib/inat.c:30:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors
mv: cannot stat '/sources/linux-4.15.3/tools/objtool/arch/x86/.decode.o.tmp': No such file or directory
make[4]: *** [/sources/linux-4.15.3/tools/build/Makefile.build:97: /sources/linux-4.15.3/tools/objtool/arch/x86/decode.o] Error 1
make[3]: *** [/sources/linux-4.15.3/tools/build/Makefile.build:139: arch/x86] Error 2
make[2]: *** [Makefile:46: /sources/linux-4.15.3/tools/objtool/objtool-in.o] Error 2
make[1]: *** [Makefile:63: objtool] Error 2
make: *** [Makefile:1634: tools/objtool] Error 2

I am currently in the 8.3.1 - "Installation of the kernel".
Please Help. Thanks in advance
 
Old 05-22-2018, 08:20 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Can you try to use a different kernel, like 4.16.10.
 
Old 05-22-2018, 08:46 AM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Have you deleted linux-4.15.3 directory and then untar the linux-4.15.3.tar.xz file again?
Did you run make defconfig?

Last edited by colorpurple21859; 05-22-2018 at 08:50 AM.
 
Old 05-22-2018, 09:25 AM   #4
PalmCivetMenace
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keruskerfuerst View Post
Can you try to use a different kernel, like 4.16.10.
Saw your reply first.
I downloaded the 4.16.10 and then tried it.
It works !!!
Didn't get any errors yet(I dont know how or why).
I will keep you guys informed.
 
Old 05-22-2018, 09:29 AM   #5
PalmCivetMenace
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Have you deleted linux-4.15.3 directory and then untar the linux-4.15.3.tar.xz file again?
Did you run make defconfig?
Yes Several times.
I tried it with linux-4.16.10.
It is still in the "make" process but I didn't get any errors as of yet.
I keep you guys updated.
 
Old 05-22-2018, 09:30 AM   #6
PalmCivetMenace
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for the quick reply

Last edited by PalmCivetMenace; 05-22-2018 at 09:32 AM.
 
Old 05-22-2018, 09:41 AM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
My guess would be a bad download, I'm also in the process of during LFS at home, and haven't had any problems compiling the linux-4.15.3
 
Old 05-24-2018, 10:12 PM   #8
PalmCivetMenace
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Did all the steps following the kernel installation and installed grub.
When booting, it shows the option to choose the LFS Os.
When I click it seems to load with text streaming down and stuff.
But it crashes.The Capslock button keeps blinking.I think it is a"kernel panic". Is this because I used linux 4.16.10 ? What can I do here ?
 
Old 05-25-2018, 07:23 AM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Probably a driver missing in kernel/something not set right in the config file for the kernel.
 
Old 05-28-2018, 10:10 PM   #10
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
After doing a fresh untar of your kernel, try these...

Quote:
make mrproper
make localyesconfig
make && make modules_install
 
Old 05-29-2018, 05:32 AM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
what is the last few lines of test that you see when it crashes?
 
Old 09-04-2019, 05:09 AM   #12
Franciozzy
LQ Newbie
 
Registered: Apr 2011
Posts: 9

Rep: Reputation: 0
This happened because your "tools/objtool/arch/x86/lib/inat-tables.c" file is probably corrupted.
This file is automatically generated during the build process, see "arch/x86/lib/Makefile".

To resolve it, simply delete the file and run "make" again.

I've seen it before, but I didn't dig into what caused it. Probably some rare race condition when building the kernel heavily in parallel.
 
  


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] "make" of "spi-ch341-usb-master" fails on "linux-headers" not found kaza Fedora 7 10-19-2021 12:12 AM
error """make:*** no rule to make target 'modules'.stop'"" SI1 Linux - Newbie 1 11-01-2017 11:57 PM
kernel make error: "vmlinux.o no such file ..." and make -d "Reaping losing ..." micscherer Linux - Kernel 3 06-12-2012 07:29 AM
LFS6.3 - Ch5.4.1 "/bin/sh sort not found" error at "make bootstrap" ubyt3m3 Linux From Scratch 2 06-23-2008 12:09 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:39 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