[lfs-support] 8.3 Linux-3.1 (building kernal) error
firer4t at googlemail.com
Thu Jan 26 01:52:43 PST 2012
On 26 January 2012 08:56, Uthayanan <suthayanan at gmail.com> wrote:
> On Thu, Jan 26, 2012 at 2:12 PM, Uthayanan <suthayanan at gmail.com> wrote:
>> Dear group
>> During the final kernal buildup I got this following error. Any
>> suggestions ?
>> /bin/sh: awk: command not found
>> CC arch/x86/lib/inat.o
>> arch/x86/lib/inat.c:24:25: fatal error: inat-tables.c: No such file or
>> compilation terminated.
>> make: *** [arch/x86/lib/inat.o] Error 1
>> make: *** [arch/x86/lib] Error 2
> Since I used Ubuntu as my host system, instead of Mawk, I used Gawk. Is
> there anything to do with that
> here ?
You should be compiling the Kernel from within the chroot
to get to a position where you can chroot you would need a compatible
awk on the host
But that is besides the point,
if awk is missing from your chroot then something is messed up
for kicks, lets look at what is going on
grep "inat\-ta" * -r
you will get something like this
arch/x86/lib/Makefile:clean-files := inat-tables.c
arch/x86/tools/gen-insn-attr-x86.awk:# Usage: awk -f
gen-insn-attr-x86.awk x86-opcode-map.txt > inat-tables.c
so awk is being used, it is creating inat-tables.c (
arch/x86/tools/gen-insn-attr-x86.awk is the script, and
x86-opcode-map.txt is the file it is working with )
but awk seems to be missing !
did you skip it?
I doubt you would have gotten to the Kernel without awk, which tells
me that you have a working awk in /tools
in 6.64 you re-enter the chroot but without the tools path
go back to 6.38. Gawk-4.0.0, and make sure it installs correctly
you may need to amend your PATH
once you have confirmed awk is installed, fix the PATH
and try again
Talented, Witty And Thoughtful .. is how most describe me.
More information about the lfs-support