[Buildroot] [PATCH] package/booten: Fix build on machines with modern flex / host-flex
Peter Korsgaard
peter at korsgaard.com
Tue Oct 25 13:33:04 UTC 2022
>>>>> "Peter" == Peter Korsgaard <peter at korsgaard.com> writes:
> Fixes:
> http://autobuild.buildroot.org/results/3a8/3a8b66027cde3cdd9d02745381526d52bb626a78/
> Bootgen embeds an old version of flex, but uses the system include syntax
> (#include <>) to reference it, causing conflicts on systems with the
> development headers for a modern flex version installed, leading to build
> issues like:
> ../bisonflex/bif.yy.cpp: In member function 'virtual int BIF::FlexScanner::yylex()':
> ../bisonflex/bif.yy.cpp:1608:18: error: no match for 'operator='
> (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and
> 'std::istream*' {aka 'std::basic_istream<char>*'})
> Fix it by using normal local #include statements by:
> sed -i 's/<FlexLexer.h>/"FlexLexer.h"/g' *
> Patch submitted upstream: https://github.com/Xilinx/bootgen/pull/20
> Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
Committed, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list