[Top][All Lists]

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

Re: cannot build bison-3.3.90 on Solaris 11.3: ‘to_string’ is not a memb

From: Bruno Haible
Subject: Re: cannot build bison-3.3.90 on Solaris 11.3: ‘to_string’ is not a member of ‘std’
Date: Sun, 19 May 2019 22:23:51 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-145-generic; KDE/5.18.0; x86_64; ; )

Hi Akim,

> With the following change, I could './configure LEX=false && make && make 
> check' successfully.  Does it work for you?
> commit 1934304acf6be6da3b44b65630d734cad6de1b03
> Author: Akim Demaille <address@hidden>
> Date:   Sun May 19 18:38:02 2019 +0200
>     examples: don't run those that require f?lex when it's not available
>     Reported by Bruno Haible.
>     http://lists.gnu.org/archive/html/bug-bison/2019-05/msg00026.html
>     * configure.ac (FLEX_WORKS): New.
>     * examples/c/lexcalc/local.mk, examples/c/reccalc/local.mk: Use it.

Yes! This fixes the problem with scan.c not being found.

The next problem during "make check" is a g++ compilation failure:

  CXX      examples/c++/variant_11-variant-11.o
examples/c++/variant-11.cc: In member function ‘virtual int 
examples/c++/variant-11.cc:623:61: error: ‘to_string’ is not a member of ‘std’
     { yylhs.value.as < string_uptr > () = make_string_uptr (std::to_string 
(YY_MOVE (yystack_[0].value.as < int > ()))); }
*** Error code 1
The following command caused the error:
echo "  CXX     " examples/c++/variant_11-variant-11.o;g++ -m64 -O2 
-std=gnu++11 -DEXEEXT=\"\"   -I. -I/export/home/bruno/prefix64/include -Wall 
-D_REENTRANT -std=c++11  -g -O2 -MT examples/c++/variant_11-variant-11.o -MD 
-MP -MF examples/c++/.deps/variant_11-variant-11.Tpo -c -o 
examples/c++/variant_11-variant-11.o `test -f 'examples/c++/variant-11.cc' || 
echo './'`examples/c++/variant-11.cc
make: Fatal error: Command failed for target 
Current working directory /export/home/bruno/bison-
*** Error code 1

g++ is version 4.8.2.


reply via email to

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