Missing libstdc++.so.6

Coreform Cubit Version: 2022
Platform: RHEL 8

Issue

I am unable to launch coreform due to missing library files. i get the error messages below:

/lib64/libstdc++.so.6: version GLIBCXX_3.4.30' not found /lib64/libstdc++.so.6: version GLIBCXX_3.4.26’ not found

where can i get these two library files for RHEL 8?

We build Coreform Cubit on Centos 7, so we should be compatible with RHEL 8 out of the box. We also test the same package on Fedora 30 and Opensuse Tumbleweed.

Please take a system call log of Coreform Cubit by running strace -o debug_cubit.txt ./coreform_cubit, then attach the generated debug_cubit.txt file.

debug_cubit.txt (188.8 KB)
debug file is attached.

I’m not seeing the libstdc++ error, instead I’m seeing a Qt initialization error. Can you send me the full command line output please?

debug_cubit.txt (125.2 KB)
here it is again

Can you run this command and report the output please?
strings /lib64/libstdc++.so.6 | grep GLIBCXX

You will most likely need to update your libstdc++ library to a later version. Do this carefully and according to Redhat’s instructions, this is a very fundamental library.

[root@cfd2 ~]# strings /lib64/libstdc++.so.6 | grep GLIBC
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBC_2.2.5
GLIBC_2.3
GLIBC_2.14
GLIBC_2.4
GLIBC_2.18
GLIBC_2.16
GLIBC_2.17
GLIBC_2.3.2
GLIBCXX_DEBUG_MESSAGE_LENGTH
GA+GLIBCXX_ASSERTIONS

Yeah, that’s an older version, the one we build against goes to 3.4.30. You’ll probably want to use a newer Red Hat Developer Toolset: Red Hat Developer Toolset Overview | Red Hat Developer. As long as you enable that toolset before running Cubit, it should work.

hmm this is interesting, other users are able to run coreform without any issue except me. this means that i do have those two files somewhere i just cant seem to find it. and why does it only happen to me and not other users? weird.

You do have /lib64/libstdc++.so.6. It’s not a matter of missing libraries, it’s a matter of libraries being the wrong version.

thanks Scot, i have resolved the issue. thanks for your help.

1 Like