[Mesa-dev] [Bug 47248] New: autogen missing dependency on flex and bison, causes infinite loop in glsl build

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 12 12:04:52 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=47248

             Bug #: 47248
           Summary: autogen missing dependency on flex and bison, causes
                    infinite loop in glsl build
    Classification: Unclassified
           Product: Mesa
           Version: git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: darxus at chaosreigns.com


Last good commit:

commit 4ff8fd93e8e91672bb02543ecaa0c6e462a87551
Author: Matt Turner <mattst88 at gmail.com>
Date:   Sat Jan 28 20:13:51 2012 -0500

    glsl: rename Makefile.sources' _SOURCES variables

    automake uses variables named *_SOURCES.

    Reviewed-by: Eric Anholt <eric at anholt.net>
    Tested-by: Eric Anholt <eric at anholt.net>
    Signed-off-by: Matt Turner <mattst88 at gmail.com>

First bad commit:

commit dfb6142548df0dccbe6eed2c57986e208eb0d437
Author: Matt Turner <mattst88 at gmail.com>
Date:   Fri Jan 13 14:31:39 2012 -0500

    autoconf: use AC_PROG_YACC/LEX

    Needed for automake. Using AC_PROG_PATH(bison/flex) causes automake to
    fail to build .y and .l files.

    It is up to the builder to use bison/flex instead of yacc/lex.

    Reviewed-by: Eric Anholt <eric at anholt.net>
    Tested-by: Eric Anholt <eric at anholt.net>
    Signed-off-by: Matt Turner <mattst88 at gmail.com>


Without flex installed, autogen.sh should end with:

checking for flex... no
configure: error: flex is needed to build Mesa

Similar for bison.

Currently, it doesn't.  

I feel like this is only one of two problems here, the second being that if
autogen misses the absence of flex, there is no error when the build tries to
use it for glsl.  

At least when missing bison, it throws a useful error: 
/bin/bash: yacc: command not found


This is similar to bug 36651.

Latest commit, also has this problem:  
commit 5ac910c0146ca852566ad0328301b2d40f8f5e54
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Mar 11 23:38:36 2012 -0700

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list