[odb-users] compile errors building odb 2.5 compiler

c.sell at byterefinery.de c.sell at byterefinery.de
Sat May 12 12:10:25 EDT 2018


Hello,

after my recent upgrade to fedorea 28 and gcc 8.0.1, the odb compiler  
was no longer working:

cc1plus: error: cannot load plugin /usr/local/bin/../libexec/odb/odb.so
    /usr/local/bin/../libexec/odb/odb.so: undefined symbol: global_namespace

I therefore decided to rebuild the compiler, using the 2.5.a11 and b4  
pre-releases. However, after a successful ./configure, the 'make'  
yields compile errors:

[byter at xps15 odb-2.5.0-b.4]$ make
Making all in odb
make[1]: Entering directory '/home/byter/work/odb/2.5/odb-2.5.0-b.4/odb'
make  all-am
make[2]: Entering directory '/home/byter/work/odb/2.5/odb-2.5.0-b.4/odb'
depbase=`echo cxx-lexer.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H    
-I'..' -I'..' -I/usr/lib/gcc/x86_64-redhat-linux/8/plugin/include  -g  
-O2 -MT cxx-lexer.lo -MD -MP -MF $depbase.Tpo -c -o cxx-lexer.lo  
cxx-lexer.cxx &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I..  
-I/usr/lib/gcc/x86_64-redhat-linux/8/plugin/include -g -O2 -MT  
cxx-lexer.lo -MD -MP -MF .deps/cxx-lexer.Tpo -c cxx-lexer.cxx  -fPIC  
-DPIC -o .libs/cxx-lexer.o
cxx-lexer.cxx: In member function ‘virtual cpp_ttype  
cxx_pragma_lexer::next(std::__cxx11::string&, tree_node**)’:
cxx-lexer.cxx:96:29: error: ‘C_IS_RESERVED_WORD’ was not declared in  
this scope
    if (*type_ == CPP_NAME && C_IS_RESERVED_WORD (*token_))


can anyone help?

thanks,
Christian



More information about the odb-users mailing list