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

Christophe Jarry christophe.jarry at ouvaton.org
Thu Sep 5 13:14:23 PDT 2013


> According to tis
> https://lists.gnu.org/archive/html/bug-tar/2005-02/msg00001.html error 141
> is 128+13 = SIGPIPE (broke pipe signal)
> And this may be relevant
> https://groups.google.com/forum/#!topic/golang-nuts/xjZ8jJx0IFw
> Check whether you are using right yacc and bison?

Thanks for your suggestions: I used SIGPIPE during the build and this gave me
Error 141. Without it, make gives me the following error:

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
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'


My versions of Flex and Bison:

$ flex --version
2.5.37

$ bison --version
bison (GNU Bison) 2.7
[...]


According to mesa documentation (docs/install.html):

On GNU/Linux systems, flex and bison are used. Versions 2.5.35 and 2.4.1,
respectively, (or later) should work.


Obviously, it does not work. What may I do?


More information about the mesa-dev mailing list