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

>
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to