[Mesa-dev] Mesa (git 20130828) fails to build on MIPS

Christophe Jarry christophe.jarry at ouvaton.org
Wed Sep 11 13:04:02 PDT 2013


On Thu, Sep 5, 2013 at 1:14 PM, Christophe Jarry <
christophe.jarry at ouvaton.org> wrote:

> make[2]: Entering directory `/usr/src/mesa/mesa-20130828/src/glsl'
> /usr/lib/pkgusr/mkdir -p ../../src/glsl/glcpp
>   LEX      glsl_lexer.cpp
>   YACC     glsl_parser.cpp
> /usr/lib/pkgusr/mkdir -p ../../src/glsl/glcpp
>   YACC     glcpp/glcpp-parse.c
>   LEX      glcpp/glcpp-lex.c
> /bin/sh: line 1:  5657 Segmentation fault \
>      flex -o glsl_lexer.cpp glsl_lexer.ll
> make[2]: *** [glsl_lexer.cpp] Error 139
> make[2]: *** Waiting for unfinished jobs....
> /bin/sh: line 1:  5673 Segmentation fault \
>      flex -o glcpp/glcpp-lex.c glcpp/glcpp-lex.l
> make[2]: *** [glcpp/glcpp-lex.c] Error 139

GDB indicates that flex (2.5.37 here) entered an infinite loop. The bug has
been reported on http://sourceforge.net/p/flex/bugs/151/ with a fix that worked
for me. Using flex version 2.5.35 does not produce a segmentation fault.

> bison: m4 subprocess failed
> make[2]: *** [glcpp/glcpp-parse.c] Error 1
> bison: m4 subprocess failed
> make[2]: *** [glsl_parser.cpp] Error 1
> make[2]: Leaving directory `/usr/src/mesa/mesa-20130828/src/glsl'

I got rid of this error by using bison 2.4.1 instead of 2.7.

Thank you for your help!

Christophe


More information about the mesa-dev mailing list