[PATCH V2] gprofng: a new GNU profiler

Vladimir Mezentsev vladimir.mezentsev@oracle.com
Thu Aug 26 06:01:26 GMT 2021



On 8/25/21 9:17 PM, Peter Kessler (Open Source) via Binutils wrote:
> I am trying to build gprofng on aarch64.  I cloned https://github.com/oracle/binutils-gdb.git and checked out the oracle/gprofng-v2 branch.  I saw the requirement
>
> In order to successfully build gprofng, the following versions of
> external components are required:
>
> - Bison 3.7.5, or higher
>
> so I got a copy of https://ftp.gnu.org/gnu/bison/bison-3.7.5.tar.xz, configured, and built it.  I now have
>
> $ bison --version
> bison (GNU Bison) 3.7.5
>
> When I make gprofng, I get the strange error message
>
> $ make
> <snip>
> checking for bison... bison
> checking for bison 3.3 or newer... 3.7.5, bad
> configure: error: Building gprofng requires bison 3.3 or later.
> make[1]: *** [Makefile:6664: configure-gprofng] Error 1
>
> I would have thought that version 3.7.5 was "newer" than version 3.3.  I would have thought that having the exact version required would ok.
>
> What am I doing wrong?
>
>                                                  … peter
>

  Hi Peter,

I cannot reproduce this problem on my aarch64 VM:
% uname -a
Linux OL8.4-beta3 5.4.17-2102.200.13.el8uek.aarch64 #2 SMP Sun Mar 28 
15:24:03 PDT 2021 aarch64 aarch64 aarch64 GNU/Linux

% bison --version
bison (GNU Bison) 3.7.5
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.


% cat -n gprofng/configure.ac
...
     30    gl_PROG_BISON([DBE_BISON],[3.3])
     31    if test x$DBE_BISON = "x:"; then
     32      AC_MSG_ERROR([Building gprofng requires bison 3.3 or later.])
     33    fi


It looks like the problem is in your  gl_PROG_BISON

Thank you,
-Vladimir




More information about the Binutils mailing list