[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: the default argument for parameter 0 of ... has not yet been

From: Jeffrey Walton
Subject: Re: error: the default argument for parameter 0 of ... has not yet been parsed
Date: Mon, 22 Mar 2021 04:32:03 -0400

On Mon, Mar 22, 2021 at 1:53 AM Jeffrey Walton <noloader@gmail.com> wrote:
> Hi Everyone,
> I'm building Bison 3.7.6 from sources. I need it for OpenSSH on an old
> PowerMac, powerpc-apple-darwin9.8.0.
> make check is failing:
> updating examples/c++/variant.output
> updating examples/c++/variant.hh
> /usr/bin/g++ -DEXEEXT=\"\"   -I. -I/opt/ssh/include -DNDEBUG    -g2
> -O2 -mlong-double-64 -maltivec -fPIC -pthread -MT
> examples/c++/variant-variant.o -MD -MP -MF
> examples/c++/.deps/variant-variant.Tpo -c -o
> examples/c++/variant-variant.o `test -f 'examples/c++/variant.cc' ||
> echo './'`examples/c++/variant.cc
> examples/c++/variant.cc: In constructor 'yy::parser::parser()':
> examples/c++/variant.cc:176: error: the default argument for parameter
> 0 of 'yy::parser::stack<T, S>::stack(typename S::size_type) [with T =
> yy::parser::stack_symbol_type, S =
> std::vector<yy::parser::stack_symbol_type,
> std::allocator<yy::parser::stack_symbol_type> >]' has not yet been
> parsed
> gmake[3]: *** [examples/c++/variant-variant.o] Error 1
> gmake[3]: Target `examples/c++/variant' not remade because of errors.
> gmake[3]: `tests/bison' is up to date.
> gmake[3]: Nothing to be done for `tests/atconfig'.
> gmake[3]: `tests/atlocal' is up to date.
> An updated compiler is out of the question because libcxx has been
> broken for some time. We can't build a compiler.
> In this case, I suggest removal of examples. They add no value for
> users like me. They only increase the risk of a failed build. Users
> who want examples can configure with --enable-examples or similar.
> (Our policies and procedures only require 'make && make check'
> succeed. We don't care about documentation, examples or other
> non-essential fodder).

If anyone knows how to disable the C++ examples, it would be greatly
appreciated. I tried both --disable-examples and --disable-c++, but
neither stopped the building of the c++ projects.

I also tried building Bison back to 3.0 but everything fails to build.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]