[Kea-users] How to Enable Parser Generation with Meson in Kea 3.0.0?
Dipesh Kayastha
er.dipesh.kayastha at gmail.com
Tue Jul 15 20:48:42 UTC 2025
Hi Andrei,
I'm working on Kea with a *Meson-based build system*, and I’m trying to
regenerate the parser and lexer from the available .yy and .ll sources. I
am compiling my code under Docker.
My environment:
Program bison found: YES 3.8.2 (/usr/local/bin/bison)Program flex
found: YES 2.6.4 (/usr/bin/flex)
So both Bison (≥3.3.0) and Flex are correctly detected.
What I tried:
I removed the generated files:
-
src/bin/dhcp4/dhcp4_parser.cc
-
src/bin/dhcp4/dhcp4_lexer.cc
Expecting Meson to regenerate them from:
-
dhcp4_parser.yy
-
dhcp4_lexer.ll
But when I run meson setup or meson compile, I get the error:
src/bin/dhcp4/meson.build:1:12: ERROR: File dhcp4_lexer.cc does not exist.
It seems Meson is *expecting pre-generated files* instead of running
Flex/Bison, even though the sources are present and the tools are available.
Question:
Is there a recommended or supported way to integrate .yy and .ll Generation
with Meson in Kea?
Any guidance or examples for Meson would be greatly appreciated!
Thanks,
Dipesh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20250716/e21bacab/attachment.htm>
More information about the Kea-users
mailing list