On 11/15/20 10:42 PM, Brian Hagen wrote:
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. ]

That is only needed in Chapter 5. By the time you get to chapter 8, you are way beyond that.

         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
-------------------

There is 'whence' in LFS.


        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.

You did not get flex installed properly (Section 6.33). I suggest you go back and reinstall. Are you building the kernel in chroot? The issues above suggest that you are not.

  -- Bruce



--
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