[odb-users] Debian upgrade

luca paganotti luca.paganotti at gmail.com
Fri Aug 27 05:37:02 EDT 2021


Hi Boris,

building odb gives me :

buck at poetic:~/dev/c++/odb/odb$ make
c++ /home/buck/dev/c++/odb/odb/odb/cxx-lexer.cxx
In file included from
/usr/lib/gcc/x86_64-linux-gnu/10/plugin/include/tm.h:26,
                 from
/usr/lib/gcc/x86_64-linux-gnu/10/plugin/include/backend.h:28,
                 from
/usr/lib/gcc/x86_64-linux-gnu/10/plugin/include/gcc-plugin.h:30,
                 from /home/buck/dev/c++/odb/odb/odb/gcc.hxx:47,
                 from /home/buck/dev/c++/odb/odb/odb/cxx-lexer.cxx:4:
/usr/lib/gcc/x86_64-linux-gnu/10/plugin/include/config/i386/i386.h:2500:10:
fatal error: common/config/i386/i386-cpuinfo.h: File o directory non
esistente
 2500 | #include "common/config/i386/i386-cpuinfo.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/usr/include/build-0.3/cxx/gnu/cxx-o.make:24:
/home/buck/dev/c++/odb/odb/odb/cxx-lexer.o] Errore 1

searching to solve the error I've found this thread:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981174

in the last message it's clearly stated that gcc/g++ 10 has some bugs that
will never be addressed, specifically the *#980609 missing i386-cpuinfo.h*
will not be addressed and a few lines below it's stated that:

* odb switched to GCC-9


so it seems that the only way to have back odb is to reinstall g++-9

Have a great day.

----------------------------------------------------------------
-- 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 ...
>
>


More information about the odb-users mailing list