Pretty printers for versioned namespace

Jonathan Wakely jwakely@redhat.com
Tue Jan 31 14:42:00 GMT 2017


On 30/01/17 21:41 +0100, François Dumont wrote:
>Hi
>
>    I tried to use your patch but failed so far. Situation with 
>autoreconf is a little bit strange. On my system the default 
>autoreconf is version 2.69. When using it I have:
>
>/home/fdt/dev/gcc/git/libstdc++-v3>/usr/bin/autoreconf
>configure.ac:4: error: Please use exactly Autoconf 2.64 instead of 2.69.
>
>    So I install version 2.64 and when using it I now have:
>
>/home/fdt/dev/gcc/git/libstdc++-v3>autoreconf
>configure.ac:74: error: Autoconf version 2.65 or higher is required

I think this means you've already modified the file to have
AC_PREREQ(2.65), make sure you revert any changes and start again
using 2.64 (and automake 1.11.6).

>Is there some doc about this ?

https://gcc.gnu.org/install/prerequisites.html documents the
requirements for autoconf 2.64 and automake 1.11.6

>I don't know what is the impact of it but is there a plan to allow 
>version 2.69 to work out of the box ?

No. It's fairly easy to use the right versions.

One option is to install autoconf 2.64 and automake 1.11.6 to some
other path (e.g. $HOME/autotools-gcc) and remember to add that to
youur PATH when working on GCC e.g.

PATH=$HOME/autotools-gcc:$PATH autoreconf

Personally I configure them with:

./configure --prefix=/opt/autotools-gcc --program-suffix=_

and then have launcher scripts in /opt/autotools-gcc/bin which set
environment variables to find the right versions:

$ cat /opt/autotools-gcc/bin/autoreconf
#!/usr/bin/bash
export AUTOCONF=/opt/autotools-gcc/bin/autoconf_
export AUTOHEADER=/opt/autotools-gcc/bin/autoheader_
if [ -f /opt/autotools-gcc/bin/automake_ ]; then
  export AUTOMAKE=/opt/autotools-gcc/bin/automake_
  export ACLOCAL=/opt/autotools-gcc/bin/aclocal_
  export AUTOM4TE=/opt/autotools-gcc/bin/autom4te_
fi
exec /opt/autotools-gcc/bin/${0##*/}_


If you use Fedora or RHEL7 there are RPM files available from:
https://copr.fedorainfracloud.org/coprs/jwakely/autotools-gcc/




More information about the Libstdc++ mailing list