On 4/6/26 07:45, Bruno Haible wrote:
[CCing bug-gnulib, since bison.m4 comes from Gnulib.]
Dennis Clarke wrote:
Just something a bit odd. I am working on a toolchain with OpenBSD 7.8
on an old DEC Alpha. Seems to run fine but I need to build anything I
need from source. Of course.
GNU patch configure seems a bit odd with regards to bison :
checking for bison... bison
checking for bison 2.4 or newer... 3.8.2, bad
Well that is weird.
centauri$
centauri$ which bison
/opt/bw/bin/bison
centauri$
centauri$ /opt/bw/bin/bison --version
bison (GNU Bison) 3.8.2
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
centauri$
So "bad" is a bit strange there.
Could it be that you have the environment variable POSIXLY_CORRECT set?
darn it
If so, this was fixed in Gnulib on 2025-05-11, after the latest GNU patch
release.
If not, then what is the result of executing
$ cat >conftest.y <<_ACEOF
%require "2.4"
%%
exp:
_ACEOF
$ bison conftest.y -o conftest.c
centauri# unset POSIXLY_CORRECT
centauri# bison conftest.y -o conftest.c
centauri# echo $?
0
centauri#
well that solves that.
checking for bison... bison
checking for bison 2.4 or newer... 3.8.2, ok
yup.
--
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken