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

Tyler Lytle tlytle123 at gmail.com
Tue May 24 19:15:05 EDT 2022


Hello,

This is my first time using a mailing list so please be gentle.

I am trying to compile ODB 2.4.0 (the most recent version listed in the
downloads section of the codesynthesis.com website). I downloaded and
untarred the odb-2.4.0.tar.gz. In the INSTALL file, it says to ensure that
gcc plugin support is enabled. Here is the output to verify that gcc plugin
report is enabled:

[tlytle at localhost odb-2.4.0]$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-shared --enable-threads=posix --enable-checking=release
--enable-multilib --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-gcc-major-version-only
--with-linker-hash-style=gnu --enable-plugin --enable-initfini-array
--with-isl --disable-libmpx --enable-offload-targets=nvptx-none
--without-cuda-driver --enable-gnu-indirect-function --enable-cet
--with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
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 whether to install ODB plugin into default GCC plugin directory...
no
checking for GCC plugin headers... no
configure: error: GCC plugin headers not found; consider installing GCC
plugin development package

Is this a compatibility issue since the INSTALL file is mentioning GCC 4.4
and RHEL 8.5 is on GCC 8.5? Are there any workarounds or should I just use
one of the pre-packaged ODB binaries available on the website?

Thank you for any help.
-- 
Tyler Lytle
E-Mail: tlytle123 at gmail.com


More information about the odb-users mailing list