[odb-users] Building ODB 2.4.0 on OpenSuSE Leap 15.0

Alexander Kuznetsov admin at replaytrader.com
Mon Mar 11 18:37:11 EDT 2019


Hello.

I'm using OpenSuSE Leap 15.0 and GCC 7.3.1 or 8.2.1. Both compilers have been built from sources to include plugin support.
Tried to compile odb on that system.

Need help or any insight how to compile ODB on systems with GCC > 5.

As a note I have compiled everything on OpenSuSE 42.3 using GCC 5, however we're planning to phase out those systems.


Here is what I have during compilation (handpicked errors, the entire list is very big) :

 /usr/lib64/gcc/x86_64-suse-linux/8/plugin/include/wide-int.h:933:23:
error: 'gcc_checking_assert' was not declared in this scope
   gcc_checking_assert (precision == x.get_precision ());
   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/lib64/gcc/x86_64-suse-linux/8/plugin/include/wide-int.h:2976:25:
error: 'STATIC_CONSTANT_P' was not declared in this scope, and no
declarations were found by argument-dependent lookup at the point of
instantiation [-fpermissive]
    ? (STATIC_CONSTANT_P (shift < HOST_BITS_PER_WIDE_INT - 1)
       ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/lib64/gcc/x86_64-suse-linux/8/plugin/include/wide-int.h:1869:25:
error: 'STATIC_CONSTANT_P' was not declared in this scope
   if (STATIC_CONSTANT_P (xi.len == 1))
       ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~

/usr/lib64/gcc/x86_64-suse-linux/8/plugin/include/machmode.h:394:17:
error: no matching function for call to
'scalar_int_mode::scalar_int_mode(mode_traits<scalar_int_mode>::from_int)'
       *result = T (typename mode_traits<T>::from_int (m));
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/lib64/gcc/x86_64-suse-linux/8/plugin/include/machmode.h:357:46:
error: could not convert '(mode_traits<scalar_int_mode>::from_int)m'
from 'mode_traits<scalar_int_mode>::from_int' to 'scalar_int_mode'
   return typename mode_traits<T>::from_int (m);
                                              ^
cxx-lexer.cxx: In member function 'virtual cpp_ttype
cxx_string_lexer::next(std::__cxx11::string&, tree_node**)':
cxx-lexer.cxx:272:11: error: 'C_IS_RESERVED_WORD' was not declared in
this scope
       if (C_IS_RESERVED_WORD (id))
           ^~~~~~~~~~~~~~~~~~
cxx-lexer.cxx:272:11: note: suggested alternative: 'LDPR_RESOLVED_IR'
       if (C_IS_RESERVED_WORD (id))
           ^~~~~~~~~~~~~~~~~~
           LDPR_RESOLVED_IR

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 1778 bytes
Desc: not available
Url : https://codesynthesis.com/pipermail/odb-users/attachments/20190311/f997c36b/pEpkey.key


More information about the odb-users mailing list