[odb-users] Debian upgrade

luca paganotti luca.paganotti at gmail.com
Thu Aug 26 11:33:42 EDT 2021


Hi Boris,

I'm trying to build cli after 'build' installation via 'make
install_prefix=/usr install' command. Apart from some warnings I have two
errors in my make command for cli (version 1.1.0). Please find the attached
text file containing the make command output.

Can I have some hint on these errors in order to solve them?
 Thank, regards.

----------------------------------------------------------------
-- Dott. Ing. Luca Paganotti
-- Via dei Giardini 9
-- 21035 Cunardo (VA)
-- 393 1346898
----------------------------------------------------------------
-- softech s.r.l. email:
-- luca.paganotti at softechweb.it
-- luca.paganotti at gmail.com
-- https://github.com/lucapaganotti
-- sourceforge email:
-- lucapaganotti at users.sourceforge.net
-- skype name: luca.paganotti
[image: http://it.linkedin.com/in/lucapaganotti]
<http://it.linkedin.com/in/lucapaganotti>
-- ---------------------------------------------------------------
-- Mistakes are portals of discovery - JAAJ
--- --------------------------------------------------------------


On Thu, Aug 26, 2021 at 3:30 PM Boris Kolpackov <boris at codesynthesis.com>
wrote:

> luca paganotti <luca.paganotti at gmail.com> writes:
>
> > Hi all, after debian upgrade from 10 to 11 odb is not working anymore.
> >
> > odb: error: no ODB plugin in GCC plugin directory
> > '/usr/lib/gcc/x86_64-linux-gnu/10/plugin'
> >
> > I checked and odb.so is not present in the mentioned plugin folder.
> >
> > The upgrade went fine, but now odb refuses to work as before.
>
> The version of GCC (g++) must have changed and so ODB is now looking
> for the plugin for that version. There are two ways forward:
>
> 1. Rebuild/reinstall ODB for the new version of GCC.
>
> 2. Force ODB to use the old version of GCC if you still have it,
>    for example:
>
>    odb -x g++-9 ...
>
>
-------------- next part --------------
c++ /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.cxx
In file included from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/shared-ptr.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.hxx:15,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.cxx:8:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/shared-ptr/base.hxx:33:41: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   33 | operator new (std::size_t, cutl::share) throw (std::bad_alloc);
      |                                         ^~~~~
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/shared-ptr/base.hxx:63:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   63 |     operator new (std::size_t, share) throw (std::bad_alloc);
      |                                       ^~~~~
In file included from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/shared-ptr/base.hxx:88,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/shared-ptr.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.hxx:15,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.cxx:8:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/shared-ptr/base.ixx:63:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   63 |   operator new (std::size_t n, share) throw (std::bad_alloc)
      |                                       ^~~~~
In file included from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/context.hxx:14,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/semantics/elements.hxx:23,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/semantics/class.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/semantics.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.hxx:18,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.cxx:8:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/container/any.hxx:130:12: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  130 |       std::auto_ptr<holder> holder_;
      |            ^~~~~~~~
In file included from /usr/include/c++/10/memory:83,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/container/any.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/context.hxx:14,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/semantics/elements.hxx:23,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/semantics/class.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/semantics.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.hxx:18,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.cxx:8:
/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/class.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.hxx:19,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.cxx:8:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx: In instantiation of ‘cutl::compiler::traverser_impl<X, B>::traverser_impl() [with X = semantics::names; B = semantics::edge]’:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:87:10:   required from here
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: error: ‘add’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
   76 |         add (typeid (type), *this);
      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: declarations in dependent base ‘cutl::compiler::traverser_map<semantics::edge>’ are not found by unqualified lookup
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: use ‘this->add’ instead
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx: In instantiation of ‘cutl::compiler::traverser_impl<X, B>::traverser_impl() [with X = semantics::belongs; B = semantics::edge]’:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:87:10:   required from here
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: error: ‘add’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: declarations in dependent base ‘cutl::compiler::traverser_map<semantics::edge>’ are not found by unqualified lookup
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: use ‘this->add’ instead
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx: In instantiation of ‘cutl::compiler::traverser_impl<X, B>::traverser_impl() [with X = semantics::initialized; B = semantics::edge]’:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:87:10:   required from here
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: error: ‘add’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: declarations in dependent base ‘cutl::compiler::traverser_map<semantics::edge>’ are not found by unqualified lookup
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: use ‘this->add’ instead
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx: In instantiation of ‘cutl::compiler::traverser_impl<X, B>::traverser_impl() [with X = semantics::cxx_includes; B = semantics::edge]’:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:87:10:   required from here
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: error: ‘add’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: declarations in dependent base ‘cutl::compiler::traverser_map<semantics::edge>’ are not found by unqualified lookup
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: use ‘this->add’ instead
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx: In instantiation of ‘cutl::compiler::traverser_impl<X, B>::traverser_impl() [with X = semantics::cli_includes; B = semantics::edge]’:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:87:10:   required from here
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: error: ‘add’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: declarations in dependent base ‘cutl::compiler::traverser_map<semantics::edge>’ are not found by unqualified lookup
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: use ‘this->add’ instead
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx: In instantiation of ‘cutl::compiler::traverser_impl<X, B>::traverser_impl() [with X = semantics::namespace_; B = semantics::node]’:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:81:10:   required from here
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: error: ‘add’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: declarations in dependent base ‘cutl::compiler::traverser_map<semantics::node>’ are not found by unqualified lookup
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/libcutl/cutl/compiler/traversal.hxx:76:13: note: use ‘this->add’ instead
In file included from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/class.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal.hxx:9,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.hxx:19,
                 from /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.cxx:8:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx: In instantiation of ‘void traversal::scope_template<T>::names(T&, traversal::edge_dispatcher&) [with T = semantics::namespace_; traversal::edge_dispatcher = cutl::compiler::dispatcher<semantics::edge>]’:
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:132:5:   required from here
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:134:28: error: ‘iterate_and_dispatch’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
  134 |       iterate_and_dispatch (s.names_begin (), s.names_end (), d);
      |       ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:134:28: note: declarations in dependent base ‘cutl::compiler::dispatcher<semantics::edge>’ are not found by unqualified lookup
/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/traversal/elements.hxx:134:28: note: use ‘this->iterate_and_dispatch’ instead
make: *** [/home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/build-0.3/cxx/generic/cxx-o.make:24: /home/buck/dev/c++/codesynthesis/cli-1.1.0+dep/cli/cli/context.o] Errore 1


More information about the odb-users mailing list