LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Error when I "make" linux-4.15.3 (https://www.linuxquestions.org/questions/linux-from-scratch-13/error-when-i-make-linux-4-15-3-a-4175630210/)

PalmCivetMenace 05-22-2018 05:26 AM

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

Keruskerfuerst 05-22-2018 08:20 AM

Can you try to use a different kernel, like 4.16.10.

colorpurple21859 05-22-2018 08:46 AM

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?

PalmCivetMenace 05-22-2018 09:25 AM

Quote:

Originally Posted by Keruskerfuerst (Post 5857889)
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.

PalmCivetMenace 05-22-2018 09:29 AM

Quote:

Originally Posted by colorpurple21859 (Post 5857900)
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.

PalmCivetMenace 05-22-2018 09:30 AM

Thanks for the quick reply

colorpurple21859 05-22-2018 09:41 AM

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

PalmCivetMenace 05-24-2018 10:12 PM

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 ?

colorpurple21859 05-25-2018 07:23 AM

Probably a driver missing in kernel/something not set right in the config file for the kernel.

Luridis 05-28-2018 10:10 PM

After doing a fresh untar of your kernel, try these...

Quote:

make mrproper
make localyesconfig
make && make modules_install

colorpurple21859 05-29-2018 05:32 AM

what is the last few lines of test that you see when it crashes?

Franciozzy 09-04-2019 05:09 AM

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.


All times are GMT -5. The time now is 08:04 AM.