<div dir="ltr"><div dir="ltr"><p>Hi <span style="color:rgb(0,0,0)">Andrei</span>,</p>
<p>I'm working on Kea with a <strong>Meson-based build system</strong>, and I’m trying to regenerate the parser and lexer from the available <code>.yy</code> and <code>.ll</code> sources. I am compiling my code under Docker.</p>
<h3>My environment:</h3><pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-whitespace-pre!"><span class="gmail-hljs-attr">Program bison found:</span> <span class="gmail-hljs-literal">YES</span> <span class="gmail-hljs-number">3.8</span><span class="gmail-hljs-number">.2</span> <span class="gmail-hljs-string">(/usr/local/bin/bison)</span>
<span class="gmail-hljs-attr">Program flex found:</span> <span class="gmail-hljs-literal">YES</span> <span class="gmail-hljs-number">2.6</span><span class="gmail-hljs-number">.4</span> <span class="gmail-hljs-string">(/usr/bin/flex)</span>
</code></div></div></pre>
<p>So both Bison (≥3.3.0) and Flex are correctly detected.<br><br></p><h3>What I tried:</h3><p>I removed the generated files:</p><ul>
<li>
<p><code>src/bin/dhcp4/dhcp4_parser.cc</code></p>
</li>
<li>
<p><code>src/bin/dhcp4/dhcp4_lexer.cc</code></p>
</li>
</ul><p>Expecting Meson to regenerate them from:</p><ul>
<li>
<p><code>dhcp4_parser.yy</code></p>
</li>
<li>
<p><code>dhcp4_lexer.ll</code></p>
</li>
</ul><p>But when I run <code>meson setup</code> or <code>meson compile</code>, I get the error:</p><pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-flex gmail-items-center gmail-text-token-text-secondary gmail-px-4 gmail-py-2 gmail-text-xs gmail-font-sans gmail-justify-between gmail-h-9 gmail-bg-token-sidebar-surface-primary gmail-select-none gmail-rounded-t-2xl"><br></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-whitespace-pre!">src/bin/dhcp4/meson.build:1:12: ERROR: File dhcp4_lexer.cc does not exist.
</code></div></div></pre><p>
</p><p>It seems Meson is <strong>expecting pre-generated files</strong> instead of running Flex/Bison, even though the sources are present and the tools are available.<br><br></p><h3>Question:</h3><p>Is there a recommended or supported way to integrate <code>.yy</code> and <code>.ll</code> Generation with Meson in Kea?</p><p>
</p><p>Any guidance or examples for Meson would be greatly appreciated!<br><br>Thanks,<br>Dipesh</p></div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>