This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Minimum bison requirement for building glibc/gettext
- From: Will Newton <will dot newton at linaro dot org>
- To: Steve Ellcey <sellcey at imgtec dot com>
- Cc: libc-help at sourceware dot org
- Date: Wed, 17 Dec 2014 21:27:24 +0000
- Subject: Re: Minimum bison requirement for building glibc/gettext
- Authentication-results: sourceware.org; auth=none
- References: <553f4af2-8f33-4063-921e-fe70e14f4d8e at BAMAIL02 dot ba dot imgtec dot org>
On 17 December 2014 at 18:22, Steve Ellcey <sellcey@imgtec.com> wrote:
> Sometime in the last couple of days I have noticed my glibc builds
> failing with:
>
> /usr/bin/bison --yacc --name-prefix=__gettext --output plural.c plural.y
> /usr/share/bison/yacc.c:94: error: invalid pure value: pure
> /usr/share/bison/yacc.c:94: the top level
> plural.y:46.9-16: invalid value for %define Boolean variable `api.pure'
> make[2]: *** [plural.c] Error 1
> make[2]: Leaving directory `/scratch/sellcey/repos/nightly2/src/glibc/intl'
> make[1]: *** [intl/subdir_lib] Error 2
> make[1]: Leaving directory `/scratch/sellcey/repos/nightly2/src/glibc'
> make: *** [all] Error 2
> Error: Make command failed, stopping build.
>
> I haven't changed plural.y locally, I think the recent gettext merge just
> caused my git checkout to create plural.y with a later timestamp then plural.c.
>
> I am building on ubuntu 12.04 with bison 2.5. Do I need to use a newer
> bison? It looks like the plural.c in the source tree was created by bison
> 2.7. Is the required version documented somewhere? I didn't see anything
> in the glibc Wiki about the build requirements for glibc.
>
> I can work around this by touching plural.c or updating the bison on my
> build machines but I was wondering if there was a better way to handle
> this.
I have a patch pending review to bump the required version to 2.7
which should hopefully fix this for you:
https://sourceware.org/ml/libc-alpha/2014-12/msg00414.html
--
Will Newton
Toolchain Working Group, Linaro