Summary: | build: flex-2.5.39 seems to be failing for glsl_lexer.ll | ||
---|---|---|---|
Product: | Mesa | Reporter: | Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b> |
Component: | glsl-compiler | Assignee: | Matt Turner <mattst88> |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | major | ||
Priority: | medium | CC: | 0xe2.0x9a.0x9b, v10lator |
Version: | git | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Jan Ziak (http://atom-symbol.net)
2016-02-03 15:37:47 UTC
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)! (In reply to Matt Turner from comment #1) > 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. I can confirm this. For me updating flex to 2.6.0 doesn't fix this. > I will send a patch, and Cc you. Thanks for the report (and thank you for > filing it upstream)! Could you please Cc me, too? Patch is now upstream as commit 973ba3f4d4b73f67568ab2b0b6a4447c40bb9dcf Author: Matt Turner <mattst88@gmail.com> Date: Wed Feb 3 12:03:13 2016 -0800 glsl: Ensure glsl/ exists before making the lexer/parser. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.