Hello:

        I have progressed all the way to the kernel-build stage (8.3) in LFS 
9.1. All went well to this point. The document states that
the first step is to run "make defconfig". It fails with the following message:
---------------------------
root@brian-T3408:/mnt/lfs/sources/linux-5.5.3# make defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
/bin/sh: flex: command not found
scripts/Makefile.host:9: recipe for target 'scripts/kconfig/lexer.lex.c' failed
make[1]: *** [scripts/kconfig/lexer.lex.c] Error 127
Makefile:568: recipe for target 'defconfig' failed
make: *** [defconfig] Error 2
-----------------------

        [ I have the /bin/sh value set to bash as required. (I learned the hard 
way that the "dash" that is a native element of this host system
does not work.) I re-checked, and it is currently set properly. ]


         I searched for the "flex" command and got this:
----------------
root@brian-T3408:/mnt/lfs/sources/linux-5.5.3# whence flex
whence: command not found
-------------------

        Before this 8.3 section, the instructions suggested replacing numerous 
files in the "/etc" directory. Looking at them, I 
decided that the existing ones should be sufficient. Is that a mistake on my 
part? If I cannot resolve the error messages
in the "make defconfig" procedure, I cannot advance to the next steps. I have 
looking online for FAQ's and such to
check into kernel-build LFS failure and found nothing useful.

Comment is invited.

Brian

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to