Linux From ScratchThis 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
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.
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
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.
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 ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.