[lfs-dev] chapter 7 libstdc++ pass2 needs libfl.so.2

Bruce Dubbs bruce.dubbs at gmail.com
Thu Jul 23 08:03:52 PDT 2020

On 7/23/20 6:39 AM, John Burrell via lfs-dev wrote:
> When running as a package user I couldn't compile libstdc++ in chapter
> 7 because it couldn't find libfl.so.2
> I had to go back and add flex to chapter 6 to provide this library.
> Then it worked.
> I assume that if you follow the book then this library is picked up
> from the host.
> Can I suggest that you add flex to chapter 6 to improve host independence.

Flex is not needed for libstdc++ in Chapter 7 for a normal build.  When 
I search for libfl or flex in my log for gcc-libstdc++-pass2-10.1.0, 
nothing is found.  What is package user doing that requires this?

   -- Bruce

More information about the lfs-dev mailing list