Description of problem: Certain newer SAP kernels and tools on RHEL 8 are built with GCC 10. RHEL 8 is GCC 8 compatible, so a compat-sap-c++ library is required to provide compatibility. However, as the SAP kernel and tools are only looking for a file with name libstdc++.so.6 in the run path, these applications are currently not able find the compat-sap-c++ file. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. Update the SAP kernel to one of the SAP kernel versions mentioned in SAP note https://launchpad.support.sap.com/#/notes/3119751, e.g. SAP kernel 754 or 788. 2. Start the SAP system and monitor the terminal output and SAP log files. Actual results: Messages like the following will be shown: disp+work: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by disp+work) Expected results: The SAP system starts as expected, without such error messages. No further manual action (like for example creating a soft link) is required after installing the compat-sap-c++ package. Additional info: We will soon extend the SAP application's run path to also include /opt/rh/SAP/lib64, so the applications will search for file libstdc++.so.6 there as well. We need this fix for all RHEL 8 versions which are in the standard, eus, or e4s support range (= RHEL 8.1, 8.2, 8.4, 8.6, 7.7) and all future RHEL 8 versions, on all SAP supported architectures (x86_64, ppc64le, and s390x). We also need this fix in all compat-sap-c++ versions which are and will be available on RHEL 8, currently compat-sap-c++-10, -11, and -12.
There is a typo in the description: The correct RHEL versions in which the fix needs to be available are RHEL 8.1, 8.2, 8.4, 8.6, 8.7 (not 7.7). Note: I had proposed the bug description to Holger, and the typo was introduced by me.
Reseting current deadline since issue will not be moved to modified today.
Some test results and comments for compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm and compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm : From my point of view everything is okay (symlink libstdc++.so.6 is available, also all symlinks compat-sap-c++-*.so). Some comments regarding upgrades: Following seems to be possible: (1) (New) Installation of compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm. (2) (New) Installation of compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm AND all compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm (3) Upgrade from installed older compat-sap-c++-12 to compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm AND all compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm The result (installed files) is the same all 3 cases: $ ll /opt/rh/SAP/lib64/ total 2296 lrwxrwxrwx. 1 root root 24 Apr 17 16:31 compat-sap-c++-10.so -> compat-sap-c++-12.1.1.so lrwxrwxrwx. 1 root root 24 Apr 17 16:31 compat-sap-c++-11.so -> compat-sap-c++-12.1.1.so -rwxr-xr-x. 1 root root 2343184 Apr 17 16:31 compat-sap-c++-12.1.1.so lrwxrwxrwx. 1 root root 24 Apr 17 16:31 compat-sap-c++-12.so -> compat-sap-c++-12.1.1.so lrwxrwxrwx. 1 root root 24 Apr 17 16:31 compat-sap-c++-9.so -> compat-sap-c++-12.1.1.so lrwxrwxrwx. 1 root root 24 Apr 17 16:31 libstdc++.so.6 -> compat-sap-c++-12.1.1.so -rw-r--r--. 1 root root 1022 Apr 17 16:31 README12 This is okay. But upgrade is different. Simple upgrade to compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm is impossible. The upgrade requires compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm and all compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm (described in how-to-install-the-compat-sap-c++-test-packages.pdf). All the versioned RPMs are installed, but do nothing. That seems to be awkwardly, but probably necessary, if (current) SAP HANA Installer requires the versioned package. I've only tested rpm (-i and -U), no yum or dnf. On SAP Kernel side this does not matter. The SAP kernel finds the /opt/rh/SAP/lib64/libstdc++.so.6 properly. ToDo on SAP side: Adapt SAP note 3119751 (https://launchpad.support.sap.com/#/notes/3119751) when RHEL 8 minor version of feature release is known.
(In reply to Holger Hopp from comment #17) > Some test results and comments for > compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm and > compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm : > > From my point of view everything is okay (symlink libstdc++.so.6 is > available, also all symlinks compat-sap-c++-*.so). > > Some comments regarding upgrades: > Following seems to be possible: > (1) (New) Installation of compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm. > (2) (New) Installation of compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm AND all > compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm > (3) Upgrade from installed older compat-sap-c++-12 to > compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm AND all > compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm > > The result (installed files) is the same all 3 cases: > $ ll /opt/rh/SAP/lib64/ > total 2296 > lrwxrwxrwx. 1 root root 24 Apr 17 16:31 compat-sap-c++-10.so -> > compat-sap-c++-12.1.1.so > lrwxrwxrwx. 1 root root 24 Apr 17 16:31 compat-sap-c++-11.so -> > compat-sap-c++-12.1.1.so > -rwxr-xr-x. 1 root root 2343184 Apr 17 16:31 compat-sap-c++-12.1.1.so > lrwxrwxrwx. 1 root root 24 Apr 17 16:31 compat-sap-c++-12.so -> > compat-sap-c++-12.1.1.so > lrwxrwxrwx. 1 root root 24 Apr 17 16:31 compat-sap-c++-9.so -> > compat-sap-c++-12.1.1.so > lrwxrwxrwx. 1 root root 24 Apr 17 16:31 libstdc++.so.6 -> > compat-sap-c++-12.1.1.so > -rw-r--r--. 1 root root 1022 Apr 17 16:31 README12 > > This is okay. > > But upgrade is different. > Simple upgrade to compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm is impossible. > The upgrade requires compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm and all > compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm (described in > how-to-install-the-compat-sap-c++-test-packages.pdf). > All the versioned RPMs are installed, but do nothing. That seems to be > awkwardly, but probably necessary, if (current) SAP HANA Installer requires > the versioned package. If I understand correctly, the unversioned compat-sap-c++ doesn't have any dependencies of its own. But if any older compat-sap-c++-{9,10,11,12} packages are installed on the system, then those will need to get upgraded when installing the unversioned compat-sap-c++, and this ought to happen automatically when using yum/dnf and the official package repository. Upgrading from an older compat-sap-c++-12 to the unversioned compat-sap-c++ won't require installing new versions of compat-sap-c++-{9,10,11}. > > I've only tested rpm (-i and -U), no yum or dnf. > On SAP Kernel side this does not matter. The SAP kernel finds the > /opt/rh/SAP/lib64/libstdc++.so.6 properly. > > ToDo on SAP side: > Adapt SAP note 3119751 (https://launchpad.support.sap.com/#/notes/3119751) > when RHEL 8 minor version of feature release is known.