<div dir="ltr">Hi,<div><br></div><div>When I try to build 32 bit Mesa on Arch Linux, I get the following error:</div><div><br></div><div><div>/usr/bin/mkdir -p ../../src/glsl/glcpp</div><div>/usr/bin/mkdir -p ../../src/glsl/glcpp</div>
<div> YACC glcpp/glcpp-parse.c</div><div> LEX glsl_lexer.cpp</div><div> YACC glsl_parser.cpp</div><div> LEX glcpp/glcpp-lex.c</div><div>make all-recursive</div><div>make[3]: Entering directory `/home/user/src/mesa/src/glsl'</div>
<div>Making all in builtin_compiler</div><div>make[4]: Entering directory `/home/user/src/mesa/src/glsl/builtin_compiler'</div><div> CXX glsl_parser.lo</div><div> CXX glsl_lexer.lo</div><div> CXX ast_array_index.lo</div>
<div> CXX ast_expr.lo</div><div>glsl_parser.cpp: In function 'int _mesa_glsl_parse(_mesa_glsl_parse_state*)':</div><div>glsl_parser.cpp:2616:41: error: 'scanner' was not declared in this scope</div></div>
<div><br></div><div>This error happens even if I try building at a commit 4 weeks ago. I'm sure I was able to get Mesa to build atleast 1-2 weeks ago. I'm not sure if this is a recent bug introduced in Mesa code, or if it's because of some other software like bison/lex being buggy.</div>
<div><br></div><div>glsl_parser.cpp doesn't seem to be part of the source code, I'm guessing it's automatically generated from glsl_parser.yy as part of the build process. Any ideas on how I can resolve this problem?<br>
</div><div><br></div><div>-Sandeep</div></div>