<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:mattst88@gmail.com" title="Matt Turner <mattst88@gmail.com>"> <span class="fn">Matt Turner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - build: flex-2.5.39 seems to be failing for glsl_lexer.ll"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93989">bug 93989</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>idr@freedesktop.org
</td>
<td>mattst88@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - build: flex-2.5.39 seems to be failing for glsl_lexer.ll"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93989#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - build: flex-2.5.39 seems to be failing for glsl_lexer.ll"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93989">bug 93989</a>
from <span class="vcard"><a class="email" href="mailto:mattst88@gmail.com" title="Matt Turner <mattst88@gmail.com>"> <span class="fn">Matt Turner</span></a>
</span></b>
<pre>Hello, fellow Gentoo user. Gentoo developer here!
I'm using the latest stable flex, =sys-devel/flex-2.5.39-r1, and it worked for
me.
My build log looked like:
bison -o glsl/glsl_parser.cpp ...
flex -o glsl/glsl_lexer.cpp ...
/bin/mkdir -p glsl/glcpp
/bin/mkdir -p glsl/glcpp
/bin/mkdir -p nir
bison -o glsl/glcpp/glcpp-parse.c ...
/bin/mkdir -p nir
flex -o glsl/glcpp/glcpp-lex.c ...
The problem is a race condition between the mkdir commands and flex. Recently
there was a code reorganization. The problem is that the rules for
glsl/glsl_parser.cpp and glsl/glsl_lexer.cpp now need to call mkdir, whereas
they did not before.
Indeed, if I build with make -j1 I can reproduce the problem. I suppose it's
possible that there's a change in flex-2.5.39-r1 -> flex-2.6.0 that makes it
create directories if they don't exist, but I think it's more plausible that
the problem is simply a race condition and that it's not related to the version
of flex. In fact, when I build with make -j1, it's bison (2.7.1) that fails.
I will send a patch, and Cc you. Thanks for the report (and thank you for
filing it upstream)!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>