octave-maintainers
[Top][All Lists]
Advanced

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

Re: gcc7 build error with recent tip


From: Dmitri A. Sergatskov
Subject: Re: gcc7 build error with recent tip
Date: Fri, 23 Jun 2017 17:39:17 -0500



On Fri, Jun 23, 2017 at 4:58 PM, Dmitri A. Sergatskov <address@hidden> wrote:
On Fri, Jun 23, 2017 at 4:38 PM, Mike Miller <address@hidden> wrote:
On Fri, Jun 23, 2017 at 16:03:00 -0500, Dmitri A. Sergatskov wrote:
> It failing the same way on few computers (all with Fedora 26-beta).
> Perhaps it is
> a compiler issue (clang does not have problem with it). It persists
> (see fedora builds on http://buildbot.octave.org:8010/waterfall)

I get the same error with gcc-snapshot in Debian (gcc trunk r249349).
Next stop bug tracker.


​It compiles if I set CXXFLAGS to -std=c++1z or -std=c++14
and fails again with -std=c++11

​I managed to confuse myself with all those flags -- it compiles with ​ -std=c++1z
fails with either -std=c++11 or std=c++14:

<<<<
HG ID for this build is "6fe13cd3543c"
​....
​__octave_config_info__ ("CXXFLAGS")
ans = -O2 -std=c++1z
===========================

/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -Iliboctave -I../liboctave -I../liboctave/array -Iliboctave/numeric -I../liboctave/numeric -Iliboctave/operators -I../liboctave/operators -I../liboctave/system -I../liboctave/util -I../libinterp/octave-value -Ilibinterp -I../libinterp -I../libinterp/operators -Ilibinterp/parse-tree -I../libinterp/parse-tree -Ilibinterp/corefcn -I../libinterp/corefcn -I../liboctave/wrappers  -I/usr/include/GraphicsMagick   -I/usr/include/freetype2 -I/usr/include/libpng16  -I/usr/include/freetype2 -I/usr/include/libpng16      -fPIC -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual  -O2 -std=c++14 -MT libinterp/corefcn/libinterp_corefcn_libcorefcn_la-symtab.lo -MD -MP -MF libinterp/corefcn/.deps/libinterp_corefcn_libcorefcn_la-symtab.Tpo -c -o libinterp/corefcn/libinterp_corefcn_libcorefcn_la-symtab.lo `test -f 'libinterp/corefcn/symtab.cc' || echo '../'`libinterp/corefcn/symtab.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Iliboctave -I../liboctave -I../liboctave/array -Iliboctave/numeric -I../liboctave/numeric -Iliboctave/operators -I../liboctave/operators -I../liboctave/system -I../liboctave/util -I../libinterp/octave-value -Ilibinterp -I../libinterp -I../libinterp/operators -Ilibinterp/parse-tree -I../libinterp/parse-tree -Ilibinterp/corefcn -I../libinterp/corefcn -I../liboctave/wrappers -I/usr/include/GraphicsMagick -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -fPIC -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O2 -std=c++14 -MT libinterp/corefcn/libinterp_corefcn_libcorefcn_la-symtab.lo -MD -MP -MF libinterp/corefcn/.deps/libinterp_corefcn_libcorefcn_la-symtab.Tpo -c ../libinterp/corefcn/symtab.cc  -fPIC -DPIC -o libinterp/corefcn/.libs/libinterp_corefcn_libcorefcn_la-symtab.o
../libinterp/corefcn/symtab.cc: In member function ‘octave_value symbol_table::dump() const’:
../libinterp/corefcn/symtab.cc:1446:73: error: no matching function for call to ‘dump_container_map(const std::map<std::__cxx11::basic_string<char>, std::set<std::__cxx11::basic_string<char> > >&)’
        {"precedence_table", dump_container_map (m_class_precedence_table)},
                                                                         ^
../libinterp/corefcn/symtab.cc:1424:1: note: candidate: template<class V, template<class ...> class C> octave_value dump_container_map(const std::map<std::__cxx11::basic_string<char>, C<V> >&)
 dump_container_map (const std::map<std::string, C<V>>& container_map)
 ^~~~~~~~~~~~~~~~~~
../libinterp/corefcn/symtab.cc:1424:1: note:   template argument deduction/substitution failed:
../libinterp/corefcn/symtab.cc:1446:73: note:   candidate expects 1 argument, 3 provided
        {"precedence_table", dump_container_map (m_class_precedence_table)},
                                                                         ^
../libinterp/corefcn/symtab.cc:1447:59: error: no matching function for call to ‘dump_container_map(const std::map<std::__cxx11::basic_string<char>, std::__cxx11::list<std::__cxx11::basic_string<char> > >&)’
        {"parent_classes", dump_container_map (m_parent_map)}};
                                                           ^
../libinterp/corefcn/symtab.cc:1424:1: note: candidate: template<class V, template<class ...> class C> octave_value dump_container_map(const std::map<std::__cxx11::basic_string<char>, C<V> >&)
 dump_container_map (const std::map<std::string, C<V>>& container_map)
 ^~~~~~~~~~~~~~~~~~
../libinterp/corefcn/symtab.cc:1424:1: note:   template argument deduction/substitution failed:
../libinterp/corefcn/symtab.cc:1447:59: note:   candidate expects 1 argument, 2 provided
        {"parent_classes", dump_container_map (m_parent_map)}};
                                                           ^
../libinterp/corefcn/symtab.cc:1447:61: error: could not convert ‘{{"function_info", symbol_table::dump_fcn_table_map() const()}, {"precedence_table", <_expression_ error>}, {"parent_classes", <_expression_ error>}}’ from ‘<brace-enclosed initializer list>’ to ‘std::map<std::__cxx11::basic_string<char>, octave_value>’
        {"parent_classes", dump_container_map (m_parent_map)}};
                                                             ^
make[2]: *** [Makefile:18264: libinterp/corefcn/libinterp_corefcn_libcorefcn_la-symtab.lo] Error 1


 

 
--
mike


​Dmitri.
--

​Dmitri.
 


reply via email to

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