[odb-users] Cannot Compile ODB Compiler on RHEL 8.5

Tyler Lytle tlytle123 at gmail.com
Thu Jun 9 15:33:15 EDT 2022


Hello Boris,

Thank you for the reply. I'm sorry it took me so long to get back to you. I
got caught up in some other work then I caught Covid so I was out of
commission for a bit.

I got the following output:

[tlytle at localhost odb]$ g++ --print-file-name=plugin
/usr/lib/gcc/x86_64-redhat-linux/8/plugin

[tlytle at localhost plugin]$ cd /usr/lib/gcc/x86_64-redhat-linux/8/plugin/
[tlytle at localhost plugin]$ ls
annobin.so  annobin.so.0  annobin.so.0.0.0  libcc1plugin.so
 libcc1plugin.so.0  libcc1plugin.so.0.0.0  libcp1plugin.so
 libcp1plugin.so.0  libcp1plugin.so.0.0.0

The include/ directory is actually up one directory level as shown below:

[tlytle at localhost plugin]$ cd ..
[tlytle at localhost 8]$ ls
32           crtbeginT.o  crtfastmath.o      crtoffloadtable.o  crtprec80.o
       libasan.so    libgcc_eh.a  libgomp.a     libitm.spec
 libquadmath.so     libstdc++.so       libubsan.so
crtbegin.o   crtend.o     crtoffloadbegin.o  crtprec32.o        include
       libatomic.so  libgcc_s.so  libgomp.so    liblsan_preinit.o
 libsanitizer.spec  libtsan_preinit.o  plugin
crtbeginS.o  crtendS.o    crtoffloadend.o    crtprec64.o
 libasan_preinit.o  libgcc.a      libgcov.a    libgomp.spec  liblsan.so
    libstdc++fs.a      libtsan.so         rpmver

I hope this helps. Thank you for your time.

On Wed, May 25, 2022 at 6:18 AM Boris Kolpackov <boris at codesynthesis.com>
wrote:

> Tyler Lytle <tlytle123 at gmail.com> writes:
>
> > [tlytle at localhost odb-2.4.0]$ g++ -v
> >
> > [...]
> >
> > gcc version 8.5.0 20210514 (Red Hat 8.5.0-3) (GCC)
> >
> > The INSTALL directions then say to ensure that the plugin headers are
> > installed. It is normally called something like "gcc-plugin-dev". Looking
> > at the RHEL 8.5 repository, the closest thing that I could find is
> > this: gcc-toolset-11-gcc-plugin-devel-11.2.1-1.1.el8.x86_64
> >
> > I installed that RPM from the RHEL 8.5 repository. I then run
> "./configure"
> > and I get the following error:
> >
> > checking for GCC plugin headers... no
>
> Can you run:
>
> $ g++ --print-file-name=plugin
>
> If that prints a directory, can you check that it contains the
> include/ subdirectory and a bunch of header files (.h) inside?
>
> If this all checks out, then it's most likely GCC 8 is too new
> for ODB 2.4.0 and I suggest that you try to build the latest
> pre-release of ODB 2.5.0 (which is known to work with GCC 8)
> by following these instructions:
>
> https://codesynthesis.com/products/odb/doc/install-build2.xhtml
>


-- 
Tyler Lytle
E-Mail: tlytle123 at gmail.com


More information about the odb-users mailing list